Merge pull request #19805 from joachifm/startAt-fixups

Fixup remaining uses of startAt
This commit is contained in:
Joachim F 2016-10-23 20:39:53 +02:00 committed by GitHub
commit bdc4397303
2 changed files with 2 additions and 2 deletions

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

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