replace list by listOf using same style as for attrsOf
This commit is contained in:
parent
6e20c697cd
commit
f3e6b42258
@ -26,7 +26,7 @@ with utils;
|
|||||||
recommended.
|
recommended.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
type = types.list types.optionSet;
|
type = types.listOf types.optionSet;
|
||||||
|
|
||||||
options = {config, options, ...}: {
|
options = {config, options, ...}: {
|
||||||
|
|
||||||
|
@ -221,7 +221,7 @@ in
|
|||||||
|
|
||||||
binaryCaches = mkOption {
|
binaryCaches = mkOption {
|
||||||
default = [ http://nixos.org/binary-cache ];
|
default = [ http://nixos.org/binary-cache ];
|
||||||
type = types.list types.string;
|
type = types.listOf types.string;
|
||||||
description = ''
|
description = ''
|
||||||
List of binary cache URLs used to obtain pre-built binaries
|
List of binary cache URLs used to obtain pre-built binaries
|
||||||
of Nix packages.
|
of Nix packages.
|
||||||
@ -231,7 +231,7 @@ in
|
|||||||
trustedBinaryCaches = mkOption {
|
trustedBinaryCaches = mkOption {
|
||||||
default = [ ];
|
default = [ ];
|
||||||
example = [ http://hydra.nixos.org/ ];
|
example = [ http://hydra.nixos.org/ ];
|
||||||
type = types.list types.string;
|
type = types.listOf types.string;
|
||||||
description = ''
|
description = ''
|
||||||
List of binary cache URLs that non-root users can use (in
|
List of binary cache URLs that non-root users can use (in
|
||||||
addition to those specified using
|
addition to those specified using
|
||||||
|
@ -85,7 +85,7 @@ in
|
|||||||
devices = mkOption {
|
devices = mkOption {
|
||||||
default = [];
|
default = [];
|
||||||
example = [ { device = "/dev/sda"; } { device = "/dev/sdb"; options = "-d sat"; } ];
|
example = [ { device = "/dev/sda"; } { device = "/dev/sdb"; options = "-d sat"; } ];
|
||||||
type = types.list types.optionSet;
|
type = types.listOf types.optionSet;
|
||||||
options = [ smartdOpts ];
|
options = [ smartdOpts ];
|
||||||
description = ''
|
description = ''
|
||||||
List of devices to monitor. By default -- if this list is empty --,
|
List of devices to monitor. By default -- if this list is empty --,
|
||||||
|
@ -108,7 +108,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.trustedInterfaces = mkOption {
|
networking.firewall.trustedInterfaces = mkOption {
|
||||||
type = types.list types.string;
|
type = types.listOf types.string;
|
||||||
description =
|
description =
|
||||||
''
|
''
|
||||||
Traffic coming in from these interfaces will be accepted
|
Traffic coming in from these interfaces will be accepted
|
||||||
@ -119,7 +119,7 @@ in
|
|||||||
networking.firewall.allowedTCPPorts = mkOption {
|
networking.firewall.allowedTCPPorts = mkOption {
|
||||||
default = [];
|
default = [];
|
||||||
example = [ 22 80 ];
|
example = [ 22 80 ];
|
||||||
type = types.list types.int;
|
type = types.listOf types.int;
|
||||||
description =
|
description =
|
||||||
''
|
''
|
||||||
List of TCP ports on which incoming connections are
|
List of TCP ports on which incoming connections are
|
||||||
@ -130,7 +130,7 @@ in
|
|||||||
networking.firewall.allowedUDPPorts = mkOption {
|
networking.firewall.allowedUDPPorts = mkOption {
|
||||||
default = [];
|
default = [];
|
||||||
example = [ 53 ];
|
example = [ 53 ];
|
||||||
type = types.list types.int;
|
type = types.listOf types.int;
|
||||||
description =
|
description =
|
||||||
''
|
''
|
||||||
List of open UDP ports.
|
List of open UDP ports.
|
||||||
@ -168,7 +168,7 @@ in
|
|||||||
networking.firewall.connectionTrackingModules = mkOption {
|
networking.firewall.connectionTrackingModules = mkOption {
|
||||||
default = [ "ftp" ];
|
default = [ "ftp" ];
|
||||||
example = [ "ftp" "irc" "sane" "sip" "tftp" "amanda" "h323" "netbios_sn" "pptp" "snmp" ];
|
example = [ "ftp" "irc" "sane" "sip" "tftp" "amanda" "h323" "netbios_sn" "pptp" "snmp" ];
|
||||||
type = types.list types.string;
|
type = types.listOf types.string;
|
||||||
description =
|
description =
|
||||||
''
|
''
|
||||||
List of connection-tracking helpers that are auto-loaded.
|
List of connection-tracking helpers that are auto-loaded.
|
||||||
|
@ -67,7 +67,7 @@ in
|
|||||||
A list of services provided by xinetd.
|
A list of services provided by xinetd.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
type = types.list types.optionSet;
|
type = types.listOf types.optionSet;
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
phononBackends = mkOption {
|
phononBackends = mkOption {
|
||||||
type = types.list types.string;
|
type = types.listOf types.string;
|
||||||
default = ["gstreamer"];
|
default = ["gstreamer"];
|
||||||
example = ["gstreamer" "vlc"];
|
example = ["gstreamer" "vlc"];
|
||||||
description = "Which phonon multimedia backend kde should use";
|
description = "Which phonon multimedia backend kde should use";
|
||||||
@ -65,7 +65,7 @@ in
|
|||||||
environment.kdePackages = mkOption {
|
environment.kdePackages = mkOption {
|
||||||
default = [];
|
default = [];
|
||||||
example = "[ pkgs.kde4.kdesdk ]";
|
example = "[ pkgs.kde4.kdesdk ]";
|
||||||
type = types.list types.package;
|
type = types.listOf types.package;
|
||||||
description = "This option is obsolete. Please use <option>environment.systemPackages</option> instead.";
|
description = "This option is obsolete. Please use <option>environment.systemPackages</option> instead.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -384,7 +384,7 @@ in
|
|||||||
|
|
||||||
environment.x11Packages = mkOption {
|
environment.x11Packages = mkOption {
|
||||||
default = [];
|
default = [];
|
||||||
type = types.list types.package;
|
type = types.listOf types.package;
|
||||||
description = ''
|
description = ''
|
||||||
List of packages added to the system when the X server is
|
List of packages added to the system when the X server is
|
||||||
activated (<option>services.xserver.enable</option>).
|
activated (<option>services.xserver.enable</option>).
|
||||||
|
@ -84,7 +84,7 @@ in
|
|||||||
Make sure that initrd has the crypto modules needed for decryption.
|
Make sure that initrd has the crypto modules needed for decryption.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
type = types.list types.optionSet;
|
type = types.listOf types.optionSet;
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
|
||||||
|
@ -118,14 +118,14 @@ in
|
|||||||
boot.supportedFilesystems = mkOption {
|
boot.supportedFilesystems = mkOption {
|
||||||
default = [ ];
|
default = [ ];
|
||||||
example = [ "btrfs" ];
|
example = [ "btrfs" ];
|
||||||
type = types.list types.string;
|
type = types.listOf types.string;
|
||||||
description = "Names of supported filesystem types.";
|
description = "Names of supported filesystem types.";
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.initrd.supportedFilesystems = mkOption {
|
boot.initrd.supportedFilesystems = mkOption {
|
||||||
default = [ ];
|
default = [ ];
|
||||||
example = [ "btrfs" ];
|
example = [ "btrfs" ];
|
||||||
type = types.list types.string;
|
type = types.listOf types.string;
|
||||||
description = "Names of supported filesystem types in the initial ramdisk.";
|
description = "Names of supported filesystem types in the initial ramdisk.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user