From 472105eb8a5f8f298cc2bc3f4617121ae21f125d Mon Sep 17 00:00:00 2001 From: Asmir A Date: Sun, 25 Aug 2024 10:51:15 +0200 Subject: [PATCH] nixy: luks allow discards --- nixy/hardware-configuration.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixy/hardware-configuration.nix b/nixy/hardware-configuration.nix index 1349c09..52fcfcb 100644 --- a/nixy/hardware-configuration.nix +++ b/nixy/hardware-configuration.nix @@ -9,6 +9,7 @@ ]; boot.initrd.luks.devices."crypt_dev".device = "/dev/disk/by-uuid/e10821b9-5426-4f03-b716-1645a64fcd6a"; + boot.initrd.luks.devices."crypt_dev".allowDiscards = true; boot.initrd.availableKernelModules = [ "nvme" "ehci_pci" "xhci_pci" "uas" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ "kvm-amd" "amd-gpu" ];