2.6 KiB
2.6 KiB
modules/core/
Cross-platform base configuration imported by every host (NixOS and macOS) via
modules/main.nix. This is where the primary user, Nix binary caches, distributed builds,
and a couple of nixpkgs overlays/workarounds live.
Files
core/
├── default.nix # Entry point: imports the files below + overlays + remote builder
├── user.nix # skyg.user.* — the human user + Home Manager wiring
├── nix-substituters.nix # skyg.core.substituters.* — binary caches & trusted keys
├── lab-ca.nix # Fleet-wide trust of the lab internal CA (configs/pki/lab-ca.crt)
└── macos.nix # skyg.user.macos.enableOverride — macOS-only HM tweaks
What lives here
- Overlays (
default.nix): exposes thepkgs/packages —grok-cli,colibri(+colibri-rocm),niri-touchscreen-gestures,buzz-desktop, — and patchespython3Packages.pipxto skip its flaky install check on nixpkgs 26.05. - Distributed builds (
default.nix): registersbigbox1.lab.internalandfwdesk.lab.internalas remotex86_64-linuxbuild machines and enablesbuilders-use-substitutes. - User (
user.nix): definesskyg.user.{name,fullName,email}plusskyg.home-manager.{version,extraImports}. Whenskyg.user.enableis set it wires up Home Manager for bothrootand the named user using the functions inmodules/home. - Substituters (
nix-substituters.nix): the standing list of caches (localminipc1andbigbox2caches, cache.nixos.org, cachix caches for cuda/cosmic/ai/noctalia/nixarchy, flox, devenv) and the trusted public keys. Extra entries can be appended per-host viaskyg.core.substituters.{urls,keys}. Also setshttp-connections = 8anddownload-attempts = 10so flaky links (Wi-Fi) don't disable cache.nixos.org mid-build. - Lab CA trust (
lab-ca.nix): addsconfigs/pki/lab-ca.crttosecurity.pki.certificateFilesso every machine trusts the lab internal CA (created byskyg ca init, seeconfigs/pki/ABOUTME.md). Eval fails if the cert file is missing — runskyg ca initbefore the first rebuild.
Option Namespace
skyg.user.* → user.nix (+ macos.nix for the macOS override)
skyg.home-manager.* → user.nix
skyg.core.substituters.* → nix-substituters.nix
Conventions
skyg.user.enabletriggers Home Manager setup and asserts thatname,fullName, andemailare non-empty.- Cache URLs/keys here are global defaults; add host-specific caches through the
skyg.core.substituters.{urls,keys}options rather than editing this file.