From 1876fb8f1de2c5d8235cded122bd5b2bdbd7e86b Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Sat, 12 Jan 2019 22:30:27 +0100 Subject: [PATCH] nix/os/devices/disk: unset $system before nixos-install This fixes the nixos-install error > error: selector 'x86_64-linux' matches no derivations which is due to $system being set and used by nixos-install. --- nix/os/devices/disk.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/os/devices/disk.nix b/nix/os/devices/disk.nix index ff75d5b..6684521 100644 --- a/nix/os/devices/disk.nix +++ b/nix/os/devices/disk.nix @@ -45,7 +45,11 @@ in rec { [[ -e "''${NIXOS_CONFIG}" ]] [[ -e "${mntRootVol}/nixos" ]] + sudo -E $SHELL <