mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 22:43:55 -05:00
14 lines
211 B
Nix
14 lines
211 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: {
|
||
|
config = lib.mkIf config.alyraffauf.base.zramSwap.enable {
|
||
|
zramSwap = {
|
||
|
enable = true;
|
||
|
memoryPercent = config.alyraffauf.base.zramSwap.size;
|
||
|
};
|
||
|
};
|
||
|
}
|