all: Add allowDiscards to LUKS and enable weekly fstrim

This commit is contained in:
fleaz 2023-06-25 01:06:46 +02:00
parent 13868e6906
commit 55606b41cc
2 changed files with 4 additions and 1 deletions

View file

@ -8,6 +8,7 @@ in
boot.initrd.luks.devices."cryptroot" = {
fallbackToPassword = true;
keyFile = secretsFile;
allowDiscards = true; # Allow TRIM
};
# copy the secret into the additional initramfs. `null` means same path