From 8e7dc83064145a33955af87c355efe59f316638c Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 18 Aug 2025 16:26:23 +0200 Subject: Renew renard hardware, replace swap partition with zram Signed-off-by: Mel --- machines/renard/devices.nix | 7 +++++++ machines/renard/hardware.nix | 6 ++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'machines') 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..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"; } -- cgit 1.4.1