mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-23 01:43:56 -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;
|
|
};
|
|
};
|
|
}
|