summaryrefslogtreecommitdiff
path: root/conf.d/99-nix.zsh
blob: 2840fdcc7910cc3cda5eacc3a0886a896c6e5c01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 '<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'