mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 18:49:17 -05:00
14 lines
267 B
Nix
14 lines
267 B
Nix
|
{ pkgs, lib, config, ... }: {
|
||
|
|
||
|
options = {
|
||
|
systemConfig.zramSwap.enable = lib.mkEnableOption "Enables zram swap.";
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf config.systemConfig.zramSwap.enable {
|
||
|
zramSwap = {
|
||
|
enable = true;
|
||
|
memoryPercent = 25;
|
||
|
};
|
||
|
};
|
||
|
}
|