feat(neogaia): add the CachyOS kernel and hardware enablement

Select the CachyOS kernel per-Host via boot.kernelPackages, enable Intel
microcode and redistributable firmware (ath10k for the QCA6174 wifi), and
move zram behind a toggle Module. Declare the chaotic binary cache in the
base Nix settings (extra-substituters/keys) so the built system fetches the
kernel from nyx-cache rather than compiling it.
This commit is contained in:
2026-07-18 15:28:39 -04:00
parent bfc9e6f75b
commit 053c4de529
5 changed files with 73 additions and 3 deletions

14
modules/zram.nix Normal file
View File

@@ -0,0 +1,14 @@
{ config, lib, ... }:
# A toggle for RAM-backed swap. A Host that has no on-disk swap partition (like
# neogaia, whose disko layout deliberately omits one) enables this to get a
# compressed zram device instead.
let
cfg = config.modules.zram;
in
{
options.modules.zram.enable = lib.mkEnableOption "zram-backed compressed swap";
config = lib.mkIf cfg.enable {
zramSwap.enable = true;
};
}