mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
randomEncryption was typed as a plain bool, which just passed enable/allowDiscards down to NixOS's swapDevices.*.randomEncryption submodule, with no way to reach its other options (cipher, sectorSize, etc). Widen the type to bool or an attrset. A bool keeps the old behavior unchanged. An attrset enables encryption by default (overridable via its own enable key) and is merged over the enable/allowDiscards defaults, so extra NixOS randomEncryption options pass through. Fixes #438