addet nixos configs

This commit is contained in:
pika 2025-04-02 10:30:57 +02:00
parent 55f4da8abb
commit c37909dd17

11
.zshrc
View file

@ -147,8 +147,15 @@ __get_Packager__() {
alias remove="$_sudo apk del" alias remove="$_sudo apk del"
;; ;;
*) *)
echo_error "Unsupported distro: $ID" if command_exists nix-env; then
return 1 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 esac
} }