286 current 2025-10-11 09:36:17 25.05.20251006.20c4598 6.12.50 *
This commit is contained in:
@@ -20,7 +20,11 @@ in
|
|||||||
lib.types.listOf lib.types.path # the paths
|
lib.types.listOf lib.types.path # the paths
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
default = null;
|
default = {
|
||||||
|
sungger = { paths = [ "/var/lib/radarr" "/var/lib/sonarr" ]; };
|
||||||
|
hoass = { paths = [ "/var/lib/zigbee2mqtt" "/var/lib/hass" "/var/lib/mosquitto" ]; };
|
||||||
|
huh = { paths = [ "/home/blake/.nix" ]; };
|
||||||
|
};
|
||||||
description = "Borg backup jobs; each job has a list of paths.";
|
description = "Borg backup jobs; each job has a list of paths.";
|
||||||
};
|
};
|
||||||
repo = lib.mkOption {
|
repo = lib.mkOption {
|
||||||
@@ -37,12 +41,6 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf (cfg.enable && backup_paths != []) {
|
config = lib.mkIf (cfg.enable && backup_paths != []) {
|
||||||
|
|
||||||
cfg.jobs = {
|
|
||||||
sungger = { paths = [ "/var/lib/radarr" "/var/lib/sonarr" ]; };
|
|
||||||
hoass = { paths = [ "/var/lib/zigbee2mqtt" "/var/lib/hass" "/var/lib/mosquitto" ]; };
|
|
||||||
huh = { paths = [ "/home/blake/.nix" ]; };
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.backups = {
|
systemd.services.backups = {
|
||||||
description = "backup service with borg!";
|
description = "backup service with borg!";
|
||||||
path = [ pkgs.borgbackup ];
|
path = [ pkgs.borgbackup ];
|
||||||
|
|||||||
Reference in New Issue
Block a user