mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 08:09:16 -05:00
14 lines
195 B
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;
|
|
};
|
|
};
|
|
}
|