Nix : Add update funs.
This commit is contained in:
parent
2ff53424db
commit
38776f0da1
|
@ -17,3 +17,18 @@ function nix_find() {
|
||||||
false
|
false
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Switch to Unstable branch.
|
||||||
|
function nix_unstable() {
|
||||||
|
nix-channel --add https://nixos.org/channels/nixos-unstable nixos
|
||||||
|
}
|
||||||
|
|
||||||
|
# Switch to Small Unstable branch (for server).
|
||||||
|
function nix_unstable_small() {
|
||||||
|
nix-channel --add https://nixos.org/channels/nixos-unstable-small nixos
|
||||||
|
}
|
||||||
|
|
||||||
|
# Update system.
|
||||||
|
function nix_update() {
|
||||||
|
nixos-rebuild switch --upgrade
|
||||||
|
}
|
||||||
|
|
Reference in a new issue