Move zram configuration
This commit is contained in:
parent
9568e39d2c
commit
1265131377
6 changed files with 7 additions and 25 deletions
|
@ -12,6 +12,5 @@
|
|||
./pipewire.nix
|
||||
./podman.nix
|
||||
./st.nix
|
||||
./zram.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.core.zram;
|
||||
in
|
||||
{
|
||||
options.features.core.zram.enable = mkEnableOption "Enable zram";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
algorithm = "zstd";
|
||||
memoryPercent = 90;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue