From a08c7e51843d0f5f4d7c32586659305931f08318 Mon Sep 17 00:00:00 2001 From: Demyan Rogozhin Date: Thu, 21 May 2020 14:55:06 +0200 Subject: [PATCH] Fix: nix run -> nix shell --- shell.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell.nix b/shell.nix index 0d51f616..7ff9167d 100644 --- a/shell.nix +++ b/shell.nix @@ -10,9 +10,9 @@ let elif [[ $1 == "iso" ]]; then nix build ${configs}.niximg.${build}.isoImage elif [[ -z $2 ]]; then - sudo -E nix run -vv ${configs}.${hostname}.${build}.toplevel -c switch-to-configuration $1 + sudo -E nix shell -vv ${configs}.${hostname}.${build}.toplevel -c switch-to-configuration $1 else - sudo -E nix run -vv ${configs}.$1.${build}.toplevel -c switch-to-configuration $2 + sudo -E nix shell -vv ${configs}.$1.${build}.toplevel -c switch-to-configuration $2 fi ''; in pkgs.mkShell {