1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

luksroot module: optionSet -> submodule

This commit is contained in:
Eric Sagnes 2016-09-11 18:58:26 +09:00
parent 55e437806a
commit 96f5788346

View file

@ -236,9 +236,8 @@ in
<filename>/dev/mapper/<replaceable>name</replaceable></filename>.
'';
type = types.loaOf types.optionSet;
options = { name, ... }: { options = {
type = with types; loaOf (submodule (
{ name, ... }: { options = {
name = mkOption {
visible = false;
@ -307,12 +306,12 @@ in
yubikey = mkOption {
default = null;
type = types.nullOr types.optionSet;
description = ''
The options to use for this LUKS device in Yubikey-PBA.
If null (the default), Yubikey-PBA will be disabled for this device.
'';
type = with types; nullOr (submodule {
options = {
twoFactor = mkOption {
default = true;
@ -392,9 +391,10 @@ in
};
};
};
});
};
}; };
}; }));
};
boot.initrd.luks.yubikeySupport = mkOption {