nix-optimise: only create timer unit if needed
This commit is contained in:
parent
004318a239
commit
9f2a705f7f
|
@ -42,9 +42,11 @@ in
|
||||||
startAt = lib.optionals cfg.automatic cfg.dates;
|
startAt = lib.optionals cfg.automatic cfg.dates;
|
||||||
};
|
};
|
||||||
|
|
||||||
timers.nix-optimise.timerConfig = {
|
timers.nix-optimise = lib.mkIf cfg.automatic {
|
||||||
Persistent = true;
|
timerConfig = {
|
||||||
RandomizedDelaySec = 1800;
|
Persistent = true;
|
||||||
|
RandomizedDelaySec = 1800;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user