2.1 KiB
2.1 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
└── macos.nix # skyg.user.macos.enableOverride — macOS-only HM tweaks
What lives here
- Overlays (
default.nix): exposes thepkgs/packages —grok-cli,ds4(+ds4-rocm/ds4-cuda),colibri(+colibri-rocm),niri-touchscreen-gestures,buzz-desktop,ollama(+ollama-rocm/ollama-vulkan) — 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 (localminipc1cache, cache.nixos.org, cachix caches for cuda/cosmic/ai/noctalia, flox, devenv) and the trusted public keys. Extra entries can be appended per-host viaskyg.core.substituters.{urls,keys}.
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.