Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 1.41 KB

File metadata and controls

64 lines (47 loc) · 1.41 KB

Philo's Nix-Config

Personal Nix config for NixOS, nix-darwin, and Home Manager.

Architecture

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

Active hosts

  • m1-mbp: Darwin + Home Manager
  • a18p-mbn: Darwin + Home Manager
  • lanix: NixOS + Home Manager
  • lenix: NixOS + Home Manager

Example usage

Apply Home Manager config:

home-manager switch --flake .#phil_oh@hostname

Apply nix-darwin config:

darwin-rebuild switch --flake .#hostname

First Darwin bootstrap, if needed:

nix build .#darwinConfigurations.hostname.system
./result/sw/bin/darwin-rebuild switch --flake .#hostname

Apply NixOS config:

sudo nixos-rebuild switch --flake .#hostname

On NixOS, nh can replace direct home-manager switch and nixos-rebuild switch.