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