summaryrefslogtreecommitdiff
path: root/custom/borgbackup.nix
diff options
context:
space:
mode:
Diffstat (limited to 'custom/borgbackup.nix')
-rw-r--r--custom/borgbackup.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix
index 6caf799e..6b0d97dc 100644
--- a/custom/borgbackup.nix
+++ b/custom/borgbackup.nix
@@ -54,7 +54,7 @@ in {
54 config = mkIf (any (t: t.paths != []) (attrValues cfg.targets)) { 54 config = mkIf (any (t: t.paths != []) (attrValues cfg.targets)) {
55 services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true; 55 services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true;
56 56
57 systemd.timers = listToAttrs (map (target: path: nameValuePair "borgbackup-${target}@${path}" { 57 systemd.timers = listToAttrs (map ({ target, path }: nameValuePair "borgbackup-${target}@${path}" {
58 wantedBy = [ "timers.target" ]; 58 wantedBy = [ "timers.target" ];
59 59
60 timerConfig = { 60 timerConfig = {