mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
nixos/zfs: make it easier to override Persistent setting of timers
This commit is contained in:
parent
648a374b8b
commit
45dad721eb
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue