nixcfg/nixosModules/base/zramSwap/default.nix

14 lines
195 B
Nix

{
config,
lib,
pkgs,
...
}: {
config = lib.mkIf config.ar.base.zramSwap.enable {
zramSwap = {
enable = true;
memoryPercent = config.ar.base.zramSwap.size;
};
};
}