diff --git a/flake.nix b/flake.nix index 023b747..ddbe9da 100755 --- a/flake.nix +++ b/flake.nix @@ -170,6 +170,7 @@ # OS ./nixos/presets/desktop.nix ./nixos/presets/core/no-bootloader-menu.nix + ./nixos/presets/core/zram-generator.nix ./nixos/presets/desktop/gaming.nix ./nixos/presets/desktop/virtualbox.nix ./nixos/presets/desktop/wayland.nix diff --git a/nixos/presets/core/zram-generator.nix b/nixos/presets/core/zram-generator.nix new file mode 100644 index 0000000..3fe230b --- /dev/null +++ b/nixos/presets/core/zram-generator.nix @@ -0,0 +1,9 @@ +{...}: { + services.zram-generator = { + enable = true; + settings.zram0 = { + compression-algorithm = "zstd"; + zram-size = "ram"; + }; + }; +}