Nix Home manager configuration for my MacBook
Abhinav Sarkar
28ab6fb59f
Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/d0240a064db3987eb4d5204cf2400bc4452d9922' (2024-07-27) → 'github:nix-community/home-manager/afc892db74d65042031a093adb6010c4c3378422' (2024-08-02) • Updated input 'nix-darwin': 'github:LnL7/nix-darwin/0413754b3cdb879ba14f6e96915e5fdf06c6aab6' (2024-07-27) → 'github:LnL7/nix-darwin/f7142b8024d6b70c66fd646e1d099d3aa5bfec49' (2024-08-02) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/e36e9f57337d0ff0cf77aceb58af4c805472bfae' (2024-07-27) → 'github:nixos/nixpkgs/81610abc161d4021b29199aa464d6a1a521e0cc9' (2024-08-02) |
||
---|---|---|
packages | ||
programs | ||
scripts | ||
.envrc | ||
.gitignore | ||
configuration.nix | ||
flake.lock | ||
flake.nix | ||
home.nix | ||
homebrew.nix | ||
justfile | ||
launchd.nix | ||
nix.nix | ||
README.md | ||
shell.nix | ||
system.nix |
Nix + Home Manager based MacBook configuration
This is the Nix and Home Manager configuration for managing my MacBook.
Usage
First install Nix and Homebrew. Then, in the repo directory, run nix develop
to get into the Nix shell.
To set up the MacBook as per the config, run:
just switch
To update installed packages, run:
just update
To clean up garbage, run:
just clean
If you have just
installed, you can also run these commands from any other directory, without starting Nix shell:
just <repo_dir>/switch # or update or clean