From bb81acfb003d6c2df4c6fdb5d4775cc00d2c3b73 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 3 Dec 2019 20:34:43 -0500 Subject: [PATCH] Move nix aliases to zsh config --- config/zsh/aliases.zsh | 11 ++++++++--- default.nix | 7 ------- 2 files changed, 8 insertions(+), 10 deletions(-) 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";