diff --git a/.zshrc b/.zshrc index 09bd878..2e2ea76 100644 --- a/.zshrc +++ b/.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 }