upgrade instructions

This commit is contained in:
Evan Reichard 2023-10-23 10:59:32 -04:00
parent 042a5a069c
commit 2a60f3317b

View File

@ -2,7 +2,7 @@
## Upgrade
```
```bash
# Update System Channels
sudo nix-channel --add https://nixos.org/channels/nixpkgs-23.05-darwin nixpkgs
sudo nix-channel --update
@ -19,7 +19,19 @@ home-manager switch
NOTE: This will remove previous generations
```
nix-collect-garbage --delete-old
```bash
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
```