Drop the zram Module and enable zram inline on neogaia

modules/zram.nix only wrapped the native zramSwap.enable toggle without
adding anything. Rewrite the touched comments to describe only the current
file content, and record the in-file-comment convention in CLAUDE.md.
This commit is contained in:
2026-07-18 15:41:43 -04:00
parent 6c1ebfdd5f
commit 96f2de54ca
5 changed files with 15 additions and 31 deletions

View File

@@ -1,14 +0,0 @@
{ 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;
};
}