diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix index ea49bf17e4d0..741c8fe3fb7e 100644 --- a/nixos/modules/tasks/filesystems/zfs.nix +++ b/nixos/modules/tasks/filesystems/zfs.nix @@ -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; }; })