blob: 200ebae86524a23aa2e0c6fde202df802d8aa4c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
alias nib='nix-build --no-out-link'
alias nip='nix-build --no-out-link "<nixpkgs>" -A'
function cnip() {
cd $(nip "$1")
}
function nipr() {
local remote="$1"
local package="$2"
local drv="$(nix-instantiate '<nixpkgs>' -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 "<nixpkgs>"'
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 nii="nix-instantiate '<nixpkgs>' -A"
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'
|