git.iko.soy/typeable/nixpkgs
on master help sign in
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: c9941c4b5ef7acc1cb8d734acb383410d99c01ba

commit4c41c412a0c6353e6a49b484783b4c925064718c authorJoachim Fasting <joachifm@fastmail.fm> dateSun 23 Oct 2016, 17:26 (10 years ago) parent645ff13
1 file changed+1−1
nixos/modules/services/misc/nix-gc.nix+1−1
nixos/modules/services/misc/nix-gc.nix+1−1
@@ -53,7 +53,7 @@ in
5353 systemd.services.nix-gc =
5454 { description = "Nix Garbage Collector";
5555 script = "exec ${config.nix.package.out}/bin/nix-collect-garbage ${cfg.options}";
56− startAt = optionalString cfg.automatic cfg.dates;
56+ startAt = optional cfg.automatic cfg.dates;
5757 };
5858
5959 };