Nix : Add nix_upgrade.

This commit is contained in:
Dmitry Voronin 2024-01-24 19:06:50 +03:00
parent 38776f0da1
commit 29e01ae75b
2 changed files with 10 additions and 1 deletions

View file

@ -28,7 +28,12 @@ function nix_unstable_small() {
nix-channel --add https://nixos.org/channels/nixos-unstable-small nixos
}
# Update system.
# Update system (rebuild).
function nix_update() {
nixos-rebuild switch
}
# Upgrade system.
function nix_upgrade() {
nixos-rebuild switch --upgrade
}

View file

@ -255,6 +255,10 @@ Command|Description
Command|Description
---|---
`nix_find <PACKAGE>`|Find Nix package path.
`nix_unstable`|Switch to Unstable branch.
`nix_unstable_small`|Switch to Small Unstable branch (for server).
`nix_update`|Update system (rebuild).
`nix_upgrade`|Upgrade system.
## Notify.