nixos,presets: add zram-generator
This commit is contained in:
parent
ba3f71208b
commit
12d5afb47d
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||||
|
|
9
nixos/presets/core/zram-generator.nix
Normal file
9
nixos/presets/core/zram-generator.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{...}: {
|
||||||
|
services.zram-generator = {
|
||||||
|
enable = true;
|
||||||
|
settings.zram0 = {
|
||||||
|
compression-algorithm = "zstd";
|
||||||
|
zram-size = "ram";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue