shell: fix flk command

This commit is contained in:
Timothy DeHerrera 2020-12-29 00:36:44 -07:00
parent 165ffaa4fb
commit ad4bbdd398
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122

View File

@ -21,9 +21,9 @@ let
elif [[ $1 == "iso" ]]; then
nix build ${configs}.niximg.${build}.isoImage
elif [[ $1 == "install" ]]; then
nixos-install --flake ".#$2" $@
sudo nixos-install --flake ".#$2" "${"\${@:3}"}"
else
sudo nixos-rebuild --flake ".#$1" $@
sudo nixos-rebuild --flake ".#$1" "${"\${@:2}"}"
fi
'';