diff options
author | Till Höppner | 2018-04-22 11:06:17 +0200 |
---|---|---|
committer | Till Höppner | 2018-04-22 11:06:17 +0200 |
commit | bd9026fa09bd3d9dffd680d09e94a41852f45525 (patch) | |
tree | 23894e3099e10e4d15e90bda4403f53ca89aea47 | |
parent | 67fbcd9e72a7d8fd0f3fb825035ab2f22c16d563 (diff) | |
download | zsh-bd9026fa09bd3d9dffd680d09e94a41852f45525.tar.gz zsh-bd9026fa09bd3d9dffd680d09e94a41852f45525.tar.xz zsh-bd9026fa09bd3d9dffd680d09e94a41852f45525.zip |
Add new Nix aliases
-rw-r--r-- | conf.d/99-nix.zsh | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/conf.d/99-nix.zsh b/conf.d/99-nix.zsh index 1156080..2840fdc 100644 --- a/conf.d/99-nix.zsh +++ b/conf.d/99-nix.zsh @@ -1,14 +1,21 @@ -alias nib=nix-build +alias nib='nix-build --no-out-link' +alias nip='nix-build --no-out-link "<nixpkgs>" -A' +function with() { + PKG="$1" + shift + nix-shell -p "$PKG" --run "$@" +} alias nic=nix-channel alias nis=nix-shell alias nie=nix-env -alias nir=nix-repl - -nih() { - nie -iA nixpkgs.coreEnv nixpkgs.desktopEnv nixpkgs.gamesEnv - dotfiles.coreEnv - dotfiles.desktopEnv -} +alias nir="nix repl '<nixpkgs>'" +alias nio=nixops +alias nied='nix edit -f "<nixpkgs>"' +alias nidf='EDITOR=echo nied' alias nor=nixos-rebuild alias noc=nixos-container +alias nob="nib --no-out-link '<nixpkgs/nixos>' -A system --keep-going" +alias snor='sudo nixos-rebuild' +alias snors='sudo nixos-rebuild switch' +alias snorb='sudo nixos-rebuild boot' |