diff options
author | Peter Hoeg <peter@hoeg.com> | 2018-04-27 15:09:48 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2018-04-27 15:09:48 +0800 |
commit | c3c695183cde665872fa53f4c592b47e3976c379 (patch) | |
tree | ebaa5fd797bcd5c08b4fa4ce71a2db93931246f9 | |
parent | 0be4b0ce96da339e44c7614de19ab83719e3a70c (diff) | |
download | nixpkgs-c3c695183cde665872fa53f4c592b47e3976c379.tar nixpkgs-c3c695183cde665872fa53f4c592b47e3976c379.tar.gz nixpkgs-c3c695183cde665872fa53f4c592b47e3976c379.tar.bz2 nixpkgs-c3c695183cde665872fa53f4c592b47e3976c379.tar.lz nixpkgs-c3c695183cde665872fa53f4c592b47e3976c379.tar.xz nixpkgs-c3c695183cde665872fa53f4c592b47e3976c379.tar.zst nixpkgs-c3c695183cde665872fa53f4c592b47e3976c379.zip |
nix-optimise: do not run in container
-rw-r--r-- | nixos/modules/services/misc/nix-optimise.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/nix-optimise.nix b/nixos/modules/services/misc/nix-optimise.nix index 295e7fb0ba0..f3c5d3e81db 100644 --- a/nixos/modules/services/misc/nix-optimise.nix +++ b/nixos/modules/services/misc/nix-optimise.nix @@ -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; }; |