nixos autoUpgrade: 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:24:17 +02:00
parent 0bb07f6d7b
commit 645ff13a4b
No known key found for this signature in database
GPG Key ID: 7544761007FE4E08

View File

@ -84,7 +84,7 @@ let cfg = config.system.autoUpgrade; in
${config.system.build.nixos-rebuild}/bin/nixos-rebuild switch ${toString cfg.flags}
'';
startAt = optionalString cfg.enable cfg.dates;
startAt = optional cfg.enable cfg.dates;
};
};