diff --git a/modules/homelab/services/smarthome/homeassistant/default.nix b/modules/homelab/services/smarthome/homeassistant/default.nix index a05678d..66af805 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 = { +# hass = { paths = [ cfg.data_dir ]; }; +# }; }; } diff --git a/modules/homelab/services/smarthome/mosquitto/default.nix b/modules/homelab/services/smarthome/mosquitto/default.nix index 226d433..ef02533 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 = { +# mosquitto = { paths = [ cfg.data_dir ]; }; +# }; }; } diff --git a/modules/homelab/services/smarthome/zigbee2mqtt/default.nix b/modules/homelab/services/smarthome/zigbee2mqtt/default.nix index 4d75881..5cb1ced 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 = { +# zigbee2mqtt = { paths = [ cfg.data_dir ]; }; +# }; }; } diff --git a/modules/homelab/services/vaultwarden/default.nix b/modules/homelab/services/vaultwarden/default.nix index 4e70eb8..4a1e3a6 100644 --- a/modules/homelab/services/vaultwarden/default.nix +++ b/modules/homelab/services/vaultwarden/default.nix @@ -112,7 +112,7 @@ in # add to backups modules.system.backups.baks = { - vaultwarden = { paths = [ cfg.data_dir ]; }; + ${service} = { paths = [ cfg.data_dir ]; }; }; }; } diff --git a/modules/system/backups.nix b/modules/system/backups.nix index 088f1a8..c600fca 100644 --- a/modules/system/backups.nix +++ b/modules/system/backups.nix @@ -24,7 +24,7 @@ in options.modules.system.backups = { enable = lib.mkEnableOption "enables backups with borg"; baks = lib.mkOption { - type = lib.types.attrsOf (lib.types.attrsOf (lib.types.listOf lib.types.path)); + type = lib.types.attrsOf (lib.types.attrsOf (lib.types.listOf lib.types.path)); default = {}; description = "backup jobs, nested attribute sets should be = paths []"; };