nixcfg/nixosModules/base/zramSwap/default.nix

14 lines
211 B
Nix
Raw Normal View History

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