nixos/zfs: make it easier to override Persistent setting of timers (#373318)

This commit is contained in:
Adam C. Stephens 2025-02-22 07:46:52 -05:00 committed by GitHub
commit 1a6a455122
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -877,7 +877,7 @@ in
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = timer snapName;
Persistent = "yes";
Persistent = lib.mkDefault "yes";
};
};
}) snapshotNames);
@ -907,7 +907,7 @@ in
after = [ "multi-user.target" ]; # Apparently scrubbing before boot is complete hangs the system? #53583
timerConfig = {
OnCalendar = cfgScrub.interval;
Persistent = "yes";
Persistent = lib.mkDefault "yes";
RandomizedDelaySec = cfgScrub.randomizedDelaySec;
};
};
@ -927,7 +927,7 @@ in
};
systemd.timers.zpool-trim.timerConfig = {
Persistent = "yes";
Persistent = lib.mkDefault "yes";
RandomizedDelaySec = cfgTrim.randomizedDelaySec;
};
})