nix-optimise: do not run in container

This commit is contained in:
Peter Hoeg 2018-04-27 15:09:48 +08:00
parent 0be4b0ce96
commit c3c695183c

View file

@ -40,6 +40,8 @@ in
systemd.services.nix-optimise =
{ description = "Nix Store Optimiser";
# No point running it inside a nixos-container. It should be on the host instead.
unitConfig.ConditionVirtualization = "!container";
serviceConfig.ExecStart = "${config.nix.package}/bin/nix-store --optimise";
startAt = optionals cfg.automatic cfg.dates;
};