disko icon indicating copy to clipboard operation
disko copied to clipboard

`randomEncryption` does not support extended configuration from NixOS module

Open ivan770 opened this issue 2 years ago • 1 comments

Hi!

It seems that the randomEncryption config option for the swap partition type just passes the configuration value down to NixOS config as-is, but since option's type is lib.types.bool it limits configuration capabilities to simply enabling/disabling this feature, without providing a way to, for example, allow discards.

ivan770 avatar Nov 02 '23 13:11 ivan770

This should be very easy to fix by simply allowing the type types.attrsOf types.anything. Of course, a simple boolean still has to be allowed for backwards-compatibility.

iFreilicht avatar Oct 16 '24 15:10 iFreilicht