disko
disko copied to clipboard
`randomEncryption` does not support extended configuration from NixOS module
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.
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.