refactor(neogaia): drop the zram Module and enable zram inline
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:
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user