Add some missing option types
This commit is contained in:
parent
7459f6fa38
commit
8ec44f343d
@ -45,6 +45,7 @@ in
|
|||||||
|
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
default = true;
|
default = true;
|
||||||
|
type = types.bool;
|
||||||
description = ''
|
description = ''
|
||||||
Whether to enable the GNU GRUB boot loader.
|
Whether to enable the GNU GRUB boot loader.
|
||||||
'';
|
'';
|
||||||
@ -53,16 +54,17 @@ in
|
|||||||
version = mkOption {
|
version = mkOption {
|
||||||
default = 1;
|
default = 1;
|
||||||
example = 2;
|
example = 2;
|
||||||
|
type = types.int;
|
||||||
description = ''
|
description = ''
|
||||||
The version of GRUB to use: <literal>1</literal> for GRUB Legacy
|
The version of GRUB to use: <literal>1</literal> for GRUB
|
||||||
(versions 0.9x), or <literal>2</literal> for GRUB 2.
|
Legacy (versions 0.9x), or <literal>2</literal> for GRUB 2.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
device = mkOption {
|
device = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "/dev/hda";
|
example = "/dev/hda";
|
||||||
type = with pkgs.lib.types; uniq string;
|
type = types.uniq types.string;
|
||||||
description = ''
|
description = ''
|
||||||
The device on which the GRUB boot loader will be installed.
|
The device on which the GRUB boot loader will be installed.
|
||||||
The special value <literal>nodev</literal> means that a GRUB
|
The special value <literal>nodev</literal> means that a GRUB
|
||||||
@ -75,7 +77,7 @@ in
|
|||||||
devices = mkOption {
|
devices = mkOption {
|
||||||
default = [];
|
default = [];
|
||||||
example = [ "/dev/hda" ];
|
example = [ "/dev/hda" ];
|
||||||
type = with pkgs.lib.types; listOf string;
|
type = types.listOf types.string;
|
||||||
description = ''
|
description = ''
|
||||||
The devices on which the boot loader, GRUB, will be
|
The devices on which the boot loader, GRUB, will be
|
||||||
installed. Can be used instead of <literal>device</literal> to
|
installed. Can be used instead of <literal>device</literal> to
|
||||||
@ -92,6 +94,7 @@ in
|
|||||||
configurationName = mkOption {
|
configurationName = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "Stable 2.6.21";
|
example = "Stable 2.6.21";
|
||||||
|
type = types.uniq types.string;
|
||||||
description = ''
|
description = ''
|
||||||
GRUB entry name instead of default.
|
GRUB entry name instead of default.
|
||||||
'';
|
'';
|
||||||
@ -99,6 +102,7 @@ in
|
|||||||
|
|
||||||
extraPrepareConfig = mkOption {
|
extraPrepareConfig = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
|
type = types.lines;
|
||||||
description = ''
|
description = ''
|
||||||
Additional bash commands to be run at the script that
|
Additional bash commands to be run at the script that
|
||||||
prepares the grub menu entries.
|
prepares the grub menu entries.
|
||||||
@ -108,6 +112,7 @@ in
|
|||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "serial; terminal_output.serial";
|
example = "serial; terminal_output.serial";
|
||||||
|
type = types.lines;
|
||||||
description = ''
|
description = ''
|
||||||
Additional GRUB commands inserted in the configuration file
|
Additional GRUB commands inserted in the configuration file
|
||||||
just before the menu entries.
|
just before the menu entries.
|
||||||
@ -117,6 +122,7 @@ in
|
|||||||
extraPerEntryConfig = mkOption {
|
extraPerEntryConfig = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "root (hd0)";
|
example = "root (hd0)";
|
||||||
|
type = types.lines;
|
||||||
description = ''
|
description = ''
|
||||||
Additional GRUB commands inserted in the configuration file
|
Additional GRUB commands inserted in the configuration file
|
||||||
at the start of each NixOS menu entry.
|
at the start of each NixOS menu entry.
|
||||||
@ -125,6 +131,7 @@ in
|
|||||||
|
|
||||||
extraEntries = mkOption {
|
extraEntries = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
|
type = types.lines;
|
||||||
example = ''
|
example = ''
|
||||||
# GRUB 1 example (not GRUB 2 compatible)
|
# GRUB 1 example (not GRUB 2 compatible)
|
||||||
title Windows
|
title Windows
|
||||||
@ -145,6 +152,7 @@ in
|
|||||||
|
|
||||||
extraEntriesBeforeNixOS = mkOption {
|
extraEntriesBeforeNixOS = mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
|
type = types.bool;
|
||||||
description = ''
|
description = ''
|
||||||
Whether extraEntries are included before the default option.
|
Whether extraEntries are included before the default option.
|
||||||
'';
|
'';
|
||||||
@ -184,6 +192,7 @@ in
|
|||||||
configurationLimit = mkOption {
|
configurationLimit = mkOption {
|
||||||
default = 100;
|
default = 100;
|
||||||
example = 120;
|
example = 120;
|
||||||
|
type = types.int;
|
||||||
description = ''
|
description = ''
|
||||||
Maximum of configurations in boot menu. GRUB has problems when
|
Maximum of configurations in boot menu. GRUB has problems when
|
||||||
there are too many entries.
|
there are too many entries.
|
||||||
@ -192,6 +201,7 @@ in
|
|||||||
|
|
||||||
copyKernels = mkOption {
|
copyKernels = mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
|
type = types.bool;
|
||||||
description = ''
|
description = ''
|
||||||
Whether the GRUB menu builder should copy kernels and initial
|
Whether the GRUB menu builder should copy kernels and initial
|
||||||
ramdisks to /boot. This is done automatically if /boot is
|
ramdisks to /boot. This is done automatically if /boot is
|
||||||
@ -201,6 +211,7 @@ in
|
|||||||
|
|
||||||
timeout = mkOption {
|
timeout = mkOption {
|
||||||
default = 5;
|
default = 5;
|
||||||
|
type = types.int;
|
||||||
description = ''
|
description = ''
|
||||||
Timeout (in seconds) until GRUB boots the default menu item.
|
Timeout (in seconds) until GRUB boots the default menu item.
|
||||||
'';
|
'';
|
||||||
@ -208,6 +219,7 @@ in
|
|||||||
|
|
||||||
default = mkOption {
|
default = mkOption {
|
||||||
default = 0;
|
default = 0;
|
||||||
|
type = types.int;
|
||||||
description = ''
|
description = ''
|
||||||
Index of the default menu item to be booted.
|
Index of the default menu item to be booted.
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user