Merge pull request #48098 from peterhoeg/f/opti
nix-optimise: do not run in container
This commit is contained in:
commit
98649aea0f
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue