mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 06:04:42 +00:00
my nix config
| .cache-home/nix | ||
| config | ||
| home | ||
| hosts/hari-macbook-pro | ||
| modules | ||
| scripts | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| justfile | ||
| README.md | ||
Nix Config
Approach
The repo now owns the active shell/editor/tool config directly:
home/contains the Home Manager modules for user-facing toolsconfig/contains the repo-owned config trees copied from your daily setupmodules/homebrew.nixis intentionally narrow and should eventually disappear- Homebrew cleanup is still set to
"none"so the first switch is non-destructive
Layout
flake.nix: top-level flake and host wiringhosts/hari-macbook-pro/default.nix: this machine's host configmodules/base.nix: Nix settings and core packagesmodules/macos.nix: macOS defaults and host-level settingsmodules/packages.nix: system packages and fontsmodules/homebrew.nix: the remaining Homebrew-managed GUI appshome/: Home Manager modules for shell, editor, CLI tools, and app configconfig/: repo-owned config files consumed by Home Manager
Commands
Bootstrap the host:
nix run github:LnL7/nix-darwin/master#darwin-rebuild -- switch --flake .#hari-macbook-pro
After the first successful switch:
just switch
just build
just check
What Still Needs Manual Work
- Secrets and tokens under
~/.secrets,~/.npmrc,~/.config/gcloud,~/.config/gh, and similar paths - Launch agents that are currently outside Nix
- App state under
~/Library/Application Support - Anything that depends on local credentials, keychains, or encrypted stores
- Replacing or intentionally dropping the remaining GUI apps still delivered via Homebrew
Current Homebrew Scope
The current Homebrew boundary is only:
capraycastthebrowsercompany-diawispr-flow