nixos/zfs: make it easier to override Persistent setting of timers (#373318)
This commit is contained in:
commit
1a6a455122
@ -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;
|
||||
};
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user