refactor(modules): reduce host repetition
This commit is contained in:
@@ -11,9 +11,10 @@ Personal Nix flake for four machines:
|
||||
|
||||
- `modules/` - flake-parts modules, auto-imported via `import-tree`
|
||||
- `modules/hosts/` - per-host composition modules
|
||||
- `modules/hosts/_parts/` - host-private leaf modules like hardware, disks, and services
|
||||
- `modules/hosts/_parts/` - host-private leaf modules like hardware, disks, and literal networking
|
||||
- `modules/profiles/` - shared host and user profile bundles
|
||||
- `modules/_lib/` - local helper functions
|
||||
- `modules/_notability/`, `modules/_paperless/` - feature-owned scripts and templates
|
||||
- `apps/` - Nushell apps exposed through the flake
|
||||
- `secrets/` - SOPS-encrypted secrets
|
||||
- `flake.nix` - generated flake entrypoint
|
||||
@@ -27,7 +28,8 @@ This repo uses `den` and organizes configuration around aspects instead of putti
|
||||
- the machine inventory lives in `modules/inventory.nix`
|
||||
- shared bundles live in `modules/profiles/{host,user}/`
|
||||
- host composition happens in `modules/hosts/<host>.nix`
|
||||
- host-private imports live in `modules/hosts/_parts/<host>/`
|
||||
- host-private imports live in `modules/hosts/_parts/<host>/` and stay limited to true machine leaf files
|
||||
- feature-owned services live in top-level modules like `modules/gitea.nix`, `modules/notability.nix`, and `modules/paperless.nix`
|
||||
- user-level config mostly lives in Home Manager aspects
|
||||
|
||||
Common examples:
|
||||
@@ -35,6 +37,8 @@ Common examples:
|
||||
- `modules/core.nix` - shared Nix and shell foundation
|
||||
- `modules/dev-tools.nix` - VCS, language, and developer tooling
|
||||
- `modules/network.nix` - SSH, fail2ban, and tailscale aspects
|
||||
- `modules/gitea.nix` - Gitea, Litestream, and backup stack for `michael`
|
||||
- `modules/notability.nix` - Notability ingest services and user tooling for `tahani`
|
||||
- `modules/profiles/user/workstation.nix` - shared developer workstation user bundle
|
||||
- `modules/hosts/michael.nix` - server composition for `michael`
|
||||
- `modules/hosts/tahani.nix` - server/workstation composition for `tahani`
|
||||
|
||||
Reference in New Issue
Block a user