From f1ddccb0df2050c3622518e4c0a5551b940b84b2 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Fri, 10 Apr 2026 17:31:03 +0200 Subject: [PATCH] System/Nixinator: Don't configure swapfile in disko --- system/nixinator/disks.nix | 3 ++- system/nixinator/hardware-configuration.nix | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/system/nixinator/disks.nix b/system/nixinator/disks.nix index 50ffd19d..772d8d9b 100644 --- a/system/nixinator/disks.nix +++ b/system/nixinator/disks.nix @@ -82,7 +82,8 @@ }; "swap" = { mountpoint = "/swap"; - swap.swapfile.size = "16G"; + # Configured in hardware-configuration.nix + # swap.swapfile.size = "64G"; }; }; }; diff --git a/system/nixinator/hardware-configuration.nix b/system/nixinator/hardware-configuration.nix index c380ecce..07c8f74e 100644 --- a/system/nixinator/hardware-configuration.nix +++ b/system/nixinator/hardware-configuration.nix @@ -131,8 +131,9 @@ swapDevices = [ { - device = "/var/swap"; - size = 1024 * 16; # Without hibernation 4.0 GB to 0.5 x RAM + device = "/swap/swapfile"; + size = 1024 * 64; # Without hibernation 4.0 GB to 0.5 x RAM + randomEncryption.enable = false; # The disk is already encrypted. Useless and might lead to system freeze. } ];