From 462f0eecf48e2fd404787493e0764c087b4f6310 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Wed, 17 Jul 2024 09:33:33 +0100 Subject: [PATCH] gendry: allow luks discards --- .../hardware-configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/hardware-configuration.nix b/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/hardware-configuration.nix index 1534d8c..7ffb87d 100644 --- a/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/hardware-configuration.nix +++ b/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/hardware-configuration.nix @@ -28,7 +28,10 @@ options = [ "subvol=nix" ]; }; - boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/af328e8d-d929-43f1-8d04-1c96b5147e5e"; + boot.initrd.luks.devices."root" = { + device = "/dev/disk/by-uuid/af328e8d-d929-43f1-8d04-1c96b5147e5e"; + allowDiscards = true; + }; fileSystems."/data" = {