Merge pull request #48098 from peterhoeg/f/opti

nix-optimise: do not run in container
This commit is contained in:
Peter Hoeg 2018-10-10 20:57:10 +08:00 committed by GitHub
commit 98649aea0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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