addet nixos configs
This commit is contained in:
parent
55f4da8abb
commit
c37909dd17
1 changed files with 9 additions and 2 deletions
11
.zshrc
11
.zshrc
|
@ -147,8 +147,15 @@ __get_Packager__() {
|
|||
alias remove="$_sudo apk del"
|
||||
;;
|
||||
*)
|
||||
echo_error "Unsupported distro: $ID"
|
||||
return 1
|
||||
if command_exists nix-env; then
|
||||
echo_info "Using NIX!!"
|
||||
alias update="$_sudo nixos-rebuild switch"
|
||||
alias install="$_sudo nix-env -iA"
|
||||
alias edit="$_sudo -E $EDITOR /etc/nixos/configuration.nix"
|
||||
else
|
||||
echo_error "Unsupported distro: $ID"
|
||||
return 1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue