Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 793 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 793 Bytes

Nix Home Manager Configuration

Upgrade

# Update System Channels
sudo nix-channel --add https://nixos.org/channels/nixpkgs-24.05-darwin nixpkgs
sudo nix-channel --update

# Update Home Manager
nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz home-manager
nix-channel --update

# Build Home Manager
home-manager switch

Clean Garbage

NOTE: This will remove previous generations

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:

# 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