Personal Nix config for NixOS, nix-darwin, and Home Manager.
Repo uses flake-parts + import-tree + Den:
flake.nix
modules/
core/ # flake-parts core, metadata, paths, checks
den.nix # Den flake module import
hosts.nix # active Den hosts and standalone homes
builders.nix # local constructors, overlays, special args
systems.nix
aspects/
profiles.nix
hosts/ # host aspects
users/ # user/home aspects
features/ # Den-native feature aspects
resources/ # static feature payloads
assets/ # README/media assets
m1-mbp: Darwin + Home Managera18p-mbn: Darwin + Home Managerlanix: NixOS + Home Managerlenix: NixOS + Home Manager
Apply Home Manager config:
home-manager switch --flake .#phil_oh@hostnameApply nix-darwin config:
darwin-rebuild switch --flake .#hostnameFirst Darwin bootstrap, if needed:
nix build .#darwinConfigurations.hostname.system
./result/sw/bin/darwin-rebuild switch --flake .#hostnameApply NixOS config:
sudo nixos-rebuild switch --flake .#hostnameOn NixOS, nh can replace direct home-manager switch and nixos-rebuild switch.
