nixos: add a few missing type specifiers under boot.*
commitd375550ead7d6833e24dc7e6f074f7463cec7033
authorJoachim Fasting <joachifm@fastmail.fm>
dateMon 23 Feb 2015, 18:00 (12 years ago)
parentbd81885
nixos/modules/system/boot/loader/generations-dir/generations-dir.nix+2
@@ -24,6 +24,7 @@ in
2424
2525 enable = mkOption {
2626 default = false;
27+ type = types.bool;
2728 description = ''
2829 Whether to create symlinks to the system generations under
2930 <literal>/boot</literal>. When enabled,
@@ -42,6 +43,7 @@ in
4243
4344 copyKernels = mkOption {
4445 default = false;
46+ type = types.bool;
4547 description = "
4648 Whether copy the necessary boot files into /boot, so
4749 /nix/store is not needed by the boot loader.
nixos/modules/system/boot/loader/grub/grub.nix+1
@@ -179,6 +179,7 @@ in
179179 };
180180
181181 splashImage = mkOption {
182+ type = types.nullOr types.path;
182183 example = literalExample "./my-background.png";
183184 description = ''
184185 Background image used for GRUB. It must be a 640x480,
nixos/modules/system/boot/loader/init-script/init-script.nix+1
@@ -23,6 +23,7 @@ in
2323
2424 enable = mkOption {
2525 default = false;
26+ type = types.bool;
2627 description = ''
2728 Some systems require a /sbin/init script which is started.
2829 Or having it makes starting NixOS easier.
nixos/modules/system/boot/loader/raspberrypi/raspberrypi.nix+1
@@ -21,6 +21,7 @@ in
2121
2222 boot.loader.raspberryPi.enable = mkOption {
2323 default = false;
24+ type = types.bool;
2425 description = ''
2526 Whether to create files with the system generations in
2627 <literal>/boot</literal>.
nixos/modules/tasks/kbd.nix+1
@@ -22,6 +22,7 @@ in
2222 # FIXME: still needed?
2323 boot.extraTTYs = mkOption {
2424 default = [];
25+ type = types.listOf types.string;
2526 example = ["tty8" "tty9"];
2627 description = ''
2728 Tty (virtual console) devices, in addition to the consoles on