nix gc service: fix use of startAt
`startAt = ""` as in `startAt = optionalString false ...` results
in an invalid timer unit (due to "" being promoted to a singleton
list and not filtered out).
Ref: c9941c4b5e
This commit is contained in:
parent
645ff13a4b
commit
4c41c412a0
|
@ -53,7 +53,7 @@ in
|
|||
systemd.services.nix-gc =
|
||||
{ description = "Nix Garbage Collector";
|
||||
script = "exec ${config.nix.package.out}/bin/nix-collect-garbage ${cfg.options}";
|
||||
startAt = optionalString cfg.automatic cfg.dates;
|
||||
startAt = optional cfg.automatic cfg.dates;
|
||||
};
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue