Nix : Add update funs.

This commit is contained in:
Dmitry Voronin 2024-01-24 18:56:14 +03:00
parent 2ff53424db
commit 38776f0da1

View file

@ -17,3 +17,18 @@ function nix_find() {
false
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
}