From 97e5601cf286a89c566f50c756d498e99393a05d Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Sun, 8 Mar 2026 12:45:49 +0100 Subject: [PATCH] desktop, laptop, srv-core: Enable discards on the swap partition --- hosts/desktop/disko.nix | 1 + hosts/laptop/disko.nix | 1 + hosts/srv-core/disko.nix | 5 ++++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/desktop/disko.nix b/hosts/desktop/disko.nix index 4eafc11..1c8789e 100644 --- a/hosts/desktop/disko.nix +++ b/hosts/desktop/disko.nix @@ -45,6 +45,7 @@ size = "20G"; content = { type = "swap"; + discardPolicy = "both"; resumeDevice = true; }; }; diff --git a/hosts/laptop/disko.nix b/hosts/laptop/disko.nix index 4a0923f..7dbe535 100644 --- a/hosts/laptop/disko.nix +++ b/hosts/laptop/disko.nix @@ -42,6 +42,7 @@ size = "20G"; content = { type = "swap"; + discardPolicy = "both"; resumeDevice = true; }; }; diff --git a/hosts/srv-core/disko.nix b/hosts/srv-core/disko.nix index b1c4d38..8cd022a 100644 --- a/hosts/srv-core/disko.nix +++ b/hosts/srv-core/disko.nix @@ -16,7 +16,10 @@ partitions = { swap = { size = "8G"; - content.type = "swap"; + content = { + type = "swap"; + discardPolicy = "both"; + }; }; root = { size = "100%";