upgrade instructions
This commit is contained in:
parent
042a5a069c
commit
2a60f3317b
18
README.md
18
README.md
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Upgrade
|
## Upgrade
|
||||||
|
|
||||||
```
|
```bash
|
||||||
# Update System Channels
|
# Update System Channels
|
||||||
sudo nix-channel --add https://nixos.org/channels/nixpkgs-23.05-darwin nixpkgs
|
sudo nix-channel --add https://nixos.org/channels/nixpkgs-23.05-darwin nixpkgs
|
||||||
sudo nix-channel --update
|
sudo nix-channel --update
|
||||||
@ -19,7 +19,19 @@ home-manager switch
|
|||||||
|
|
||||||
NOTE: This will remove previous generations
|
NOTE: This will remove previous generations
|
||||||
|
|
||||||
```
|
```bash
|
||||||
nix-collect-garbage --delete-old
|
|
||||||
sudo nix-collect-garbage --delete-old
|
sudo nix-collect-garbage --delete-old
|
||||||
|
nix-collect-garbage --delete-old
|
||||||
|
```
|
||||||
|
|
||||||
|
## OS Update
|
||||||
|
|
||||||
|
`/etc/bashrc` may get overridden. To properly load Nix, prepend the following:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Nix
|
||||||
|
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
|
||||||
|
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
|
||||||
|
fi
|
||||||
|
# End Nix
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user