Nix : Remove old nix channels.

This commit is contained in:
Dmitry Voronin 2024-02-04 16:22:28 +03:00
parent eddd3023f3
commit 8a3d370ed2

View file

@ -18,22 +18,6 @@ function nix_find() {
fi
}
# Switch to Unstable branch.
function nix_unstable() {
nix-channel --remove nixos
# nix-channel --remove home-manager
nix-channel --add https://nixos.org/channels/nixos-unstable nixos
# nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
}
# Display current channel.
function nix_channel() {
nix-channel --list
}
# Rebuild system.
# Optionally force the hostname.
# Usage: nix_rebuild [HOSTNAME]