{ lib, ... }: with lib.types; let inherit (lib) mkOption; in { options.local = { portable = mkOption { type = bool; }; crypt = { toplevel = mkOption { default = null; type = nullOr (submodule { options = { device = mkOption { type = str; }; target = mkOption { type = str; }; headerFromBoot = mkOption { type = str; }; }; }); }; aux = mkOption { default = [ ]; type = listOf (submodule { options = { device = mkOption { type = str; }; target = mkOption { type = str; }; header = mkOption { type = str; }; keyfile = mkOption { type = str; }; }; }); }; }; }; }