alias nib='nix-build --no-out-link' alias nip='nix-build --no-out-link "" -A' function cnip() { cd $(nip "$1") } function nipr() { local remote="$1" local package="$2" local drv="$(nix-instantiate '' -A "$package")" nix-copy-closure --to "$remote" "$drv" ssh "$remote" nix-store -r "$drv" } function with() { PKG="$1" shift nix-shell -p "$PKG" --run "$@" } alias zwith='nix-shell --run zsh -p' alias niv='nix eval -f ""' alias nic=nix-channel alias nis=nix-shell alias nie=nix-env alias nir="nix repl ''" alias nio=nixops alias nied='nix edit -f ""' alias nidf='EDITOR=echo nied' alias nii="nix-instantiate '' -A" alias nor=nixos-rebuild alias noc=nixos-container alias nob="nib --no-out-link '' -A system --keep-going" alias snor='sudo nixos-rebuild' alias snors='sudo nixos-rebuild switch' alias snorb='sudo nixos-rebuild boot'