From 7f56e043e7594ec453dec58e41686694129d4a7b Mon Sep 17 00:00:00 2001 From: blake Date: Sat, 11 Oct 2025 11:43:34 -0500 Subject: [PATCH] 290 current 2025-10-11 11:39:41 25.05.20251006.20c4598 6.12.50 * --- flake.nix | 2 +- .../homelab/services/smarthome/homeassistant/default.nix | 6 +++--- modules/homelab/services/smarthome/mosquitto/default.nix | 6 +++--- modules/homelab/services/smarthome/zigbee2mqtt/default.nix | 6 +++--- modules/system/backups.nix | 1 + 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/flake.nix b/flake.nix index 4f109f7..f7ea358 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ # flake for blakes nixos config # define new devices in outputs -# generation: 289 current 2025-10-11 11:25:44 25.05.20251006.20c4598 6.12.50 * +# generation: 290 current 2025-10-11 11:39:41 25.05.20251006.20c4598 6.12.50 * { description = "blakes nix config"; inputs = { diff --git a/modules/homelab/services/smarthome/homeassistant/default.nix b/modules/homelab/services/smarthome/homeassistant/default.nix index 66af805..7a0cea3 100644 --- a/modules/homelab/services/smarthome/homeassistant/default.nix +++ b/modules/homelab/services/smarthome/homeassistant/default.nix @@ -138,9 +138,9 @@ in }; # add to backups -# modules.system.backups.baks = { -# hass = { paths = [ cfg.data_dir ]; }; -# }; + modules.system.backups.baks = { + ${service} = { paths = [ cfg.data_dir ]; }; + }; }; } diff --git a/modules/homelab/services/smarthome/mosquitto/default.nix b/modules/homelab/services/smarthome/mosquitto/default.nix index ef02533..c32f114 100644 --- a/modules/homelab/services/smarthome/mosquitto/default.nix +++ b/modules/homelab/services/smarthome/mosquitto/default.nix @@ -97,8 +97,8 @@ in }; # add to backups -# modules.system.backups.baks = { -# mosquitto = { paths = [ cfg.data_dir ]; }; -# }; + modules.system.backups.baks = { + ${service} = { paths = [ cfg.data_dir ]; }; + }; }; } diff --git a/modules/homelab/services/smarthome/zigbee2mqtt/default.nix b/modules/homelab/services/smarthome/zigbee2mqtt/default.nix index 5cb1ced..67f5c2e 100644 --- a/modules/homelab/services/smarthome/zigbee2mqtt/default.nix +++ b/modules/homelab/services/smarthome/zigbee2mqtt/default.nix @@ -112,8 +112,8 @@ in }; # add to backups -# modules.system.backups.baks = { -# zigbee2mqtt = { paths = [ cfg.data_dir ]; }; -# }; + modules.system.backups.baks = { + ${service} = { paths = [ cfg.data_dir ]; }; + }; }; } diff --git a/modules/system/backups.nix b/modules/system/backups.nix index f9df240..d05959d 100644 --- a/modules/system/backups.nix +++ b/modules/system/backups.nix @@ -89,6 +89,7 @@ in (lib.flatten (lib.mapAttrsToList (_: bak: bak.paths) cfg.baks)) }" + archive="$timestamp-${toString config.networking.hostName}" borg create \ --verbose \ --filter AME \