Nix : Add channel check.
This commit is contained in:
parent
b7c54ef692
commit
8fae2e51fd
|
@ -28,6 +28,11 @@ function nix_unstable_small() {
|
||||||
nix-channel --add https://nixos.org/channels/nixos-unstable-small nixos
|
nix-channel --add https://nixos.org/channels/nixos-unstable-small nixos
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Display current channel.
|
||||||
|
function nix_channel() {
|
||||||
|
nix-channel --list
|
||||||
|
}
|
||||||
|
|
||||||
# Update system (rebuild).
|
# Update system (rebuild).
|
||||||
function nix_update() {
|
function nix_update() {
|
||||||
nixos-rebuild switch
|
nixos-rebuild switch
|
||||||
|
|
Reference in a new issue