allow discards (TRIM) on all LUKS devices

flake-conversion
Trolli Schmittlauch 2020-06-06 01:40:46 +02:00
parent e6b3092a95
commit e8eeba5ba2
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,8 @@ in
boot.initrd.luks =
{
devices =
# allow discards on all devices
builtins.mapAttrs (name: val: val // {allowDiscards = true;})
{
"system".device = "/dev/disk/by-uuid/85154131-b2a8-4ef5-9d74-47429cb267ef";
"cryptswap".device = "/dev/disk/by-uuid/ac586df6-6332-4809-beb1-f51906a2adaa";