diff options
| author | Mel <mel@rnrd.eu> | 2025-02-13 20:41:21 +0100 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-02-13 20:41:21 +0100 |
| commit | 839b82dae43324782166b16b624e34a8c7fe4104 (patch) | |
| tree | 5a73bec4ed86ccbb80124281bb523760e91e97ef /machines/bismuth/devices.nix | |
| parent | 99d0549197733e83eec317c40d22389a91b8ea8b (diff) | |
| download | minerals-839b82dae43324782166b16b624e34a8c7fe4104.tar.zst minerals-839b82dae43324782166b16b624e34a8c7fe4104.zip | |
Use zram for bismuth too (not that it needs it :3)
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'machines/bismuth/devices.nix')
| -rw-r--r-- | machines/bismuth/devices.nix | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/machines/bismuth/devices.nix b/machines/bismuth/devices.nix index ff28761..cf17a89 100644 --- a/machines/bismuth/devices.nix +++ b/machines/bismuth/devices.nix @@ -21,11 +21,14 @@ ]; }; - # swap - swapDevices = [{ - device = "/var/swapfile"; - size = 8 * 1024; - }]; + # testing with replacing swap partitions and files + # and files in lieu of zram. + zramSwap = { + enable = true; + algorithm = "zstd"; + swapDevices = 1; + memoryPercent = 25; # 50% would just be too big for bismuth. + }; # internet networking.networkmanager.enable = true; |
