diff --git a/config/zsh/aliases.zsh b/config/zsh/aliases.zsh index ba2b35bc..73e50eb0 100644 --- a/config/zsh/aliases.zsh +++ b/config/zsh/aliases.zsh @@ -44,8 +44,9 @@ alias ssc='sudo systemctl' alias nix-env='NIXPKGS_ALLOW_UNFREE=1 nix-env' alias ne=nix-env alias nc=nix-channel -alias ngc=nix-garbage-collect -alias nre=nixos-rebuild +alias ngc='nix-collect-garbage -d' +alias nre='sudo nixos-rebuild' +alias nup='sudo nix-channel --update && nre' autoload -U zmv