Some more type cleanup

+1 -1
nixos/modules/config/shells-environment.nix
···
description = ''
A list of profiles used to setup the global environment.
'';
-
type = types.listOf types.string;
};
environment.profileRelativeEnvVars = mkOption {
···
description = ''
A list of profiles used to setup the global environment.
'';
+
type = types.listOf types.str;
};
environment.profileRelativeEnvVars = mkOption {
+1 -1
nixos/modules/misc/assertions.nix
···
warnings = mkOption {
internal = true;
default = [];
-
type = types.listOf types.string;
example = [ "The `foo' service is deprecated and will go away soon!" ];
description = ''
This option allows modules to show warnings to users during
···
warnings = mkOption {
internal = true;
default = [];
+
type = types.listOf types.str;
example = [ "The `foo' service is deprecated and will go away soon!" ];
description = ''
This option allows modules to show warnings to users during
+2 -2
nixos/modules/programs/ssh.nix
···
programs.ssh = {
askPassword = mkOption {
-
type = types.string;
default = "${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass";
description = ''Program used by SSH to ask for passwords.'';
};
···
};
agentTimeout = mkOption {
-
type = types.nullOr types.string;
default = null;
example = "1h";
description = ''
···
programs.ssh = {
askPassword = mkOption {
+
type = types.str;
default = "${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass";
description = ''Program used by SSH to ask for passwords.'';
};
···
};
agentTimeout = mkOption {
+
type = types.nullOr types.str;
default = null;
example = "1h";
description = ''
+1 -1
nixos/modules/security/ca.nix
···
};
security.pki.certificates = mkOption {
-
type = types.listOf types.string;
default = [];
example = singleton ''
NixOS.org
···
};
security.pki.certificates = mkOption {
+
type = types.listOf types.str;
default = [];
example = singleton ''
NixOS.org
+1 -1
nixos/modules/services/logging/logcheck.nix
···
extraGroups = mkOption {
default = [];
-
type = types.listOf types.string;
example = [ "postdrop" "mongodb" ];
description = ''
Extra groups for the logcheck user, for example to be able to use sendmail,
···
extraGroups = mkOption {
default = [];
+
type = types.listOf types.str;
example = [ "postdrop" "mongodb" ];
description = ''
Extra groups for the logcheck user, for example to be able to use sendmail,
+1 -1
nixos/modules/services/logging/rsyslogd.nix
···
};
extraParams = mkOption {
-
type = types.listOf types.string;
default = [ ];
example = [ "-m 0" ];
description = ''
···
};
extraParams = mkOption {
+
type = types.listOf types.str;
default = [ ];
example = [ "-m 0" ];
description = ''
+1 -1
nixos/modules/services/logging/syslogd.nix
···
};
extraParams = mkOption {
-
type = types.listOf types.string;
default = [ ];
example = [ "-m 0" ];
description = ''
···
};
extraParams = mkOption {
+
type = types.listOf types.str;
default = [ ];
example = [ "-m 0" ];
description = ''
+1 -1
nixos/modules/services/mail/opensmtpd.nix
···
};
extraServerArgs = mkOption {
-
type = types.listOf types.string;
default = [];
example = [ "-v" "-P mta" ];
description = ''
···
};
extraServerArgs = mkOption {
+
type = types.listOf types.str;
default = [];
example = [ "-v" "-P mta" ];
description = ''
+1 -1
nixos/modules/services/misc/apache-kafka.nix
···
"-Djava.awt.headless=true"
"-Djava.net.preferIPv4Stack=true"
];
-
type = types.listOf types.string;
example = [
"-Djava.net.preferIPv4Stack=true"
"-Dcom.sun.management.jmxremote"
···
"-Djava.awt.headless=true"
"-Djava.net.preferIPv4Stack=true"
];
+
type = types.listOf types.str;
example = [
"-Djava.net.preferIPv4Stack=true"
"-Dcom.sun.management.jmxremote"
+1 -1
nixos/modules/services/misc/mesos-master.nix
···
See https://mesos.apache.org/documentation/latest/configuration/
'';
default = [ "" ];
-
type = types.listOf types.string;
example = [ "--credentials=VALUE" ];
};
···
See https://mesos.apache.org/documentation/latest/configuration/
'';
default = [ "" ];
+
type = types.listOf types.str;
example = [ "--credentials=VALUE" ];
};
+1 -1
nixos/modules/services/misc/mesos-slave.nix
···
See https://mesos.apache.org/documentation/latest/configuration/
'';
default = [ "" ];
-
type = types.listOf types.string;
example = [ "--gc_delay=3days" ];
};
···
See https://mesos.apache.org/documentation/latest/configuration/
'';
default = [ "" ];
+
type = types.listOf types.str;
example = [ "--gc_delay=3days" ];
};
+1 -1
nixos/modules/services/misc/zookeeper.nix
···
extraCmdLineOptions = mkOption {
description = "Extra command line options for the Zookeeper launcher.";
default = [ "-Dcom.sun.management.jmxremote" "-Dcom.sun.management.jmxremote.local.only=true" ];
-
type = types.listOf types.string;
example = [ "-Djava.net.preferIPv4Stack=true" "-Dcom.sun.management.jmxremote" "-Dcom.sun.management.jmxremote.local.only=true" ];
};
···
extraCmdLineOptions = mkOption {
description = "Extra command line options for the Zookeeper launcher.";
default = [ "-Dcom.sun.management.jmxremote" "-Dcom.sun.management.jmxremote.local.only=true" ];
+
type = types.listOf types.str;
example = [ "-Djava.net.preferIPv4Stack=true" "-Dcom.sun.management.jmxremote" "-Dcom.sun.management.jmxremote.local.only=true" ];
};
+1 -1
nixos/modules/services/monitoring/ups.nix
···
directives = mkOption {
default = [];
-
type = types.listOf types.string;
description = ''
List of configuration directives for this UPS.
'';
···
directives = mkOption {
default = [];
+
type = types.listOf types.str;
description = ''
List of configuration directives for this UPS.
'';
+1 -1
nixos/modules/services/networking/dnsmasq.nix
···
};
servers = mkOption {
-
type = types.listOf types.string;
default = [];
example = [ "8.8.8.8" "8.8.4.4" ];
description = ''
···
};
servers = mkOption {
+
type = types.listOf types.str;
default = [];
example = [ "8.8.8.8" "8.8.4.4" ];
description = ''
+2 -2
nixos/modules/services/networking/firewall.nix
···
};
networking.firewall.trustedInterfaces = mkOption {
-
type = types.listOf types.string;
description =
''
Traffic coming in from these interfaces will be accepted
···
networking.firewall.connectionTrackingModules = mkOption {
default = [ "ftp" ];
example = [ "ftp" "irc" "sane" "sip" "tftp" "amanda" "h323" "netbios_sn" "pptp" "snmp" ];
-
type = types.listOf types.string;
description =
''
List of connection-tracking helpers that are auto-loaded.
···
};
networking.firewall.trustedInterfaces = mkOption {
+
type = types.listOf types.str;
description =
''
Traffic coming in from these interfaces will be accepted
···
networking.firewall.connectionTrackingModules = mkOption {
default = [ "ftp" ];
example = [ "ftp" "irc" "sane" "sip" "tftp" "amanda" "h323" "netbios_sn" "pptp" "snmp" ];
+
type = types.listOf types.str;
description =
''
List of connection-tracking helpers that are auto-loaded.
+1 -1
nixos/modules/services/networking/minidlna.nix
···
};
services.minidlna.mediaDirs = mkOption {
-
type = types.listOf types.string;
default = [];
example = [ "/data/media" "V,/home/alice/video" ];
description =
···
};
services.minidlna.mediaDirs = mkOption {
+
type = types.listOf types.str;
default = [];
example = [ "/data/media" "V,/home/alice/video" ];
description =
+2 -2
nixos/modules/services/networking/networkmanager.nix
···
};
appendNameservers = mkOption {
-
type = types.listOf types.string;
default = [];
description = ''
A list of name servers that should be appended
···
};
insertNameservers = mkOption {
-
type = types.listOf types.string;
default = [];
description = ''
A list of name servers that should be inserted before
···
};
appendNameservers = mkOption {
+
type = types.listOf types.str;
default = [];
description = ''
A list of name servers that should be appended
···
};
insertNameservers = mkOption {
+
type = types.listOf types.str;
default = [];
description = ''
A list of name servers that should be inserted before
+1 -1
nixos/modules/services/networking/polipo.nix
···
};
allowedClients = mkOption {
-
type = types.listOf types.string;
default = [ "127.0.0.1" "::1" ];
example = [ "127.0.0.1" "::1" "134.157.168.0/24" "2001:660:116::/48" ];
description = ''
···
};
allowedClients = mkOption {
+
type = types.listOf types.str;
default = [ "127.0.0.1" "::1" ];
example = [ "127.0.0.1" "::1" "134.157.168.0/24" "2001:660:116::/48" ];
description = ''
+1 -1
nixos/modules/services/networking/ssh/sshd.nix
···
];
options = {
hostNames = mkOption {
-
type = types.listOf types.string;
default = [];
description = ''
A list of host names and/or IP numbers used for accessing
···
];
options = {
hostNames = mkOption {
+
type = types.listOf types.str;
default = [];
description = ''
A list of host names and/or IP numbers used for accessing
+1 -1
nixos/modules/services/networking/wpa_supplicant.nix
···
};
interfaces = mkOption {
-
type = types.listOf types.string;
default = [];
example = [ "wlan0" "wlan1" ];
description = ''
···
};
interfaces = mkOption {
+
type = types.listOf types.str;
default = [];
example = [ "wlan0" "wlan1" ];
description = ''
+2 -2
nixos/modules/services/networking/znc.nix
···
*/
confOptions = {
modules = mkOption {
-
type = types.listOf types.string;
default = [ "partyline" "webadmin" "adminlog" "log" ];
example = [ "partyline" "webadmin" "adminlog" "log" ];
description = ''
···
};
userModules = mkOption {
-
type = types.listOf types.string;
default = [ ];
example = [ "fish" "push" ];
description = ''
···
*/
confOptions = {
modules = mkOption {
+
type = types.listOf types.str;
default = [ "partyline" "webadmin" "adminlog" "log" ];
example = [ "partyline" "webadmin" "adminlog" "log" ];
description = ''
···
};
userModules = mkOption {
+
type = types.listOf types.str;
default = [ ];
example = [ "fish" "push" ];
description = ''
+1 -1
nixos/modules/services/search/elasticsearch.nix
···
extraCmdLineOptions = mkOption {
description = "Extra command line options for the elasticsearch launcher.";
default = [];
-
type = types.listOf types.string;
example = [ "-Djava.net.preferIPv4Stack=true" ];
};
···
extraCmdLineOptions = mkOption {
description = "Extra command line options for the elasticsearch launcher.";
default = [];
+
type = types.listOf types.str;
example = [ "-Djava.net.preferIPv4Stack=true" ];
};
+1 -1
nixos/modules/system/boot/luksroot.nix
···
};
boot.initrd.luks.cryptoModules = mkOption {
-
type = types.listOf types.string;
default =
[ "aes" "aes_generic" "blowfish" "twofish"
"serpent" "cbc" "xts" "lrw" "sha1" "sha256" "sha512"
···
};
boot.initrd.luks.cryptoModules = mkOption {
+
type = types.listOf types.str;
default =
[ "aes" "aes_generic" "blowfish" "twofish"
"serpent" "cbc" "xts" "lrw" "sha1" "sha256" "sha512"
+1 -1
nixos/modules/system/boot/stage-1.nix
···
boot.initrd.supportedFilesystems = mkOption {
default = [ ];
example = [ "btrfs" ];
-
type = types.listOf types.string;
description = "Names of supported filesystem types in the initial ramdisk.";
};
···
boot.initrd.supportedFilesystems = mkOption {
default = [ ];
example = [ "btrfs" ];
+
type = types.listOf types.str;
description = "Names of supported filesystem types in the initial ramdisk.";
};
+2 -2
nixos/modules/system/boot/systemd-unit-options.nix
···
requiredBy = mkOption {
default = [];
-
type = types.listOf types.string;
description = "Units that require (i.e. depend on and need to go down with) this unit.";
};
wantedBy = mkOption {
default = [];
-
type = types.listOf types.string;
description = "Units that want (i.e. depend on) this unit.";
};
···
requiredBy = mkOption {
default = [];
+
type = types.listOf types.str;
description = "Units that require (i.e. depend on and need to go down with) this unit.";
};
wantedBy = mkOption {
default = [];
+
type = types.listOf types.str;
description = "Units that want (i.e. depend on) this unit.";
};
+1 -1
nixos/modules/tasks/filesystems.nix
···
boot.supportedFilesystems = mkOption {
default = [ ];
example = [ "btrfs" ];
-
type = types.listOf types.string;
description = "Names of supported filesystem types.";
};
···
boot.supportedFilesystems = mkOption {
default = [ ];
example = [ "btrfs" ];
+
type = types.listOf types.str;
description = "Names of supported filesystem types.";
};
+1 -1
nixos/modules/tasks/kbd.nix
···
# FIXME: still needed?
boot.extraTTYs = mkOption {
default = [];
-
type = types.listOf types.string;
example = ["tty8" "tty9"];
description = ''
Tty (virtual console) devices, in addition to the consoles on
···
# FIXME: still needed?
boot.extraTTYs = mkOption {
default = [];
+
type = types.listOf types.str;
example = ["tty8" "tty9"];
description = ''
Tty (virtual console) devices, in addition to the consoles on
+1 -1
nixos/modules/tasks/network-interfaces.nix
···
interfaces = mkOption {
example = [ "eth0" "eth1" ];
-
type = types.listOf types.string;
description =
"The physical network interfaces connected by the bridge.";
};
···
interfaces = mkOption {
example = [ "eth0" "eth1" ];
+
type = types.listOf types.str;
description =
"The physical network interfaces connected by the bridge.";
};