From 93d50641c18d493cce6c24cc838ca43bad3a48b3 Mon Sep 17 00:00:00 2001 From: Evan Reichard Date: Tue, 22 Apr 2025 11:47:10 -0400 Subject: [PATCH] macos update instructions --- README.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/README.md b/README.md index 34aa94c..d82af80 100755 --- a/README.md +++ b/README.md @@ -64,3 +64,44 @@ rsync -av --exclude='.git' . root@HOST:/etc/nixos ```bash sudo nixos-rebuild switch ``` + +# Nix Home Manager Configuration - macOS + +## Upgrade + +```bash +# Update System Channels +sudo nix-channel --add https://nixos.org/channels/nixpkgs-24.11-darwin nixpkgs +sudo nix-channel --update + +# Update Home Manager +nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.11.tar.gz home-manager +nix-channel --update + +# Link Repo +ln -s /Users/evanreichard/Development/git/personal/nix/home-manager ~/.config/home-manager + +# Build Home Manager +home-manager switch +``` + +## Clean Garbage + +NOTE: This will remove previous generations + +```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 +```