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:
Joachim Fasting 2016-10-23 17:26:18 +02:00
parent 645ff13a4b
commit 4c41c412a0
No known key found for this signature in database
GPG Key ID: 7544761007FE4E08
1 changed files with 1 additions and 1 deletions

View File

@ -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;
};
};