nixos/fstrim: fix overriding the timer interval
The OnCalendar systemd setting is additive. To clear the setting defined by the pre-existing unit file, it has to be set first to an empty string, then to the desired value.
This commit is contained in:
parent
821f72ac3e
commit
44438e0dcd
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ in {
|
|||
|
||||
systemd.timers.fstrim = {
|
||||
timerConfig = {
|
||||
OnCalendar = cfg.interval;
|
||||
OnCalendar = [ "" cfg.interval ];
|
||||
};
|
||||
wantedBy = [ "timers.target" ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue