Commit 44438e0d authored by Jure Varlec's avatar Jure Varlec
Browse files

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.
parent 821f72ac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ in {

    systemd.timers.fstrim = {
      timerConfig = {
        OnCalendar = cfg.interval;
        OnCalendar = [ "" cfg.interval ];
      };
      wantedBy = [ "timers.target" ];
    };