Merge pull request #14 from demyanrogozhin/bugfix/13

Fix: nix run -> nix shell
This commit is contained in:
Timothy DeHerrera 2020-05-27 09:02:52 -06:00 committed by GitHub
commit 31c2b767ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 {