diff options
| author | Mel <mel@rnrd.eu> | 2025-02-12 02:28:26 +0100 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-02-12 02:28:26 +0100 |
| commit | d6e73178cdaf44746bcbfb8c78e8c99f8821a234 (patch) | |
| tree | 97397f748f766b6cb6ebcdfd3ebeab7d8affaac4 /machines/lapin/devices.nix | |
| parent | 86042b26129e86db763d021518b1838e86d6ab02 (diff) | |
| download | network-d6e73178cdaf44746bcbfb8c78e8c99f8821a234.tar.zst network-d6e73178cdaf44746bcbfb8c78e8c99f8821a234.zip | |
Replace lapin swap partition with zram, for testing
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'machines/lapin/devices.nix')
| -rw-r--r-- | machines/lapin/devices.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/machines/lapin/devices.nix b/machines/lapin/devices.nix index 4fc9610..ccf7d75 100644 --- a/machines/lapin/devices.nix +++ b/machines/lapin/devices.nix @@ -6,6 +6,15 @@ kernelModules = [ "wireguard" ]; }; + # testing with replacing swap partitions + # and files in lieu of zram. + zramSwap = { + enable = true; + algorithm = "zstd"; + swapDevices = 1; + memoryPercent = 50; + }; + networking = { # Network configuration is managed with networkd. useDHCP = false; |
