Files
dotfiles/modules/zram.nix
alexion 826e4a18dc Give neogaia the CachyOS kernel and hardware enablement (task 0003)
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.
2026-07-19 07:57:21 -04:00

15 lines
401 B
Nix

{ 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;
};
}