summary refs log tree commit diff
path: root/machines/renard
diff options
context:
space:
mode:
Diffstat (limited to 'machines/renard')
-rw-r--r--machines/renard/devices.nix7
-rw-r--r--machines/renard/hardware.nix6
2 files changed, 9 insertions, 4 deletions
diff --git a/machines/renard/devices.nix b/machines/renard/devices.nix
index 98d568e..6965d7d 100644
--- a/machines/renard/devices.nix
+++ b/machines/renard/devices.nix
@@ -11,6 +11,13 @@
     device = "/dev/sda";
   };
 
+  zramSwap = {
+    enable = true;
+    algorithm = "zstd";
+    swapDevices = 1;
+    memoryPercent = 50;
+  };
+
   networking.useDHCP = false;
 
   systemd.network.enable = true;
diff --git a/machines/renard/hardware.nix b/machines/renard/hardware.nix
index 09baf3b..2b4173e 100644
--- a/machines/renard/hardware.nix
+++ b/machines/renard/hardware.nix
@@ -18,16 +18,14 @@
       fsType = "ext4";
     };
 
-  swapDevices =
-    [ { device = "/dev/disk/by-uuid/cef8b552-2fd2-46ef-b033-693e5b1da438"; }
-    ];
+  swapDevices = [ ];
 
   # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
   # (the default) this is the recommended approach. When using systemd-networkd it's
   # still possible to use this option, but it's recommended to use it in conjunction
   # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
   networking.useDHCP = lib.mkDefault true;
-  # networking.interfaces.eth0.useDHCP = lib.mkDefault true;
+  # networking.interfaces.ens18.useDHCP = lib.mkDefault true;
 
   nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
 }