From c37909dd1715a1369b43747474efadebef74302d Mon Sep 17 00:00:00 2001 From: pika Date: Wed, 2 Apr 2025 10:30:57 +0200 Subject: [PATCH] addet nixos configs --- .zshrc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 }