diff options
author | Luca Bruno <lethalman88@gmail.com> | 2015-09-10 12:51:06 +0200 |
---|---|---|
committer | Luca Bruno <lethalman88@gmail.com> | 2015-09-11 16:59:40 +0200 |
commit | 682777ed24aed65612495008e080f0f78880a5e7 (patch) | |
tree | cb77ecb7a575523b04066fc4b3298e70da75941a /nixos/modules/virtualisation | |
parent | f4b7be4f049d6a1063075dc82749283d72b31b08 (diff) |
nixos containers: fix system path when reloading
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r-- | nixos/modules/virtualisation/containers.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/containers.nix b/nixos/modules/virtualisation/containers.nix index 59f486ff78b75..8f881d7607068 100644 --- a/nixos/modules/virtualisation/containers.nix +++ b/nixos/modules/virtualisation/containers.nix @@ -299,7 +299,7 @@ in '' #! ${pkgs.stdenv.shell} -e ${nixos-container}/bin/nixos-container run "$INSTANCE" -- \ - bash --login -c "/nix/var/nix/profiles/system/bin/switch-to-configuration test" + bash --login -c "''${SYSTEM_PATH:-/nix/var/nix/profiles/system}/bin/switch-to-configuration test" ''; SyslogIdentifier = "container %i"; |