1 parent
80ec3dfdd3
commit
079cceb554
57 files changed
+4092
-538
No files matched your search
@@ -7,9 +7,12 @@ every `.nix` file under `modules/` is a flake-parts module, imported by
|
||||
import-tree. Features ("aspects") are `flake.modules.nixos.<name>` and
|
||||
`flake.modules.homeManager.<name>`; a host imports the aspects it wants.
|
||||
Stack: flake-parts, home-manager (NixOS module), agenix, disko, lanzaboote
|
||||
(Secure Boot), Hyprland (own flake and overlay) + Noctalia, Stylix theming,
|
||||
WezTerm, Neovim, Steam + Proton, proxy-suite, Docker and a Gitea runner,
|
||||
Claude Code with MCP servers, full AMD support.
|
||||
(Secure Boot), Hyprland (own flake and overlay) + Noctalia with an SDDM
|
||||
greeter (no autologin), Stylix theming (opt-out: `autoEnable = true`), WezTerm,
|
||||
Neovim (configuration from the private `nvim` input), Obsidian with a
|
||||
declarative vault, Steam + Proton, proxy-suite with an AmneziaWG split tunnel
|
||||
and a manual full-tunnel profile, Docker and a Gitea runner, Claude Code with MCP
|
||||
servers, dev shells (Rust via fenix, C/C++, Vulkan) with `dev`, full AMD support.
|
||||
|
||||
The canonical remote is Gitea (https://git.faumaray.com/faumaray/NixOsConfig);
|
||||
GitHub is a secondary remote. Pull requests and issues are handled through the
|
||||
@@ -18,32 +21,48 @@ Gitea MCP tools.
|
||||
- `flake.nix`: inputs and `nixConfig`; `outputs` is flake-parts over import-tree
|
||||
of `modules/`.
|
||||
- `modules/flake/`: glue: systems, `meta` (shared data), host construction
|
||||
(`configurations.nixos`), overlays, packages, apps, dev shell, formatter, checks.
|
||||
(`configurations.nixos`), overlays, packages, apps, dev shell, dev shells
|
||||
(`shells.<name>` → `devShells`), formatter, checks.
|
||||
- `modules/users/`: `meta.owner`, the user identity every aspect reads.
|
||||
- `modules/core/`: the `core` aspect every host imports (nix, nixpkgs, boot,
|
||||
locale, networking, users, home-manager, facts for install-system; agenix
|
||||
joins it from `modules/security/secrets.nix`).
|
||||
- `modules/<area>/`: aspects (`boot`, `hardware`, `security`, `network`, `dev`,
|
||||
`desktop`, `theme`, `cli`, `ai`, `gaming`); one file can define the NixOS and
|
||||
the home-manager half of a feature.
|
||||
the home-manager half of a feature. The exception is `modules/dev/shells/`:
|
||||
plain `perSystem.shells.<name>` definitions, not aspects (mechanism in
|
||||
`modules/flake/shells.nix`).
|
||||
- `modules/hosts/<name>/`: a host: aspect lists and host-only values
|
||||
(`modules/hosts/desktop/host.nix`, plus `hardware.nix` and `disks.nix`).
|
||||
- `modules/installer/`: the installer ISO.
|
||||
- `hosts/<name>/`: files install-system writes (`hardware-configuration.nix`,
|
||||
`disk-ids.json`); not modules.
|
||||
- `pkgs/`: install, key and secret helpers (`nix run .#<app>`; the apps are
|
||||
declared in `modules/flake/apps.nix`).
|
||||
declared in `modules/flake/apps.nix`) and `dev`, the dev shell helper
|
||||
(`pkgs/dev-shell`).
|
||||
- `patches/`: patches to flake inputs, applied with `applyPatches`
|
||||
(`patches/proxy-suite/`, used by `modules/network/proxy-suite.nix`); drop one
|
||||
when upstream has the fix.
|
||||
- `secrets/`: `secrets.nix` (recipients) and encrypted `*.age` files, all
|
||||
optional (login password, SSH keys, `secrets/gitea-runner-token.age`,
|
||||
`secrets/tg-ws-proxy-secret.age`). Never commit plaintext or `keys/`.
|
||||
`secrets/tg-ws-proxy-secret.age`, `secrets/amneziawg-ai.age`). Never commit
|
||||
plaintext or `keys/`. A plaintext copy such as the gitignored `/WG.conf` must
|
||||
not stay in the repository: refer to the flake as `.#...`, never with `path:`
|
||||
or `builtins.getFlake`, which would copy it into the Nix store.
|
||||
|
||||
Conventions: format with `nix fmt` (nixfmt). New behaviour is a new aspect,
|
||||
not an `enable` option: importing an aspect enables it. Shared values come from
|
||||
`config.meta`, bound in a `let` before any NixOS/home-manager module;
|
||||
home-manager halves read the system through `osConfig`. Theming goes through
|
||||
`modules/theme/stylix.nix`. Keep host files small.
|
||||
Checks: `nix flake check --no-build` and
|
||||
`nix eval .#nixosConfigurations.desktop.config.system.build.toplevel.drvPath`.
|
||||
`modules/theme/stylix.nix`: Stylix themes every program it supports, and a
|
||||
target is switched off there by name. Keep host files small.
|
||||
Checks: `nix eval .#nixosConfigurations.desktop.config.system.build.toplevel.drvPath`
|
||||
first, then `nix flake check --no-build`. The check is read-only and fails with
|
||||
`…-proxy-suite-flake-patched.drv is not valid` when the store lacks the patched
|
||||
proxy-suite tree (fresh clone or machine, `nix flake update` of nixpkgs or
|
||||
proxy-suite, an edited patch, a garbage collection); the eval builds it, so rerun.
|
||||
Evaluating the host fetches the private `nvim` input over SSH (with the key of
|
||||
the user running nix) unless it is already in the store.
|
||||
|
||||
## Multi-agent orchestration policy
|
||||
|
||||
|
||||
Reference in new issue
Block a user