diff options
Diffstat (limited to 'conf.d/99-nix.zsh')
-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' |