allow discards (TRIM) on all LUKS devices
This commit is contained in:
parent
e6b3092a95
commit
e8eeba5ba2
|
@ -24,6 +24,8 @@ in
|
||||||
boot.initrd.luks =
|
boot.initrd.luks =
|
||||||
{
|
{
|
||||||
devices =
|
devices =
|
||||||
|
# allow discards on all devices
|
||||||
|
builtins.mapAttrs (name: val: val // {allowDiscards = true;})
|
||||||
{
|
{
|
||||||
"system".device = "/dev/disk/by-uuid/85154131-b2a8-4ef5-9d74-47429cb267ef";
|
"system".device = "/dev/disk/by-uuid/85154131-b2a8-4ef5-9d74-47429cb267ef";
|
||||||
"cryptswap".device = "/dev/disk/by-uuid/ac586df6-6332-4809-beb1-f51906a2adaa";
|
"cryptswap".device = "/dev/disk/by-uuid/ac586df6-6332-4809-beb1-f51906a2adaa";
|
||||||
|
|
Loading…
Reference in a new issue