nixos,presets: add zram-generator

This commit is contained in:
Guanran Wang 2023-11-05 17:35:05 +08:00
parent ba3f71208b
commit 12d5afb47d
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
2 changed files with 10 additions and 0 deletions

View file

@ -170,6 +170,7 @@
# OS # OS
./nixos/presets/desktop.nix ./nixos/presets/desktop.nix
./nixos/presets/core/no-bootloader-menu.nix ./nixos/presets/core/no-bootloader-menu.nix
./nixos/presets/core/zram-generator.nix
./nixos/presets/desktop/gaming.nix ./nixos/presets/desktop/gaming.nix
./nixos/presets/desktop/virtualbox.nix ./nixos/presets/desktop/virtualbox.nix
./nixos/presets/desktop/wayland.nix ./nixos/presets/desktop/wayland.nix

View file

@ -0,0 +1,9 @@
{...}: {
services.zram-generator = {
enable = true;
settings.zram0 = {
compression-algorithm = "zstd";
zram-size = "ram";
};
};
}