Nix : Remove old nix channels.
This commit is contained in:
parent
eddd3023f3
commit
8a3d370ed2
|
@ -18,22 +18,6 @@ function nix_find() {
|
||||||
fi
|
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.
|
# Rebuild system.
|
||||||
# Optionally force the hostname.
|
# Optionally force the hostname.
|
||||||
# Usage: nix_rebuild [HOSTNAME]
|
# Usage: nix_rebuild [HOSTNAME]
|
||||||
|
|
Reference in a new issue