git.iko.soy/typeable/nixpkgs
on master help sign in
grub module: optionSet -> submodule
commit55e437806a2875d1f588ebadafaf66ff0d1d9b22 authorEric Sagnes <eric.sagnes@gmail.com> dateSun 11 Sep 2016, 18:51 (10 years ago) parent03ee88f
1 file changed+43−43
nixos/modules/system/boot/loader/grub/grub.nix+43−43
nixos/modules/system/boot/loader/grub/grub.nix+43−43
@@ -131,51 +131,51 @@ in
131131 to the respective devices corresponding to those partitions.
132132 '';
133133
134− type = types.listOf types.optionSet;
134+ type = with types; listOf (submodule {
135+ options = {
136+
137+ path = mkOption {
138+ example = "/boot1";
139+ type = types.str;
140+ description = ''
141+ The path to the boot directory where GRUB will be written. Generally
142+ this boot path should double as an EFI path.
143+ '';
144+ };
145+
146+ efiSysMountPoint = mkOption {
147+ default = null;
148+ example = "/boot1/efi";
149+ type = types.nullOr types.str;
150+ description = ''
151+ The path to the efi system mount point. Usually this is the same
152+ partition as the above path and can be left as null.
153+ '';
154+ };
155+
156+ efiBootloaderId = mkOption {
157+ default = null;
158+ example = "NixOS-fsid";
159+ type = types.nullOr types.str;
160+ description = ''
161+ The id of the bootloader to store in efi nvram.
162+ The default is to name it NixOS and append the path or efiSysMountPoint.
163+ This is only used if <literal>boot.loader.efi.canTouchEfiVariables</literal> is true.
164+ '';
165+ };
166+
167+ devices = mkOption {
168+ default = [ ];
169+ example = [ "/dev/sda" "/dev/sdb" ];
170+ type = types.listOf types.str;
171+ description = ''
172+ The path to the devices which will have the GRUB MBR written.
173+ Note these are typically device paths and not paths to partitions.
174+ '';
175+ };
135176
136− options = {
137−
138− path = mkOption {
139− example = "/boot1";
140− type = types.str;
141− description = ''
142− The path to the boot directory where GRUB will be written. Generally
143− this boot path should double as an EFI path.
144− '';
145− };
146−
147− efiSysMountPoint = mkOption {
148− default = null;
149− example = "/boot1/efi";
150− type = types.nullOr types.str;
151− description = ''
152− The path to the efi system mount point. Usually this is the same
153− partition as the above path and can be left as null.
154− '';
155− };
156−
157− efiBootloaderId = mkOption {
158− default = null;
159− example = "NixOS-fsid";
160− type = types.nullOr types.str;
161− description = ''
162− The id of the bootloader to store in efi nvram.
163− The default is to name it NixOS and append the path or efiSysMountPoint.
164− This is only used if <literal>boot.loader.efi.canTouchEfiVariables</literal> is true.
165− '';
166177 };
167−
168− devices = mkOption {
169− default = [ ];
170− example = [ "/dev/sda" "/dev/sdb" ];
171− type = types.listOf types.str;
172− description = ''
173− The path to the devices which will have the GRUB MBR written.
174− Note these are typically device paths and not paths to partitions.
175− '';
176− };
177−
178− };
178+ });
179179 };
180180
181181 configurationName = mkOption {