diff --git a/config/zsh/aliases.zsh b/config/zsh/aliases.zsh index b8508a57..964bcd3b 100644 --- a/config/zsh/aliases.zsh +++ b/config/zsh/aliases.zsh @@ -38,12 +38,17 @@ alias rcp='rsync -vaP --delete' alias rmirror='rsync -rtvu --delete' alias gurl='curl --compressed' -alias sc=systemctl -alias ssc='sudo systemctl' - alias y='xclip -selection clipboard -in' alias p='xclip -selection clipboard -out' +alias sc=systemctl +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 ### Tools autoload -U zmv diff --git a/default.nix b/default.nix index 80ad8582..f2320c03 100644 --- a/default.nix +++ b/default.nix @@ -47,13 +47,6 @@ XDG_DATA_HOME = "$HOME/.local/share"; XDG_BIN_HOME = "$HOME/.local/bin"; }; - shellAliases = { - nix-env = "NIXPKGS_ALLOW_UNFREE=1 nix-env"; - ne = "nix-env"; - nu = "sudo nix-channel --update && sudo nixos-rebuild -I config=$HOME/.dotfiles/config switch"; - nre = "sudo nixos-rebuild -I config=$HOME/.dotfiles/config"; - ngc = "sudo nix-collect-garbage -d"; - }; }; time.timeZone = "America/Toronto";