mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-24 21:21:53 -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;
|
|
};
|
|
};
|
|
}
|