diff options
-rw-r--r-- | common/default.nix | 1 | ||||
-rw-r--r-- | common/zram.nix | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/common/default.nix b/common/default.nix index d4e2e39..2d3b33c 100644 --- a/common/default.nix +++ b/common/default.nix | |||
@@ -11,6 +11,7 @@ inputs: | |||
11 | (import ./theme.nix inputs) | 11 | (import ./theme.nix inputs) |
12 | (import ./tinc.nix inputs) | 12 | (import ./tinc.nix inputs) |
13 | (import ./vim.nix inputs) | 13 | (import ./vim.nix inputs) |
14 | (import ./zram.nix inputs) | ||
14 | ]; | 15 | ]; |
15 | 16 | ||
16 | nixpkgs.overlays = [ | 17 | nixpkgs.overlays = [ |
diff --git a/common/zram.nix b/common/zram.nix new file mode 100644 index 0000000..7a16710 --- /dev/null +++ b/common/zram.nix | |||
@@ -0,0 +1,11 @@ | |||
1 | inputs: | ||
2 | |||
3 | { ... }: | ||
4 | |||
5 | { | ||
6 | zramSwap = { | ||
7 | enable = true; | ||
8 | algorithm = "zstd"; | ||
9 | memoryPercent = 50; | ||
10 | }; | ||
11 | } | ||