git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #6601 from joachifm/gardening

nixos: some gardening

commit29d0d78e7ebb2a868bacb3813987c75a92d6ae20 authorJaka Hudoklin <jakahudoklin@gmail.com> dateSat 28 Feb 2015, 12:05 (12 years ago) parentbd818850473b4a
6 files changed+14−3
nixos/modules/system/boot/loader/generations-dir/generations-dir.nix+2 nixos/modules/system/boot/loader/grub/grub.nix+1 nixos/modules/system/boot/loader/init-script/init-script.nix+1 nixos/modules/system/boot/loader/raspberrypi/raspberrypi.nix+1 nixos/modules/tasks/kbd.nix+1 nixos/modules/virtualisation/lxc.nix+8−3
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
nixos/modules/virtualisation/lxc.nix+8−3
@@ -32,7 +32,9 @@ in
3232 default = "";
3333 description =
3434 ''
35− This is the system-wide LXC config. See lxc.system.conf(5).
35+ This is the system-wide LXC config. See
36+ <citerefentry><refentrytitle>lxc.system.conf</refentrytitle>
37+ <manvolnum>5</manvolnum></citerefentry>.
3638 '';
3739 };
3840
@@ -43,7 +45,8 @@ in
4345 description =
4446 ''
4547 Default config (default.conf) for new containers, i.e. for
46− network config. See lxc.container.conf(5).
48+ network config. See <citerefentry><refentrytitle>lxc.container.conf
49+ </refentrytitle><manvolnum>5</manvolnum></citerefentry>.
4750 '';
4851 };
4952
@@ -54,7 +57,9 @@ in
5457 description =
5558 ''
5659 This is the config file for managing unprivileged user network
57− administration access in LXC. See lxc-user-net(5).
60+ administration access in LXC. See <citerefentry>
61+ <refentrytitle>lxc-user-net</refentrytitle><manvolnum>5</manvolnum>
62+ </citerefentry>.
5863 '';
5964 };
6065