Merge pull request #285041 from r-vdp/nix-optimise-fix-timer
nix-optimise: only create timer unit if needed
This commit is contained in:
commit
e8ff41fa85
1 changed files with 5 additions and 3 deletions
|
@ -42,9 +42,11 @@ in
|
|||
startAt = lib.optionals cfg.automatic cfg.dates;
|
||||
};
|
||||
|
||||
timers.nix-optimise.timerConfig = {
|
||||
Persistent = true;
|
||||
RandomizedDelaySec = 1800;
|
||||
timers.nix-optimise = lib.mkIf cfg.automatic {
|
||||
timerConfig = {
|
||||
Persistent = true;
|
||||
RandomizedDelaySec = 1800;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue