Move zram configuration

This commit is contained in:
Oliver Davies 2025-07-25 20:46:25 +01:00
parent 9568e39d2c
commit 1265131377
6 changed files with 7 additions and 25 deletions

View file

@ -12,6 +12,5 @@
./pipewire.nix
./podman.nix
./st.nix
./zram.nix
];
}

View file

@ -1,18 +0,0 @@
{ config, lib, ... }:
with lib;
let
cfg = config.features.core.zram;
in
{
options.features.core.zram.enable = mkEnableOption "Enable zram";
config = mkIf cfg.enable {
zramSwap = {
enable = true;
algorithm = "zstd";
memoryPercent = 90;
};
};
}