Merge pull request #66346 from Infinisil/remove-types.string

Properly deprecate types.string
This commit is contained in:
Robert Helgesson 2019-08-31 19:05:31 +02:00 committed by GitHub
commit aeeed6a517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
119 changed files with 327 additions and 325 deletions

View File

@ -217,7 +217,8 @@ rec {
# Deprecated; should not be used because it quietly concatenates # Deprecated; should not be used because it quietly concatenates
# strings, which is usually not what you want. # strings, which is usually not what you want.
string = separatedString ""; string = warn "types.string is deprecated because it quietly concatenates strings"
(separatedString "");
attrs = mkOptionType { attrs = mkOptionType {
name = "attrs"; name = "attrs";

View File

@ -181,7 +181,7 @@ let
}; };
hashedPassword = mkOption { hashedPassword = mkOption {
type = with types; uniq (nullOr str); type = with types; nullOr str;
default = null; default = null;
description = '' description = ''
Specifies the hashed password for the user. Specifies the hashed password for the user.
@ -191,7 +191,7 @@ let
}; };
password = mkOption { password = mkOption {
type = with types; uniq (nullOr str); type = with types; nullOr str;
default = null; default = null;
description = '' description = ''
Specifies the (clear text) password for the user. Specifies the (clear text) password for the user.
@ -203,7 +203,7 @@ let
}; };
passwordFile = mkOption { passwordFile = mkOption {
type = with types; uniq (nullOr string); type = with types; nullOr str;
default = null; default = null;
description = '' description = ''
The full path to a file that contains the user's password. The password The full path to a file that contains the user's password. The password
@ -215,7 +215,7 @@ let
}; };
initialHashedPassword = mkOption { initialHashedPassword = mkOption {
type = with types; uniq (nullOr str); type = with types; nullOr str;
default = null; default = null;
description = '' description = ''
Specifies the initial hashed password for the user, i.e. the Specifies the initial hashed password for the user, i.e. the
@ -230,7 +230,7 @@ let
}; };
initialPassword = mkOption { initialPassword = mkOption {
type = with types; uniq (nullOr str); type = with types; nullOr str;
default = null; default = null;
description = '' description = ''
Specifies the initial password for the user, i.e. the Specifies the initial password for the user, i.e. the
@ -304,7 +304,7 @@ let
}; };
members = mkOption { members = mkOption {
type = with types; listOf string; type = with types; listOf str;
default = []; default = [];
description = '' description = ''
The user names of the group members, added to the The user names of the group members, added to the

View File

@ -88,7 +88,7 @@ in
}; };
hardware.nvidia.optimus_prime.nvidiaBusId = lib.mkOption { hardware.nvidia.optimus_prime.nvidiaBusId = lib.mkOption {
type = lib.types.string; type = lib.types.str;
default = ""; default = "";
example = "PCI:1:0:0"; example = "PCI:1:0:0";
description = '' description = ''
@ -98,7 +98,7 @@ in
}; };
hardware.nvidia.optimus_prime.intelBusId = lib.mkOption { hardware.nvidia.optimus_prime.intelBusId = lib.mkOption {
type = lib.types.string; type = lib.types.str;
default = ""; default = "";
example = "PCI:0:2:0"; example = "PCI:0:2:0";
description = '' description = ''

View File

@ -54,7 +54,7 @@ in
}; };
firmwarePartitionID = mkOption { firmwarePartitionID = mkOption {
type = types.string; type = types.str;
default = "0x2178694e"; default = "0x2178694e";
description = '' description = ''
Volume ID for the /boot/firmware partition on the SD card. This value Volume ID for the /boot/firmware partition on the SD card. This value
@ -63,7 +63,7 @@ in
}; };
rootPartitionUUID = mkOption { rootPartitionUUID = mkOption {
type = types.nullOr types.string; type = types.nullOr types.str;
default = null; default = null;
example = "14e19a7b-0ae0-484d-9d54-43bd6fdc20c7"; example = "14e19a7b-0ae0-484d-9d54-43bd6fdc20c7";
description = '' description = ''

View File

@ -17,7 +17,7 @@ in
alias = mkOption { alias = mkOption {
default = "fuck"; default = "fuck";
type = types.string; type = types.str;
description = '' description = ''
`thefuck` needs an alias to be configured. `thefuck` needs an alias to be configured.

View File

@ -12,7 +12,7 @@ in
lockerCommand = mkOption { lockerCommand = mkOption {
default = "${pkgs.i3lock}/bin/i3lock"; default = "${pkgs.i3lock}/bin/i3lock";
example = literalExample ''''${pkgs.i3lock-fancy}/bin/i3lock-fancy''; example = literalExample ''''${pkgs.i3lock-fancy}/bin/i3lock-fancy'';
type = types.string; type = types.separatedString " ";
description = "Locker to be used with xsslock"; description = "Locker to be used with xsslock";
}; };

View File

@ -76,7 +76,7 @@ in
font = mkOption { font = mkOption {
default = "sans bold 9"; default = "sans bold 9";
example = "Droid Sans, FontAwesome Bold 9"; example = "Droid Sans, FontAwesome Bold 9";
type = types.string; type = types.str;
description = '' description = ''
The font that will be used to draw the status bar. The font that will be used to draw the status bar.
@ -95,7 +95,7 @@ in
extra = mkOption { extra = mkOption {
default = {}; default = {};
type = types.attrsOf types.string; type = types.attrsOf types.str;
description = '' description = ''
An attribute set which contains further attributes of a bar. An attribute set which contains further attributes of a bar.
@ -107,7 +107,7 @@ in
type = types.attrsOf(types.submodule { type = types.attrsOf(types.submodule {
options.exec = mkOption { options.exec = mkOption {
example = "YABAR_DATE"; example = "YABAR_DATE";
type = types.string; type = types.str;
description = '' description = ''
The type of the indicator to be executed. The type of the indicator to be executed.
''; '';
@ -125,7 +125,7 @@ in
options.extra = mkOption { options.extra = mkOption {
default = {}; default = {};
type = types.attrsOf (types.either types.string types.int); type = types.attrsOf (types.either types.str types.int);
description = '' description = ''
An attribute set which contains further attributes of a indicator. An attribute set which contains further attributes of a indicator.

View File

@ -33,7 +33,7 @@ in
patterns = mkOption { patterns = mkOption {
default = {}; default = {};
type = types.attrsOf types.string; type = types.attrsOf types.str;
example = literalExample '' example = literalExample ''
{ {
@ -50,7 +50,7 @@ in
}; };
styles = mkOption { styles = mkOption {
default = {}; default = {};
type = types.attrsOf types.string; type = types.attrsOf types.str;
example = literalExample '' example = literalExample ''
{ {

View File

@ -685,7 +685,7 @@ in
}; };
id = mkOption { id = mkOption {
example = "42"; example = "42";
type = types.string; type = types.str;
description = "client id"; description = "client id";
}; };

View File

@ -91,7 +91,7 @@ in
type = with types; listOf (submodule { type = with types; listOf (submodule {
options = { options = {
users = mkOption { users = mkOption {
type = with types; listOf (either string int); type = with types; listOf (either str int);
description = '' description = ''
The usernames / UIDs this rule should apply for. The usernames / UIDs this rule should apply for.
''; '';
@ -99,7 +99,7 @@ in
}; };
groups = mkOption { groups = mkOption {
type = with types; listOf (either string int); type = with types; listOf (either str int);
description = '' description = ''
The groups / GIDs this rule should apply for. The groups / GIDs this rule should apply for.
''; '';
@ -107,7 +107,7 @@ in
}; };
host = mkOption { host = mkOption {
type = types.string; type = types.str;
default = "ALL"; default = "ALL";
description = '' description = ''
For what host this rule should apply. For what host this rule should apply.
@ -115,7 +115,7 @@ in
}; };
runAs = mkOption { runAs = mkOption {
type = with types; string; type = with types; str;
default = "ALL:ALL"; default = "ALL:ALL";
description = '' description = ''
Under which user/group the specified command is allowed to run. Under which user/group the specified command is allowed to run.
@ -130,11 +130,11 @@ in
description = '' description = ''
The commands for which the rule should apply. The commands for which the rule should apply.
''; '';
type = with types; listOf (either string (submodule { type = with types; listOf (either str (submodule {
options = { options = {
command = mkOption { command = mkOption {
type = with types; string; type = with types; str;
description = '' description = ''
A command being either just a path to a binary to allow any arguments, A command being either just a path to a binary to allow any arguments,
the full command with arguments pre-set or with <code>""</code> used as the argument, the full command with arguments pre-set or with <code>""</code> used as the argument,

View File

@ -40,7 +40,7 @@ in {
''; '';
}; };
configurationURI = mkOption { configurationURI = mkOption {
type = types.string; type = types.str;
default = "xbean:activemq.xml"; default = "xbean:activemq.xml";
description = '' description = ''
The URI that is passed along to the BrokerFactory to The URI that is passed along to the BrokerFactory to
@ -51,7 +51,7 @@ in {
''; '';
}; };
baseDir = mkOption { baseDir = mkOption {
type = types.string; type = types.str;
default = "/var/activemq"; default = "/var/activemq";
description = '' description = ''
The base directory where ActiveMQ stores its persistent data and logs. The base directory where ActiveMQ stores its persistent data and logs.
@ -81,7 +81,7 @@ in {
''; '';
}; };
extraJavaOptions = mkOption { extraJavaOptions = mkOption {
type = types.string; type = types.separatedString " ";
default = ""; default = "";
example = "-Xmx2G -Xms2G -XX:MaxPermSize=512M"; example = "-Xmx2G -Xms2G -XX:MaxPermSize=512M";
description = '' description = ''

View File

@ -64,7 +64,7 @@ in
}; };
volumeStep = mkOption { volumeStep = mkOption {
type = types.string; type = types.str;
default = "1"; default = "1";
example = "1%"; example = "1%";
description = '' description = ''

View File

@ -23,7 +23,7 @@ in {
mpd = { mpd = {
host = mkOption { host = mkOption {
type = types.string; type = types.str;
default = "localhost"; default = "localhost";
description = "The host where MPD is listening."; description = "The host where MPD is listening.";
example = "localhost"; example = "localhost";

View File

@ -81,7 +81,7 @@ in {
}; };
pgdumpOptions = mkOption { pgdumpOptions = mkOption {
type = types.string; type = types.separatedString " ";
default = "-Cbo"; default = "-Cbo";
description = '' description = ''
Command line options for pg_dump. This options is not used Command line options for pg_dump. This options is not used

View File

@ -2,7 +2,7 @@
with lib; with lib;
let let
cfg = config.services.rsnapshot; cfg = config.services.rsnapshot;
cfgfile = pkgs.writeText "rsnapshot.conf" '' cfgfile = pkgs.writeText "rsnapshot.conf" ''
config_version 1.2 config_version 1.2
@ -52,7 +52,7 @@ in
cronIntervals = mkOption { cronIntervals = mkOption {
default = {}; default = {};
example = { hourly = "0 * * * *"; daily = "50 21 * * *"; }; example = { hourly = "0 * * * *"; daily = "50 21 * * *"; };
type = types.attrsOf types.string; type = types.attrsOf types.str;
description = '' description = ''
Periodicity at which intervals should be run by cron. Periodicity at which intervals should be run by cron.
Note that the intervals also have to exist in configuration Note that the intervals also have to exist in configuration

View File

@ -259,7 +259,7 @@ in {
''; '';
}; };
incrementalRepairOptions = mkOption { incrementalRepairOptions = mkOption {
type = types.listOf types.string; type = types.listOf types.str;
default = []; default = [];
example = [ "--partitioner-range" ]; example = [ "--partitioner-range" ];
description = '' description = ''
@ -267,7 +267,7 @@ in {
''; '';
}; };
maxHeapSize = mkOption { maxHeapSize = mkOption {
type = types.nullOr types.string; type = types.nullOr types.str;
default = null; default = null;
example = "4G"; example = "4G";
description = '' description = ''
@ -287,7 +287,7 @@ in {
''; '';
}; };
heapNewSize = mkOption { heapNewSize = mkOption {
type = types.nullOr types.string; type = types.nullOr types.str;
default = null; default = null;
example = "800M"; example = "800M";
description = '' description = ''
@ -352,11 +352,11 @@ in {
type = types.listOf (types.submodule { type = types.listOf (types.submodule {
options = { options = {
username = mkOption { username = mkOption {
type = types.string; type = types.str;
description = "Username for JMX"; description = "Username for JMX";
}; };
password = mkOption { password = mkOption {
type = types.string; type = types.str;
description = "Password for JMX"; description = "Password for JMX";
}; };
}; };

View File

@ -56,7 +56,7 @@ in {
user = mkOption { user = mkOption {
type = types.string; type = types.str;
default = "couchdb"; default = "couchdb";
description = '' description = ''
User account under which couchdb runs. User account under which couchdb runs.
@ -64,7 +64,7 @@ in {
}; };
group = mkOption { group = mkOption {
type = types.string; type = types.str;
default = "couchdb"; default = "couchdb";
description = '' description = ''
Group account under which couchdb runs. Group account under which couchdb runs.
@ -106,7 +106,7 @@ in {
}; };
bindAddress = mkOption { bindAddress = mkOption {
type = types.string; type = types.str;
default = "127.0.0.1"; default = "127.0.0.1";
description = '' description = ''
Defines the IP address by which CouchDB will be accessible. Defines the IP address by which CouchDB will be accessible.
@ -138,7 +138,7 @@ in {
}; };
configFile = mkOption { configFile = mkOption {
type = types.string; type = types.path;
description = '' description = ''
Configuration file for persisting runtime changes. File Configuration file for persisting runtime changes. File
needs to be readable and writable from couchdb user/group. needs to be readable and writable from couchdb user/group.

View File

@ -140,7 +140,7 @@ in
}; };
logSize = mkOption { logSize = mkOption {
type = types.string; type = types.str;
default = "10MiB"; default = "10MiB";
description = '' description = ''
Roll over to a new log file after the current log file Roll over to a new log file after the current log file
@ -149,7 +149,7 @@ in
}; };
maxLogSize = mkOption { maxLogSize = mkOption {
type = types.string; type = types.str;
default = "100MiB"; default = "100MiB";
description = '' description = ''
Delete the oldest log file when the total size of all log Delete the oldest log file when the total size of all log
@ -171,7 +171,7 @@ in
}; };
memory = mkOption { memory = mkOption {
type = types.string; type = types.str;
default = "8GiB"; default = "8GiB";
description = '' description = ''
Maximum memory used by the process. The default value is Maximum memory used by the process. The default value is
@ -193,7 +193,7 @@ in
}; };
storageMemory = mkOption { storageMemory = mkOption {
type = types.string; type = types.str;
default = "1GiB"; default = "1GiB";
description = '' description = ''
Maximum memory used for data storage. The default value is Maximum memory used for data storage. The default value is

View File

@ -53,7 +53,7 @@ in {
user = mkOption { user = mkOption {
type = types.string; type = types.str;
default = "hbase"; default = "hbase";
description = '' description = ''
User account under which HBase runs. User account under which HBase runs.
@ -61,7 +61,7 @@ in {
}; };
group = mkOption { group = mkOption {
type = types.string; type = types.str;
default = "hbase"; default = "hbase";
description = '' description = ''
Group account under which HBase runs. Group account under which HBase runs.

View File

@ -129,13 +129,13 @@ in
user = mkOption { user = mkOption {
default = "influxdb"; default = "influxdb";
description = "User account under which influxdb runs"; description = "User account under which influxdb runs";
type = types.string; type = types.str;
}; };
group = mkOption { group = mkOption {
default = "influxdb"; default = "influxdb";
description = "Group under which influxdb runs"; description = "Group under which influxdb runs";
type = types.string; type = types.str;
}; };
dataDir = mkOption { dataDir = mkOption {

View File

@ -65,9 +65,9 @@ in
default = false; default = false;
description = "Enable client authentication. Creates a default superuser with username root!"; description = "Enable client authentication. Creates a default superuser with username root!";
}; };
initialRootPassword = mkOption { initialRootPassword = mkOption {
type = types.nullOr types.string; type = types.nullOr types.str;
default = null; default = null;
description = "Password for the root user if auth is enabled."; description = "Password for the root user if auth is enabled.";
}; };

View File

@ -47,26 +47,26 @@ in
}; };
user = mkOption { user = mkOption {
type = types.string; type = types.str;
default = "openldap"; default = "openldap";
description = "User account under which slapd runs."; description = "User account under which slapd runs.";
}; };
group = mkOption { group = mkOption {
type = types.string; type = types.str;
default = "openldap"; default = "openldap";
description = "Group account under which slapd runs."; description = "Group account under which slapd runs.";
}; };
urlList = mkOption { urlList = mkOption {
type = types.listOf types.string; type = types.listOf types.str;
default = [ "ldap:///" ]; default = [ "ldap:///" ];
description = "URL list slapd should listen on."; description = "URL list slapd should listen on.";
example = [ "ldaps:///" ]; example = [ "ldaps:///" ];
}; };
dataDir = mkOption { dataDir = mkOption {
type = types.string; type = types.path;
default = "/var/db/openldap"; default = "/var/db/openldap";
description = "The database directory."; description = "The database directory.";
}; };

View File

@ -34,7 +34,7 @@ in {
}; };
user = mkOption { user = mkOption {
type = types.string; type = types.str;
default = "opentsdb"; default = "opentsdb";
description = '' description = ''
User account under which OpenTSDB runs. User account under which OpenTSDB runs.
@ -42,7 +42,7 @@ in {
}; };
group = mkOption { group = mkOption {
type = types.string; type = types.str;
default = "opentsdb"; default = "opentsdb";
description = '' description = ''
Group account under which OpenTSDB runs. Group account under which OpenTSDB runs.

View File

@ -29,7 +29,7 @@ in
}; };
nodeName = mkOption { nodeName = mkOption {
type = types.string; type = types.str;
default = "riak@127.0.0.1"; default = "riak@127.0.0.1";
description = '' description = ''
Name of the Erlang node. Name of the Erlang node.
@ -37,7 +37,7 @@ in
}; };
distributedCookie = mkOption { distributedCookie = mkOption {
type = types.string; type = types.str;
default = "riak"; default = "riak";
description = '' description = ''
Cookie for distributed node communication. All nodes in the Cookie for distributed node communication. All nodes in the

View File

@ -55,7 +55,7 @@ in
''; '';
}; };
saveName = mkOption { saveName = mkOption {
type = types.string; type = types.str;
default = "default"; default = "default";
description = '' description = ''
The name of the savegame that will be used by the server. The name of the savegame that will be used by the server.
@ -81,7 +81,7 @@ in
''; '';
}; };
stateDirName = mkOption { stateDirName = mkOption {
type = types.string; type = types.str;
default = "factorio"; default = "factorio";
description = '' description = ''
Name of the directory under /var/lib holding the server's data. Name of the directory under /var/lib holding the server's data.
@ -102,14 +102,14 @@ in
''; '';
}; };
game-name = mkOption { game-name = mkOption {
type = types.nullOr types.string; type = types.nullOr types.str;
default = "Factorio Game"; default = "Factorio Game";
description = '' description = ''
Name of the game as it will appear in the game listing. Name of the game as it will appear in the game listing.
''; '';
}; };
description = mkOption { description = mkOption {
type = types.nullOr types.string; type = types.nullOr types.str;
default = ""; default = "";
description = '' description = ''
Description of the game that will appear in the listing. Description of the game that will appear in the listing.
@ -130,28 +130,28 @@ in
''; '';
}; };
username = mkOption { username = mkOption {
type = types.nullOr types.string; type = types.nullOr types.str;
default = null; default = null;
description = '' description = ''
Your factorio.com login credentials. Required for games with visibility public. Your factorio.com login credentials. Required for games with visibility public.
''; '';
}; };
password = mkOption { password = mkOption {
type = types.nullOr types.string; type = types.nullOr types.str;
default = null; default = null;
description = '' description = ''
Your factorio.com login credentials. Required for games with visibility public. Your factorio.com login credentials. Required for games with visibility public.
''; '';
}; };
token = mkOption { token = mkOption {
type = types.nullOr types.string; type = types.nullOr types.str;
default = null; default = null;
description = '' description = ''
Authentication token. May be used instead of 'password' above. Authentication token. May be used instead of 'password' above.
''; '';
}; };
game-password = mkOption { game-password = mkOption {
type = types.nullOr types.string; type = types.nullOr types.str;
default = null; default = null;
description = '' description = ''
Game password. Game password.

View File

@ -28,7 +28,7 @@ in {
}; };
devices = mkOption { devices = mkOption {
type = types.listOf types.string; type = types.listOf types.str;
default = [ "/dev/sda" ]; default = [ "/dev/sda" ];
description = '' description = ''
Device paths to all internal spinning hard drives. Device paths to all internal spinning hard drives.

View File

@ -43,7 +43,7 @@ in {
}; };
blacklistDevices = mkOption { blacklistDevices = mkOption {
type = types.listOf types.string; type = types.listOf types.str;
default = []; default = [];
example = [ "2082b5e0-7a64-478a-b1b2-e3404fab6dad" ]; example = [ "2082b5e0-7a64-478a-b1b2-e3404fab6dad" ];
description = '' description = ''
@ -52,7 +52,7 @@ in {
}; };
blacklistPlugins = mkOption { blacklistPlugins = mkOption {
type = types.listOf types.string; type = types.listOf types.str;
default = [ "test" ]; default = [ "test" ];
example = [ "udev" ]; example = [ "udev" ];
description = '' description = ''

View File

@ -76,7 +76,7 @@ in
}; };
hardware.sane.configDir = mkOption { hardware.sane.configDir = mkOption {
type = types.string; type = types.str;
internal = true; internal = true;
description = "The value of SANE_CONFIG_DIR."; description = "The value of SANE_CONFIG_DIR.";
}; };

View File

@ -49,13 +49,13 @@ in
user = mkOption { user = mkOption {
default = "tss"; default = "tss";
type = types.string; type = types.str;
description = "User account under which tcsd runs."; description = "User account under which tcsd runs.";
}; };
group = mkOption { group = mkOption {
default = "tss"; default = "tss";
type = types.string; type = types.str;
description = "Group account under which tcsd runs."; description = "Group account under which tcsd runs.";
}; };
@ -65,19 +65,19 @@ in
description = '' description = ''
The location of the system persistent storage file. The location of the system persistent storage file.
The system persistent storage file holds keys and data across The system persistent storage file holds keys and data across
restarts of the TCSD and system reboots. restarts of the TCSD and system reboots.
''; '';
}; };
firmwarePCRs = mkOption { firmwarePCRs = mkOption {
default = "0,1,2,3,4,5,6,7"; default = "0,1,2,3,4,5,6,7";
type = types.string; type = types.str;
description = "PCR indices used in the TPM for firmware measurements."; description = "PCR indices used in the TPM for firmware measurements.";
}; };
kernelPCRs = mkOption { kernelPCRs = mkOption {
default = "8,9,10,11,12"; default = "8,9,10,11,12";
type = types.string; type = types.str;
description = "PCR indices used in the TPM for kernel measurements."; description = "PCR indices used in the TPM for kernel measurements.";
}; };

View File

@ -16,7 +16,7 @@ in
}; };
graylogServer = mkOption { graylogServer = mkOption {
type = types.string; type = types.str;
example = "graylog2.example.com:11201"; example = "graylog2.example.com:11201";
description = '' description = ''
Host and port of your graylog2 input. This should be a GELF Host and port of your graylog2 input. This should be a GELF
@ -25,7 +25,7 @@ in
}; };
extraOptions = mkOption { extraOptions = mkOption {
type = types.string; type = types.separatedString " ";
default = ""; default = "";
description = '' description = ''
Any extra flags to pass to SystemdJournal2Gelf. Note that Any extra flags to pass to SystemdJournal2Gelf. Note that
@ -56,4 +56,4 @@ in
}; };
}; };
}; };
} }

View File

@ -32,7 +32,7 @@ in
}; };
updateAt = mkOption { updateAt = mkOption {
type = types.nullOr types.string; type = types.nullOr types.str;
default = null; default = null;
example = "hourly"; example = "hourly";
description = '' description = ''
@ -50,7 +50,7 @@ in
description = ''Enable the awstats web service. This switches on httpd.''; description = ''Enable the awstats web service. This switches on httpd.'';
}; };
urlPrefix = mkOption { urlPrefix = mkOption {
type = types.string; type = types.str;
default = "/awstats"; default = "/awstats";
description = "The URL prefix under which the awstats service appears."; description = "The URL prefix under which the awstats service appears.";
}; };

View File

@ -155,7 +155,7 @@ in
config = mkOption { config = mkOption {
default = "FQDN=1"; default = "FQDN=1";
type = types.string; type = types.lines;
description = '' description = ''
Config options that you would like in logcheck.conf. Config options that you would like in logcheck.conf.
''; '';

View File

@ -46,7 +46,7 @@ in
}; };
defaultConfig = mkOption { defaultConfig = mkOption {
type = types.string; type = types.lines;
default = defaultConf; default = defaultConf;
description = '' description = ''
The default <filename>syslog.conf</filename> file configures a The default <filename>syslog.conf</filename> file configures a
@ -56,7 +56,7 @@ in
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.string; type = types.lines;
default = ""; default = "";
example = "news.* -/var/log/news"; example = "news.* -/var/log/news";
description = '' description = ''

View File

@ -21,7 +21,7 @@ in
}; };
config = mkOption { config = mkOption {
type = types.string; type = types.lines;
default = ""; default = "";
description = '' description = ''
Verbatim Exim configuration. This should not contain exim_user, Verbatim Exim configuration. This should not contain exim_user,
@ -30,7 +30,7 @@ in
}; };
user = mkOption { user = mkOption {
type = types.string; type = types.str;
default = "exim"; default = "exim";
description = '' description = ''
User to use when no root privileges are required. User to use when no root privileges are required.
@ -42,7 +42,7 @@ in
}; };
group = mkOption { group = mkOption {
type = types.string; type = types.str;
default = "exim"; default = "exim";
description = '' description = ''
Group to use when no root privileges are required. Group to use when no root privileges are required.
@ -50,7 +50,7 @@ in
}; };
spoolDir = mkOption { spoolDir = mkOption {
type = types.string; type = types.path;
default = "/var/spool/exim"; default = "/var/spool/exim";
description = '' description = ''
Location of the spool directory of exim. Location of the spool directory of exim.

View File

@ -14,7 +14,7 @@ with lib;
}; };
user = mkOption { user = mkOption {
type = types.string; type = types.str;
default = "nullmailer"; default = "nullmailer";
description = '' description = ''
User to use to run nullmailer-send. User to use to run nullmailer-send.
@ -22,7 +22,7 @@ with lib;
}; };
group = mkOption { group = mkOption {
type = types.string; type = types.str;
default = "nullmailer"; default = "nullmailer";
description = '' description = ''
Group to use to run nullmailer-send. Group to use to run nullmailer-send.

View File

@ -509,7 +509,7 @@ in
}; };
localRecipients = mkOption { localRecipients = mkOption {
type = with types; nullOr (listOf string); type = with types; nullOr (listOf str);
default = null; default = null;
description = '' description = ''
List of accepted local users. Specify a bare username, an List of accepted local users. Specify a bare username, an
@ -530,7 +530,7 @@ in
dnsBlacklists = mkOption { dnsBlacklists = mkOption {
default = []; default = [];
type = with types; listOf string; type = with types; listOf str;
description = "dns blacklist servers to use with smtpd_client_restrictions"; description = "dns blacklist servers to use with smtpd_client_restrictions";
}; };

View File

@ -12,7 +12,7 @@ with lib; let
inetSocket = with types; { inetSocket = with types; {
options = { options = {
addr = mkOption { addr = mkOption {
type = nullOr string; type = nullOr str;
default = null; default = null;
example = "127.0.0.1"; example = "127.0.0.1";
description = "The address to bind to. Localhost if null"; description = "The address to bind to. Localhost if null";
@ -34,7 +34,7 @@ with lib; let
}; };
mode = mkOption { mode = mkOption {
type = string; type = str;
default = "0777"; default = "0777";
description = "Mode of the unix socket"; description = "Mode of the unix socket";
}; };
@ -63,17 +63,17 @@ in {
description = "Socket to bind to"; description = "Socket to bind to";
}; };
greylistText = mkOption { greylistText = mkOption {
type = string; type = str;
default = "Greylisted for %%s seconds"; default = "Greylisted for %%s seconds";
description = "Response status text for greylisted messages; use %%s for seconds left until greylisting is over and %%r for mail domain of recipient"; description = "Response status text for greylisted messages; use %%s for seconds left until greylisting is over and %%r for mail domain of recipient";
}; };
greylistAction = mkOption { greylistAction = mkOption {
type = string; type = str;
default = "DEFER_IF_PERMIT"; default = "DEFER_IF_PERMIT";
description = "Response status for greylisted messages (see access(5))"; description = "Response status for greylisted messages (see access(5))";
}; };
greylistHeader = mkOption { greylistHeader = mkOption {
type = string; type = str;
default = "X-Greylist: delayed %%t seconds by postgrey-%%v at %%h; %%d"; default = "X-Greylist: delayed %%t seconds by postgrey-%%v at %%h; %%d";
description = "Prepend header to greylisted mails; use %%t for seconds delayed due to greylisting, %%v for the version of postgrey, %%d for the date, and %%h for the host"; description = "Prepend header to greylisted mails; use %%t for seconds delayed due to greylisting, %%v for the version of postgrey, %%d for the date, and %%h for the host";
}; };
@ -88,7 +88,7 @@ in {
description = "Delete entries from whitelist if they haven't been seen for N days"; description = "Delete entries from whitelist if they haven't been seen for N days";
}; };
retryWindow = mkOption { retryWindow = mkOption {
type = either string natural; type = either str natural;
default = 2; default = 2;
example = "12h"; example = "12h";
description = "Allow N days for the first retry. Use string with appended 'h' to specify time in hours"; description = "Allow N days for the first retry. Use string with appended 'h' to specify time in hours";

View File

@ -308,7 +308,7 @@ in
}; };
user = mkOption { user = mkOption {
type = types.string; type = types.str;
default = "rspamd"; default = "rspamd";
description = '' description = ''
User to use when no root privileges are required. User to use when no root privileges are required.
@ -316,7 +316,7 @@ in
}; };
group = mkOption { group = mkOption {
type = types.string; type = types.str;
default = "rspamd"; default = "rspamd";
description = '' description = ''
Group to use when no root privileges are required. Group to use when no root privileges are required.

View File

@ -34,7 +34,7 @@ in {
}; };
listenAddress = mkOption { listenAddress = mkOption {
type = types.string; type = types.str;
default = "127.0.0.1"; default = "127.0.0.1";
description = '' description = ''
The host name or IP address on which to bind Airsonic. The host name or IP address on which to bind Airsonic.

View File

@ -46,7 +46,7 @@ in {
hostname = mkOption { hostname = mkOption {
description = "Hostname the broker should bind to."; description = "Hostname the broker should bind to.";
default = "localhost"; default = "localhost";
type = types.string; type = types.str;
}; };
logDirs = mkOption { logDirs = mkOption {
@ -54,13 +54,13 @@ in {
default = [ "/tmp/kafka-logs" ]; default = [ "/tmp/kafka-logs" ];
type = types.listOf types.path; type = types.listOf types.path;
}; };
zookeeper = mkOption { zookeeper = mkOption {
description = "Zookeeper connection string"; description = "Zookeeper connection string";
default = "localhost:2181"; default = "localhost:2181";
type = types.string; type = types.str;
}; };
extraProperties = mkOption { extraProperties = mkOption {
description = "Extra properties for server.properties."; description = "Extra properties for server.properties.";
type = types.nullOr types.lines; type = types.nullOr types.lines;
@ -79,8 +79,8 @@ in {
log4jProperties = mkOption { log4jProperties = mkOption {
description = "Kafka log4j property configuration."; description = "Kafka log4j property configuration.";
default = '' default = ''
log4j.rootLogger=INFO, stdout log4j.rootLogger=INFO, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=[%d] %p %m (%c)%n log4j.appender.stdout.layout.ConversionPattern=[%d] %p %m (%c)%n

View File

@ -28,15 +28,15 @@ in
''; '';
}; };
url = mkOption { url = mkOption {
type = types.string; type = types.str;
description = "URL of mining server"; description = "URL of mining server";
}; };
user = mkOption { user = mkOption {
type = types.string; type = types.str;
description = "Username for mining server"; description = "Username for mining server";
}; };
pass = mkOption { pass = mkOption {
type = types.string; type = types.str;
default = "x"; default = "x";
description = "Password for mining server"; description = "Password for mining server";
}; };
@ -63,4 +63,4 @@ in
}; };
} }

View File

@ -252,7 +252,7 @@ in
example = ["host1:2181" "host2:2181"]; example = ["host1:2181" "host2:2181"];
}; };
zkConfigExhibitorPath = mkOption { zkConfigExhibitorPath = mkOption {
type = types.string; type = types.str;
description = '' description = ''
If the ZooKeeper shared config is also running Exhibitor, the URI path for the REST call If the ZooKeeper shared config is also running Exhibitor, the URI path for the REST call
''; '';

View File

@ -14,7 +14,7 @@ in {
enable = mkEnableOption "periodic SSD TRIM of mounted partitions in background"; enable = mkEnableOption "periodic SSD TRIM of mounted partitions in background";
interval = mkOption { interval = mkOption {
type = types.string; type = types.str;
default = "weekly"; default = "weekly";
description = '' description = ''
How often we run fstrim. For most desktop and server systems How often we run fstrim. For most desktop and server systems

View File

@ -11,7 +11,7 @@ in {
device = mkOption { device = mkOption {
description = "Use the given device as keyboard input event device instead of /dev/input/eventX default."; description = "Use the given device as keyboard input event device instead of /dev/input/eventX default.";
default = null; default = null;
type = types.nullOr types.string; type = types.nullOr types.str;
example = "/dev/input/event15"; example = "/dev/input/event15";
}; };
}; };

View File

@ -163,7 +163,7 @@ in {
}; };
serverName = mkOption { serverName = mkOption {
type = types.string; type = types.str;
default = "mediatomb"; default = "mediatomb";
description = '' description = ''
How to identify the server on the network. How to identify the server on the network.

View File

@ -50,7 +50,7 @@ in
}; };
ocrLanguages = mkOption { ocrLanguages = mkOption {
type = with types; nullOr (listOf string); type = with types; nullOr (listOf str);
default = null; default = null;
description = '' description = ''
Languages available for OCR via Tesseract, specified as Languages available for OCR via Tesseract, specified as

View File

@ -17,7 +17,7 @@ let cfg = config.services.subsonic; in {
}; };
listenAddress = mkOption { listenAddress = mkOption {
type = types.string; type = types.str;
default = "0.0.0.0"; default = "0.0.0.0";
description = '' description = ''
The host name or IP address on which to bind Subsonic. The host name or IP address on which to bind Subsonic.

View File

@ -51,7 +51,7 @@ in
}; };
address = mkOption { address = mkOption {
type = types.string; type = types.str;
default = "any"; default = "any";
description = "Address to bind the hub to."; description = "Address to bind the hub to.";
}; };
@ -83,7 +83,7 @@ in
description = "Whether to enable the Sqlite authentication database plugin"; description = "Whether to enable the Sqlite authentication database plugin";
}; };
file = mkOption { file = mkOption {
type = types.string; type = types.path;
example = "/var/db/uhub-users"; example = "/var/db/uhub-users";
description = "Path to user database. Use the uhub-passwd utility to create the database and add/remove users."; description = "Path to user database. Use the uhub-passwd utility to create the database and add/remove users.";
}; };
@ -96,7 +96,7 @@ in
description = "Whether to enable the logging plugin."; description = "Whether to enable the logging plugin.";
}; };
file = mkOption { file = mkOption {
type = types.string; type = types.str;
default = ""; default = "";
description = "Path of log file."; description = "Path of log file.";
}; };
@ -117,7 +117,7 @@ in
default = ""; default = "";
type = types.lines; type = types.lines;
description = '' description = ''
Welcome message displayed to clients after connecting Welcome message displayed to clients after connecting
and with the <literal>!motd</literal> command. and with the <literal>!motd</literal> command.
''; '';
}; };
@ -183,4 +183,4 @@ in
}; };
}; };
} }

View File

@ -91,7 +91,7 @@ in
BATTERYLEVEL 50 BATTERYLEVEL 50
MINUTES 5 MINUTES 5
''; '';
type = types.string; type = types.lines;
description = '' description = ''
Contents of the runtime configuration file, apcupsd.conf. The default Contents of the runtime configuration file, apcupsd.conf. The default
settings makes apcupsd autodetect USB UPSes, limit network access to settings makes apcupsd autodetect USB UPSes, limit network access to
@ -106,7 +106,7 @@ in
example = { example = {
doshutdown = ''# shell commands to notify that the computer is shutting down''; doshutdown = ''# shell commands to notify that the computer is shutting down'';
}; };
type = types.attrsOf types.string; type = types.attrsOf types.lines;
description = '' description = ''
Each attribute in this option names an apcupsd event and the string Each attribute in this option names an apcupsd event and the string
value it contains will be executed in a shell, in response to that value it contains will be executed in a shell, in response to that

View File

@ -41,7 +41,7 @@ in {
}; };
user = mkOption { user = mkOption {
type = types.string; type = types.str;
default = "bosun"; default = "bosun";
description = '' description = ''
User account under which bosun runs. User account under which bosun runs.
@ -49,7 +49,7 @@ in {
}; };
group = mkOption { group = mkOption {
type = types.string; type = types.str;
default = "bosun"; default = "bosun";
description = '' description = ''
Group account under which bosun runs. Group account under which bosun runs.
@ -57,7 +57,7 @@ in {
}; };
opentsdbHost = mkOption { opentsdbHost = mkOption {
type = types.nullOr types.string; type = types.nullOr types.str;
default = "localhost:4242"; default = "localhost:4242";
description = '' description = ''
Host and port of the OpenTSDB database that stores bosun data. Host and port of the OpenTSDB database that stores bosun data.
@ -66,7 +66,7 @@ in {
}; };
influxHost = mkOption { influxHost = mkOption {
type = types.nullOr types.string; type = types.nullOr types.str;
default = null; default = null;
example = "localhost:8086"; example = "localhost:8086";
description = '' description = ''
@ -75,7 +75,7 @@ in {
}; };
listenAddress = mkOption { listenAddress = mkOption {
type = types.string; type = types.str;
default = ":8070"; default = ":8070";
description = '' description = ''
The host address and port that bosun's web interface will listen on. The host address and port that bosun's web interface will listen on.

View File

@ -87,7 +87,7 @@ in {
description = "The hostname to show in the Datadog dashboard (optional)"; description = "The hostname to show in the Datadog dashboard (optional)";
default = null; default = null;
example = "mymachine.mydomain"; example = "mymachine.mydomain";
type = types.uniq (types.nullOr types.string); type = types.nullOr types.str;
}; };
logLevel = mkOption { logLevel = mkOption {

View File

@ -145,41 +145,40 @@ in {
description = "The hostname to show in the Datadog dashboard (optional)"; description = "The hostname to show in the Datadog dashboard (optional)";
default = null; default = null;
example = "mymachine.mydomain"; example = "mymachine.mydomain";
type = types.uniq (types.nullOr types.string); type = types.nullOr types.str;
}; };
postgresqlConfig = mkOption { postgresqlConfig = mkOption {
description = "Datadog PostgreSQL integration configuration"; description = "Datadog PostgreSQL integration configuration";
default = null; default = null;
type = types.uniq (types.nullOr types.string); type = types.nullOr types.lines;
}; };
nginxConfig = mkOption { nginxConfig = mkOption {
description = "Datadog nginx integration configuration"; description = "Datadog nginx integration configuration";
default = null; default = null;
type = types.uniq (types.nullOr types.string); type = types.nullOr types.lines;
}; };
mongoConfig = mkOption { mongoConfig = mkOption {
description = "MongoDB integration configuration"; description = "MongoDB integration configuration";
default = null; default = null;
type = types.uniq (types.nullOr types.string); type = types.nullOr types.lines;
}; };
jmxConfig = mkOption { jmxConfig = mkOption {
description = "JMX integration configuration"; description = "JMX integration configuration";
default = null; default = null;
type = types.uniq (types.nullOr types.string); type = types.nullOr types.lines;
}; };
processConfig = mkOption { processConfig = mkOption {
description = '' description = ''
Process integration configuration Process integration configuration
See <link xlink:href="https://docs.datadoghq.com/integrations/process/"/>
See http://docs.datadoghq.com/integrations/process/
''; '';
default = null; default = null;
type = types.uniq (types.nullOr types.string); type = types.nullOr types.lines;
}; };
}; };

View File

@ -11,7 +11,7 @@ let
graphiteLocalSettingsDir = pkgs.runCommand "graphite_local_settings" { graphiteLocalSettingsDir = pkgs.runCommand "graphite_local_settings" {
inherit graphiteLocalSettings; inherit graphiteLocalSettings;
preferLocalBuild = true; preferLocalBuild = true;
} '' } ''
mkdir -p $out mkdir -p $out
ln -s $graphiteLocalSettings $out/graphite_local_settings.py ln -s $graphiteLocalSettings $out/graphite_local_settings.py
@ -215,7 +215,7 @@ in {
storageAggregation = mkOption { storageAggregation = mkOption {
description = "Defines how to aggregate data to lower-precision retentions."; description = "Defines how to aggregate data to lower-precision retentions.";
default = null; default = null;
type = types.uniq (types.nullOr types.string); type = types.nullOr types.str;
example = '' example = ''
[all_min] [all_min]
pattern = \.min$ pattern = \.min$
@ -227,7 +227,7 @@ in {
storageSchemas = mkOption { storageSchemas = mkOption {
description = "Defines retention rates for storing metrics."; description = "Defines retention rates for storing metrics.";
default = ""; default = "";
type = types.uniq (types.nullOr types.string); type = types.nullOr types.str;
example = '' example = ''
[apache_busyWorkers] [apache_busyWorkers]
pattern = ^servers\.www.*\.workers\.busyWorkers$ pattern = ^servers\.www.*\.workers\.busyWorkers$
@ -238,14 +238,14 @@ in {
blacklist = mkOption { blacklist = mkOption {
description = "Any metrics received which match one of the experssions will be dropped."; description = "Any metrics received which match one of the experssions will be dropped.";
default = null; default = null;
type = types.uniq (types.nullOr types.string); type = types.nullOr types.str;
example = "^some\.noisy\.metric\.prefix\..*"; example = "^some\.noisy\.metric\.prefix\..*";
}; };
whitelist = mkOption { whitelist = mkOption {
description = "Only metrics received which match one of the experssions will be persisted."; description = "Only metrics received which match one of the experssions will be persisted.";
default = null; default = null;
type = types.uniq (types.nullOr types.string); type = types.nullOr types.str;
example = ".*"; example = ".*";
}; };
@ -255,7 +255,7 @@ in {
in a search and replace fashion. in a search and replace fashion.
''; '';
default = null; default = null;
type = types.uniq (types.nullOr types.string); type = types.nullOr types.str;
example = '' example = ''
[post] [post]
_sum$ = _sum$ =
@ -272,7 +272,7 @@ in {
relayRules = mkOption { relayRules = mkOption {
description = "Relay rules are used to send certain metrics to a certain backend."; description = "Relay rules are used to send certain metrics to a certain backend.";
default = null; default = null;
type = types.uniq (types.nullOr types.string); type = types.nullOr types.str;
example = '' example = ''
[example] [example]
pattern = ^mydata\.foo\..+ pattern = ^mydata\.foo\..+
@ -289,7 +289,7 @@ in {
aggregationRules = mkOption { aggregationRules = mkOption {
description = "Defines if and how received metrics will be aggregated."; description = "Defines if and how received metrics will be aggregated.";
default = null; default = null;
type = types.uniq (types.nullOr types.string); type = types.nullOr types.str;
example = '' example = ''
<env>.applications.<app>.all.requests (60) = sum <env>.applications.<app>.*.requests <env>.applications.<app>.all.requests (60) = sum <env>.applications.<app>.*.requests
<env>.applications.<app>.all.latency (60) = avg <env>.applications.<app>.*.latency <env>.applications.<app>.all.latency (60) = avg <env>.applications.<app>.*.latency

View File

@ -15,19 +15,19 @@ in {
source = mkOption { source = mkOption {
description = "Heapster metric source"; description = "Heapster metric source";
example = "kubernetes:https://kubernetes.default"; example = "kubernetes:https://kubernetes.default";
type = types.string; type = types.str;
}; };
sink = mkOption { sink = mkOption {
description = "Heapster metic sink"; description = "Heapster metic sink";
example = "influxdb:http://localhost:8086"; example = "influxdb:http://localhost:8086";
type = types.string; type = types.str;
}; };
extraOpts = mkOption { extraOpts = mkOption {
description = "Heapster extra options"; description = "Heapster extra options";
default = ""; default = "";
type = types.string; type = types.separatedString " ";
}; };
package = mkOption { package = mkOption {

View File

@ -116,17 +116,17 @@ in
url = mkOption { url = mkOption {
description = "The URL to an InfluxDB server that serves as the default database"; description = "The URL to an InfluxDB server that serves as the default database";
example = "http://localhost:8086"; example = "http://localhost:8086";
type = types.string; type = types.str;
}; };
username = mkOption { username = mkOption {
description = "The username to connect to the remote InfluxDB server"; description = "The username to connect to the remote InfluxDB server";
type = types.string; type = types.str;
}; };
password = mkOption { password = mkOption {
description = "The password to connect to the remote InfluxDB server"; description = "The password to connect to the remote InfluxDB server";
type = types.string; type = types.str;
}; };
}; };
@ -137,7 +137,7 @@ in
description = "The URL to the Alerta REST API"; description = "The URL to the Alerta REST API";
default = "http://localhost:5000"; default = "http://localhost:5000";
example = "http://localhost:5000"; example = "http://localhost:5000";
type = types.string; type = types.str;
}; };
token = mkOption { token = mkOption {

View File

@ -233,7 +233,7 @@ in
# In the meantime this at least suppresses a useless graph full of # In the meantime this at least suppresses a useless graph full of
# NaNs in the output. # NaNs in the output.
default = [ "munin_stats" ]; default = [ "munin_stats" ];
type = with types; listOf string; type = with types; listOf str;
description = '' description = ''
Munin plugins to disable, even if Munin plugins to disable, even if
<literal>munin-node-configure --suggest</literal> tries to enable <literal>munin-node-configure --suggest</literal> tries to enable

View File

@ -9,7 +9,7 @@ in
port = 9100; port = 9100;
extraOpts = { extraOpts = {
enabledCollectors = mkOption { enabledCollectors = mkOption {
type = types.listOf types.string; type = types.listOf types.str;
default = []; default = [];
example = ''[ "systemd" ]''; example = ''[ "systemd" ]'';
description = '' description = ''

View File

@ -35,7 +35,7 @@ in {
''; '';
}; };
extraArgs = mkOption { extraArgs = mkOption {
type = types.listOf types.string; type = types.listOf types.str;
default = []; default = [];
description = '' description = ''
A list of commandline-switches forwarded to a riemann-tool. A list of commandline-switches forwarded to a riemann-tool.

View File

@ -51,7 +51,7 @@ in {
}; };
user = mkOption { user = mkOption {
type = types.string; type = types.str;
default = "scollector"; default = "scollector";
description = '' description = ''
User account under which scollector runs. User account under which scollector runs.
@ -59,7 +59,7 @@ in {
}; };
group = mkOption { group = mkOption {
type = types.string; type = types.str;
default = "scollector"; default = "scollector";
description = '' description = ''
Group account under which scollector runs. Group account under which scollector runs.
@ -67,7 +67,7 @@ in {
}; };
bosunHost = mkOption { bosunHost = mkOption {
type = types.string; type = types.str;
default = "localhost:8070"; default = "localhost:8070";
description = '' description = ''
Host and port of the bosun server that will store the collected Host and port of the bosun server that will store the collected

View File

@ -55,7 +55,7 @@ let
description = mkOption { description = mkOption {
default = ""; default = "";
type = types.string; type = types.str;
description = '' description = ''
Description of the UPS. Description of the UPS.
''; '';
@ -71,7 +71,7 @@ let
summary = mkOption { summary = mkOption {
default = ""; default = "";
type = types.string; type = types.lines;
description = '' description = ''
Lines which would be added inside ups.conf for handling this UPS. Lines which would be added inside ups.conf for handling this UPS.
''; '';

View File

@ -57,7 +57,7 @@ in {
nodeEnv = mkOption { nodeEnv = mkOption {
description = "The node environment to run in (development, production, etc.)"; description = "The node environment to run in (development, production, etc.)";
type = types.string; type = types.str;
default = "production"; default = "production";
}; };

View File

@ -21,7 +21,7 @@ in
}; };
davUser = mkOption { davUser = mkOption {
type = types.string; type = types.str;
default = "davfs2"; default = "davfs2";
description = '' description = ''
When invoked by root the mount.davfs daemon will run as this user. When invoked by root the mount.davfs daemon will run as this user.
@ -30,7 +30,7 @@ in
}; };
davGroup = mkOption { davGroup = mkOption {
type = types.string; type = types.str;
default = "davfs2"; default = "davfs2";
description = '' description = ''
The group of the running mount.davfs daemon. Ordinary users must be The group of the running mount.davfs daemon. Ordinary users must be

View File

@ -23,7 +23,7 @@ let cfg = config.services.drbd; in
services.drbd.config = mkOption { services.drbd.config = mkOption {
default = ""; default = "";
type = types.string; type = types.lines;
description = '' description = ''
Contents of the <filename>drbd.conf</filename> configuration file. Contents of the <filename>drbd.conf</filename> configuration file.
''; '';

View File

@ -35,7 +35,7 @@ in
}; };
motd = mkOption { motd = mkOption {
type = types.string; type = types.str;
default = ""; default = "";
description = '' description = ''
Message of the day to display to clients on each connect. Message of the day to display to clients on each connect.

View File

@ -29,7 +29,7 @@ in
username = mkOption { username = mkOption {
default = ""; default = "";
type = types.string; type = types.str;
description = '' description = ''
Your yandex.com login name. Your yandex.com login name.
''; '';
@ -37,7 +37,7 @@ in
password = mkOption { password = mkOption {
default = ""; default = "";
type = types.string; type = types.str;
description = '' description = ''
Your yandex.com password. Warning: it will be world-readable in /nix/store. Your yandex.com password. Warning: it will be world-readable in /nix/store.
''; '';
@ -57,7 +57,7 @@ in
excludes = mkOption { excludes = mkOption {
default = ""; default = "";
type = types.string; type = types.commas;
example = "data,backup"; example = "data,backup";
description = '' description = ''
Comma-separated list of directories which are excluded from synchronization. Comma-separated list of directories which are excluded from synchronization.

View File

@ -47,8 +47,8 @@ in
''; '';
}; };
downloadDir = mkOption { downloadDir = mkOption {
type = types.string; type = types.path;
default = "${downloadDir}"; default = downloadDir;
description = '' description = ''
Directory to store downloaded files. Directory to store downloaded files.
''; '';
@ -66,7 +66,7 @@ in
description = "Specify a port number for JSON-RPC/XML-RPC server to listen to. Possible Values: 1024-65535"; description = "Specify a port number for JSON-RPC/XML-RPC server to listen to. Possible Values: 1024-65535";
}; };
rpcSecret = mkOption { rpcSecret = mkOption {
type = types.string; type = types.str;
default = "aria2rpc"; default = "aria2rpc";
description = '' description = ''
Set RPC secret authorization token. Set RPC secret authorization token.
@ -74,7 +74,7 @@ in
''; '';
}; };
extraArguments = mkOption { extraArguments = mkOption {
type = types.string; type = types.separatedString " ";
example = "--rpc-listen-all --remote-time=true"; example = "--rpc-listen-all --remote-time=true";
default = ""; default = "";
description = '' description = ''

View File

@ -20,12 +20,12 @@ in
type = types.listOf (types.submodule { type = types.listOf (types.submodule {
options = { options = {
name = mkOption { name = mkOption {
type = types.string; type = types.str;
example = "socks-peer"; example = "socks-peer";
description = "Name of the local AutoSSH session"; description = "Name of the local AutoSSH session";
}; };
user = mkOption { user = mkOption {
type = types.string; type = types.str;
example = "bill"; example = "bill";
description = "Name of the user the AutoSSH session should run as"; description = "Name of the user the AutoSSH session should run as";
}; };
@ -40,7 +40,7 @@ in
''; '';
}; };
extraArguments = mkOption { extraArguments = mkOption {
type = types.string; type = types.separatedString " ";
example = "-N -D4343 bill@socks.example.net"; example = "-N -D4343 bill@socks.example.net";
description = '' description = ''
Arguments to be passed to AutoSSH and retransmitted to SSH Arguments to be passed to AutoSSH and retransmitted to SSH

View File

@ -21,14 +21,14 @@ in
enable = mkEnableOption "Charybdis IRC daemon"; enable = mkEnableOption "Charybdis IRC daemon";
config = mkOption { config = mkOption {
type = types.string; type = types.str;
description = '' description = ''
Charybdis IRC daemon configuration file. Charybdis IRC daemon configuration file.
''; '';
}; };
statedir = mkOption { statedir = mkOption {
type = types.string; type = types.path;
default = "/var/lib/charybdis"; default = "/var/lib/charybdis";
description = '' description = ''
Location of the state directory of charybdis. Location of the state directory of charybdis.
@ -36,7 +36,7 @@ in
}; };
user = mkOption { user = mkOption {
type = types.string; type = types.str;
default = "ircd"; default = "ircd";
description = '' description = ''
Charybdis IRC daemon user. Charybdis IRC daemon user.
@ -44,7 +44,7 @@ in
}; };
group = mkOption { group = mkOption {
type = types.string; type = types.str;
default = "ircd"; default = "ircd";
description = '' description = ''
Charybdis IRC daemon group. Charybdis IRC daemon group.
@ -101,7 +101,7 @@ in
}; };
} }
(mkIf (cfg.motd != null) { (mkIf (cfg.motd != null) {
environment.etc."charybdis/ircd.motd".text = cfg.motd; environment.etc."charybdis/ircd.motd".text = cfg.motd;
}) })

View File

@ -45,7 +45,7 @@ in {
}; };
networkInterfaceBlacklist = mkOption { networkInterfaceBlacklist = mkOption {
type = with types; listOf string; type = with types; listOf str;
default = [ "vmnet" "vboxnet" "virbr" "ifb" "ve" ]; default = [ "vmnet" "vboxnet" "virbr" "ifb" "ve" ];
description = '' description = ''
Default blacklisted interfaces, this includes NixOS containers interfaces (ve). Default blacklisted interfaces, this includes NixOS containers interfaces (ve).
@ -53,7 +53,7 @@ in {
}; };
extraFlags = mkOption { extraFlags = mkOption {
type = with types; listOf string; type = with types; listOf str;
default = [ ]; default = [ ];
example = [ "--nodnsproxy" ]; example = [ "--nodnsproxy" ];
description = '' description = ''

View File

@ -34,7 +34,7 @@ in
password = mkOption { password = mkOption {
default = ""; default = "";
type = types.string; type = types.str;
description = '' description = ''
Path to a file (as a string), containing your gogoNET password, if any. Path to a file (as a string), containing your gogoNET password, if any.
''; '';

View File

@ -81,7 +81,7 @@ in
driver = mkOption { driver = mkOption {
default = "nl80211"; default = "nl80211";
example = "hostapd"; example = "hostapd";
type = types.string; type = types.str;
description = '' description = ''
Which driver <command>hostapd</command> will use. Which driver <command>hostapd</command> will use.
Most applications will probably use the default. Most applications will probably use the default.
@ -91,7 +91,7 @@ in
ssid = mkOption { ssid = mkOption {
default = "nixos"; default = "nixos";
example = "mySpecialSSID"; example = "mySpecialSSID";
type = types.string; type = types.str;
description = "SSID to be used in IEEE 802.11 management frames."; description = "SSID to be used in IEEE 802.11 management frames.";
}; };
@ -119,7 +119,7 @@ in
group = mkOption { group = mkOption {
default = "wheel"; default = "wheel";
example = "network"; example = "network";
type = types.string; type = types.str;
description = '' description = ''
Members of this group can control <command>hostapd</command>. Members of this group can control <command>hostapd</command>.
''; '';
@ -135,7 +135,7 @@ in
wpaPassphrase = mkOption { wpaPassphrase = mkOption {
default = "my_sekret"; default = "my_sekret";
example = "any_64_char_string"; example = "any_64_char_string";
type = types.string; type = types.str;
description = '' description = ''
WPA-PSK (pre-shared-key) passphrase. Clients will need this WPA-PSK (pre-shared-key) passphrase. Clients will need this
passphrase to associate with this access point. passphrase to associate with this access point.

View File

@ -54,7 +54,7 @@ in {
}; };
genesisBlockHash = mkOption { genesisBlockHash = mkOption {
type = types.nullOr types.string; type = types.nullOr types.str;
default = null; default = null;
example = "d70495af81ae8600aca3e642b2427327cb6001ec4d7a0037e96a00dabed163f9"; example = "d70495af81ae8600aca3e642b2427327cb6001ec4d7a0037e96a00dabed163f9";
description = '' description = ''

View File

@ -26,22 +26,22 @@ rec {
}; };
hostname = mkOption { hostname = mkOption {
default = "nas3"; default = "nas3";
type = types.string; type = types.str;
description = ''Hostname for kippo to present to SSH login''; description = ''Hostname for kippo to present to SSH login'';
}; };
varPath = mkOption { varPath = mkOption {
default = "/var/lib/kippo"; default = "/var/lib/kippo";
type = types.string; type = types.path;
description = ''Path of read/write files needed for operation and configuration.''; description = ''Path of read/write files needed for operation and configuration.'';
}; };
logPath = mkOption { logPath = mkOption {
default = "/var/log/kippo"; default = "/var/log/kippo";
type = types.string; type = types.path;
description = ''Path of log files needed for operation and configuration.''; description = ''Path of log files needed for operation and configuration.'';
}; };
pidPath = mkOption { pidPath = mkOption {
default = "/run/kippo"; default = "/run/kippo";
type = types.string; type = types.path;
description = ''Path of pid files needed for operation.''; description = ''Path of pid files needed for operation.'';
}; };
extraConfig = mkOption { extraConfig = mkOption {
@ -109,8 +109,8 @@ rec {
serviceConfig.ExecStart = "${pkgs.kippo.twisted}/bin/twistd -y ${pkgs.kippo}/src/kippo.tac --syslog --rundir=${cfg.varPath}/ --pidfile=${cfg.pidPath}/kippo.pid --prefix=kippo -n"; serviceConfig.ExecStart = "${pkgs.kippo.twisted}/bin/twistd -y ${pkgs.kippo}/src/kippo.tac --syslog --rundir=${cfg.varPath}/ --pidfile=${cfg.pidPath}/kippo.pid --prefix=kippo -n";
serviceConfig.PermissionsStartOnly = true; serviceConfig.PermissionsStartOnly = true;
serviceConfig.User = "kippo"; serviceConfig.User = "kippo";
serviceConfig.Group = "kippo"; serviceConfig.Group = "kippo";
}; };
}; };
} }

View File

@ -27,7 +27,7 @@ in
}; };
key = mkOption { key = mkOption {
type = types.string; type = types.str;
default = ""; default = "";
description = "HMAC url validation key (hexadecimal encoded). description = "HMAC url validation key (hexadecimal encoded).
Leave blank to disable. Without validation key, anyone can Leave blank to disable. Without validation key, anyone can
@ -56,7 +56,7 @@ in
}; };
listenAddress = mkOption { listenAddress = mkOption {
type = types.string; type = types.str;
default = "127.0.0.1"; default = "127.0.0.1";
description = "The address on which the service listens"; description = "The address on which the service listens";
defaultText = "127.0.0.1 (localhost)"; defaultText = "127.0.0.1 (localhost)";

View File

@ -49,7 +49,7 @@ in
host = mkOption { host = mkOption {
default = "127.0.0.1"; default = "127.0.0.1";
example = "0.0.0.0"; example = "0.0.0.0";
type = types.string; type = types.str;
description = '' description = ''
Host to listen on without SSL. Host to listen on without SSL.
''; '';
@ -88,7 +88,7 @@ in
host = mkOption { host = mkOption {
default = "0.0.0.0"; default = "0.0.0.0";
example = "localhost"; example = "localhost";
type = types.string; type = types.str;
description = '' description = ''
Host to listen on with SSL. Host to listen on with SSL.
''; '';
@ -135,7 +135,7 @@ in
}; };
acl = mkOption { acl = mkOption {
type = types.listOf types.string; type = types.listOf types.str;
example = [ "topic read A/B" "topic A/#" ]; example = [ "topic read A/B" "topic A/#" ];
description = '' description = ''
Control client access to topics on the broker. Control client access to topics on the broker.

View File

@ -156,7 +156,7 @@ in {
}; };
unmanaged = mkOption { unmanaged = mkOption {
type = types.listOf types.string; type = types.listOf types.str;
default = []; default = [];
description = '' description = ''
List of interfaces that will not be managed by NetworkManager. List of interfaces that will not be managed by NetworkManager.

View File

@ -19,7 +19,7 @@ in
}; };
bindAddress = mkOption { bindAddress = mkOption {
type = types.string; type = types.str;
default = "0.0.0.0"; default = "0.0.0.0";
description = '' description = ''
IP address where nix-serve will bind its listening socket. IP address where nix-serve will bind its listening socket.
@ -44,7 +44,7 @@ in
}; };
extraParams = mkOption { extraParams = mkOption {
type = types.string; type = types.separatedString " ";
default = ""; default = "";
description = '' description = ''
Extra command line parameters for nix-serve. Extra command line parameters for nix-serve.

View File

@ -65,7 +65,7 @@ let
}; };
acceptInterface = mkOption { acceptInterface = mkOption {
type = types.string; type = types.str;
default = "lo"; default = "lo";
description = '' description = ''
Tell nylon which interface to listen for client requests on, default is "lo". Tell nylon which interface to listen for client requests on, default is "lo".
@ -73,7 +73,7 @@ let
}; };
bindInterface = mkOption { bindInterface = mkOption {
type = types.string; type = types.str;
default = "enp3s0f0"; default = "enp3s0f0";
description = '' description = ''
Tell nylon which interface to use as an uplink, default is "enp3s0f0". Tell nylon which interface to use as an uplink, default is "enp3s0f0".
@ -89,7 +89,7 @@ let
}; };
allowedIPRanges = mkOption { allowedIPRanges = mkOption {
type = with types; listOf string; type = with types; listOf str;
default = [ "192.168.0.0/16" "127.0.0.1/8" "172.16.0.1/12" "10.0.0.0/8" ]; default = [ "192.168.0.0/16" "127.0.0.1/8" "172.16.0.1/12" "10.0.0.0/8" ];
description = '' description = ''
Allowed client IP ranges are evaluated first, defaults to ARIN IPv4 private ranges: Allowed client IP ranges are evaluated first, defaults to ARIN IPv4 private ranges:
@ -98,7 +98,7 @@ let
}; };
deniedIPRanges = mkOption { deniedIPRanges = mkOption {
type = with types; listOf string; type = with types; listOf str;
default = [ "0.0.0.0/0" ]; default = [ "0.0.0.0/0" ];
description = '' description = ''
Denied client IP ranges, these gets evaluated after the allowed IP ranges, defaults to all IPv4 addresses: Denied client IP ranges, these gets evaluated after the allowed IP ranges, defaults to all IPv4 addresses:

View File

@ -40,7 +40,7 @@ in
}; };
extraOptions = mkOption { extraOptions = mkOption {
type = with types; string; type = with types; separatedString " ";
default = ""; default = "";
example = "-s"; example = "-s";
description = '' description = ''

View File

@ -182,12 +182,12 @@ in
options = { options = {
username = mkOption { username = mkOption {
description = "The username to store inside the credentials file."; description = "The username to store inside the credentials file.";
type = types.string; type = types.str;
}; };
password = mkOption { password = mkOption {
description = "The password to store inside the credentials file."; description = "The password to store inside the credentials file.";
type = types.string; type = types.str;
}; };
}; };
}); });

View File

@ -50,7 +50,7 @@ in
rpcServer = { rpcServer = {
address = mkOption { address = mkOption {
type = types.string; type = types.str;
default = "0.0.0.0"; default = "0.0.0.0";
description = '' description = ''
By default, the Drone RPC server will listen on all interfaces and By default, the Drone RPC server will listen on all interfaces and
@ -63,7 +63,7 @@ in
portList = { portList = {
include = mkOption { include = mkOption {
type = types.listOf types.string; type = types.listOf types.str;
default = []; default = [];
example = ''[ "eth*" "lo*" ]''; example = ''[ "eth*" "lo*" ]'';
description = '' description = ''

View File

@ -30,7 +30,7 @@ in
}; };
proxyAddress = mkOption { proxyAddress = mkOption {
type = types.string; type = types.str;
default = "127.0.0.1"; default = "127.0.0.1";
description = "IP address on which Polipo will listen."; description = "IP address on which Polipo will listen.";
}; };
@ -51,7 +51,7 @@ in
}; };
parentProxy = mkOption { parentProxy = mkOption {
type = types.string; type = types.str;
default = ""; default = "";
example = "localhost:8124"; example = "localhost:8124";
description = '' description = ''
@ -61,7 +61,7 @@ in
}; };
socksParentProxy = mkOption { socksParentProxy = mkOption {
type = types.string; type = types.str;
default = ""; default = "";
example = "localhost:9050"; example = "localhost:9050";
description = '' description = ''
@ -74,7 +74,7 @@ in
type = types.lines; type = types.lines;
default = ""; default = "";
description = '' description = ''
Polio configuration. Contents will be added Polio configuration. Contents will be added
verbatim to the configuration file. verbatim to the configuration file.
''; '';
}; };
@ -111,4 +111,4 @@ in
}; };
} }

View File

@ -8,13 +8,13 @@ with lib;
enable = mkEnableOption "pptpd, the Point-to-Point Tunneling Protocol daemon"; enable = mkEnableOption "pptpd, the Point-to-Point Tunneling Protocol daemon";
serverIp = mkOption { serverIp = mkOption {
type = types.string; type = types.str;
description = "The server-side IP address."; description = "The server-side IP address.";
default = "10.124.124.1"; default = "10.124.124.1";
}; };
clientIpRange = mkOption { clientIpRange = mkOption {
type = types.string; type = types.str;
description = "The range from which client IPs are drawn."; description = "The range from which client IPs are drawn.";
default = "10.124.124.2-11"; default = "10.124.124.2-11";
}; };

View File

@ -297,7 +297,7 @@ in
}; };
dataDir = mkOption { dataDir = mkOption {
type = types.string; type = types.path;
description = "Directory where Prosody stores its data"; description = "Directory where Prosody stores its data";
default = "/var/lib/prosody"; default = "/var/lib/prosody";
}; };

View File

@ -41,7 +41,7 @@ in
}; };
services.radicale.config = mkOption { services.radicale.config = mkOption {
type = types.string; type = types.str;
default = ""; default = "";
description = '' description = ''
Radicale configuration, this will set the service Radicale configuration, this will set the service
@ -50,7 +50,7 @@ in
}; };
services.radicale.extraArgs = mkOption { services.radicale.extraArgs = mkOption {
type = types.listOf types.string; type = types.listOf types.str;
default = []; default = [];
description = "Extra arguments passed to the Radicale daemon."; description = "Extra arguments passed to the Radicale daemon.";
}; };

View File

@ -35,7 +35,7 @@ in {
}; };
listenAddress = mkOption { listenAddress = mkOption {
type = types.string; type = types.str;
default = "0.0.0.0"; default = "0.0.0.0";
description = "IP interface to listen on for http connections."; description = "IP interface to listen on for http connections.";
}; };

View File

@ -55,7 +55,7 @@ in
description = "Enable the smokeping service"; description = "Enable the smokeping service";
}; };
alertConfig = mkOption { alertConfig = mkOption {
type = types.string; type = types.lines;
default = '' default = ''
to = root@localhost to = root@localhost
from = smokeping@localhost from = smokeping@localhost
@ -73,19 +73,20 @@ in
description = "Configuration for alerts."; description = "Configuration for alerts.";
}; };
cgiUrl = mkOption { cgiUrl = mkOption {
type = types.string; type = types.str;
default = "http://${cfg.hostName}:${builtins.toString cfg.port}/smokeping.cgi"; default = "http://${cfg.hostName}:${toString cfg.port}/smokeping.cgi";
defaultText = "http://\${hostName}:\${toString port}/smokeping.cgi";
example = "https://somewhere.example.com/smokeping.cgi"; example = "https://somewhere.example.com/smokeping.cgi";
description = "URL to the smokeping cgi."; description = "URL to the smokeping cgi.";
}; };
config = mkOption { config = mkOption {
type = types.nullOr types.string; type = types.nullOr types.lines;
default = null; default = null;
description = "Full smokeping config supplied by the user. Overrides " + description = "Full smokeping config supplied by the user. Overrides " +
"and replaces any other configuration supplied."; "and replaces any other configuration supplied.";
}; };
databaseConfig = mkOption { databaseConfig = mkOption {
type = types.string; type = types.lines;
default = '' default = ''
step = 300 step = 300
pings = 20 pings = 20
@ -122,14 +123,15 @@ in
description = "Any additional customization not already included."; description = "Any additional customization not already included.";
}; };
hostName = mkOption { hostName = mkOption {
type = types.string; type = types.str;
default = config.networking.hostName; default = config.networking.hostName;
example = "somewhere.example.com"; example = "somewhere.example.com";
description = "DNS name for the urls generated in the cgi."; description = "DNS name for the urls generated in the cgi.";
}; };
imgUrl = mkOption { imgUrl = mkOption {
type = types.string; type = types.str;
default = "http://${cfg.hostName}:${builtins.toString cfg.port}/cache"; default = "http://${cfg.hostName}:${toString cfg.port}/cache";
defaultText = "http://\${hostName}:\${toString port}/cache";
example = "https://somewhere.example.com/cache"; example = "https://somewhere.example.com/cache";
description = "Base url for images generated in the cgi."; description = "Base url for images generated in the cgi.";
}; };
@ -140,19 +142,19 @@ in
description = "DNS name for the urls generated in the cgi."; description = "DNS name for the urls generated in the cgi.";
}; };
mailHost = mkOption { mailHost = mkOption {
type = types.string; type = types.str;
default = ""; default = "";
example = "localhost"; example = "localhost";
description = "Use this SMTP server to send alerts"; description = "Use this SMTP server to send alerts";
}; };
owner = mkOption { owner = mkOption {
type = types.string; type = types.str;
default = "nobody"; default = "nobody";
example = "Joe Admin"; example = "Joe Admin";
description = "Real name of the owner of the instance"; description = "Real name of the owner of the instance";
}; };
ownerEmail = mkOption { ownerEmail = mkOption {
type = types.string; type = types.str;
default = "no-reply@${cfg.hostName}"; default = "no-reply@${cfg.hostName}";
example = "no-reply@yourdomain.com"; example = "no-reply@yourdomain.com";
description = "Email contact for owner"; description = "Email contact for owner";
@ -170,7 +172,7 @@ in
description = "TCP port to use for the web server."; description = "TCP port to use for the web server.";
}; };
presentationConfig = mkOption { presentationConfig = mkOption {
type = types.string; type = types.lines;
default = '' default = ''
+ charts + charts
menu = Charts menu = Charts
@ -211,12 +213,12 @@ in
description = "presentation graph style"; description = "presentation graph style";
}; };
presentationTemplate = mkOption { presentationTemplate = mkOption {
type = types.string; type = types.str;
default = "${pkgs.smokeping}/etc/basepage.html.dist"; default = "${pkgs.smokeping}/etc/basepage.html.dist";
description = "Default page layout for the web UI."; description = "Default page layout for the web UI.";
}; };
probeConfig = mkOption { probeConfig = mkOption {
type = types.string; type = types.lines;
default = '' default = ''
+ FPing + FPing
binary = ${config.security.wrapperDir}/fping binary = ${config.security.wrapperDir}/fping
@ -230,12 +232,12 @@ in
description = "Use this sendmail compatible script to deliver alerts"; description = "Use this sendmail compatible script to deliver alerts";
}; };
smokeMailTemplate = mkOption { smokeMailTemplate = mkOption {
type = types.string; type = types.str;
default = "${cfg.package}/etc/smokemail.dist"; default = "${cfg.package}/etc/smokemail.dist";
description = "Specify the smokemail template for alerts."; description = "Specify the smokemail template for alerts.";
}; };
targetConfig = mkOption { targetConfig = mkOption {
type = types.string; type = types.lines;
default = '' default = ''
probe = FPing probe = FPing
menu = Top menu = Top
@ -253,7 +255,7 @@ in
description = "Target configuration"; description = "Target configuration";
}; };
user = mkOption { user = mkOption {
type = types.string; type = types.str;
default = "smokeping"; default = "smokeping";
description = "User that runs smokeping and (optionally) thttpd"; description = "User that runs smokeping and (optionally) thttpd";
}; };

View File

@ -50,7 +50,7 @@ in
}; };
dataDir = mkOption { dataDir = mkOption {
type = types.string; type = types.path;
default = "/var/lib/softether"; default = "/var/lib/softether";
description = '' description = ''
Data directory for SoftEther VPN. Data directory for SoftEther VPN.

View File

@ -35,12 +35,12 @@ let
clientConfig = { clientConfig = {
options = { options = {
accept = mkOption { accept = mkOption {
type = types.string; type = types.str;
description = "IP:Port on which connections should be accepted."; description = "IP:Port on which connections should be accepted.";
}; };
connect = mkOption { connect = mkOption {
type = types.string; type = types.str;
description = "IP:Port destination to connect to."; description = "IP:Port destination to connect to.";
}; };
@ -63,7 +63,7 @@ let
}; };
verifyHostname = mkOption { verifyHostname = mkOption {
type = with types; nullOr string; type = with types; nullOr str;
default = null; default = null;
description = "If set, stunnel checks if the provided certificate is valid for the given hostname."; description = "If set, stunnel checks if the provided certificate is valid for the given hostname.";
}; };
@ -88,13 +88,13 @@ in
}; };
user = mkOption { user = mkOption {
type = with types; nullOr string; type = with types; nullOr str;
default = "nobody"; default = "nobody";
description = "The user under which stunnel runs."; description = "The user under which stunnel runs.";
}; };
group = mkOption { group = mkOption {
type = with types; nullOr string; type = with types; nullOr str;
default = "nogroup"; default = "nogroup";
description = "The group under which stunnel runs."; description = "The group under which stunnel runs.";
}; };

View File

@ -8,7 +8,7 @@ with lib;
enable = mkEnableOption "toxvpn running on startup"; enable = mkEnableOption "toxvpn running on startup";
localip = mkOption { localip = mkOption {
type = types.string; type = types.str;
default = "10.123.123.1"; default = "10.123.123.1";
description = "your ip on the vpn"; description = "your ip on the vpn";
}; };
@ -20,7 +20,7 @@ with lib;
}; };
auto_add_peers = mkOption { auto_add_peers = mkOption {
type = types.listOf types.string; type = types.listOf types.str;
default = []; default = [];
example = ''[ "toxid1" "toxid2" ]''; example = ''[ "toxid1" "toxid2" ]'';
description = "peers to automacally connect to on startup"; description = "peers to automacally connect to on startup";

View File

@ -164,7 +164,7 @@ in
}; };
anonymousUmask = mkOption { anonymousUmask = mkOption {
type = types.string; type = types.str;
default = "077"; default = "077";
example = "002"; example = "002";
description = "Anonymous write umask."; description = "Anonymous write umask.";

View File

@ -53,7 +53,7 @@ in
services.xinetd.extraDefaults = mkOption { services.xinetd.extraDefaults = mkOption {
default = ""; default = "";
type = types.string; type = types.lines;
description = '' description = ''
Additional configuration lines added to the default section of xinetd's configuration. Additional configuration lines added to the default section of xinetd's configuration.
''; '';
@ -70,13 +70,13 @@ in
options = { options = {
name = mkOption { name = mkOption {
type = types.string; type = types.str;
example = "login"; example = "login";
description = "Name of the service."; description = "Name of the service.";
}; };
protocol = mkOption { protocol = mkOption {
type = types.string; type = types.str;
default = "tcp"; default = "tcp";
description = description =
"Protocol of the service. Usually <literal>tcp</literal> or <literal>udp</literal>."; "Protocol of the service. Usually <literal>tcp</literal> or <literal>udp</literal>.";
@ -90,25 +90,25 @@ in
}; };
user = mkOption { user = mkOption {
type = types.string; type = types.str;
default = "nobody"; default = "nobody";
description = "User account for the service"; description = "User account for the service";
}; };
server = mkOption { server = mkOption {
type = types.string; type = types.str;
example = "/foo/bin/ftpd"; example = "/foo/bin/ftpd";
description = "Path of the program that implements the service."; description = "Path of the program that implements the service.";
}; };
serverArgs = mkOption { serverArgs = mkOption {
type = types.string; type = types.separatedString " ";
default = ""; default = "";
description = "Command-line arguments for the server program."; description = "Command-line arguments for the server program.";
}; };
flags = mkOption { flags = mkOption {
type = types.string; type = types.str;
default = ""; default = "";
description = ""; description = "";
}; };

View File

@ -8,13 +8,13 @@ with lib;
enable = mkEnableOption "xl2tpd, the Layer 2 Tunnelling Protocol Daemon"; enable = mkEnableOption "xl2tpd, the Layer 2 Tunnelling Protocol Daemon";
serverIp = mkOption { serverIp = mkOption {
type = types.string; type = types.str;
description = "The server-side IP address."; description = "The server-side IP address.";
default = "10.125.125.1"; default = "10.125.125.1";
}; };
clientIpRange = mkOption { clientIpRange = mkOption {
type = types.string; type = types.str;
description = "The range from which client IPs are drawn."; description = "The range from which client IPs are drawn.";
default = "10.125.125.2-11"; default = "10.125.125.2-11";
}; };

View File

@ -69,7 +69,7 @@ in
configFile = mkOption { configFile = mkOption {
default = "empty.lua"; default = "empty.lua";
example = "/srv/haka/myfilter.lua"; example = "/srv/haka/myfilter.lua";
type = types.string; type = types.str;
description = '' description = ''
Specify which configuration file Haka uses. Specify which configuration file Haka uses.
It can be absolute path or a path relative to the sample directory of It can be absolute path or a path relative to the sample directory of
@ -80,7 +80,7 @@ in
interfaces = mkOption { interfaces = mkOption {
default = [ "eth0" ]; default = [ "eth0" ];
example = [ "any" ]; example = [ "any" ];
type = with types; listOf string; type = with types; listOf str;
description = '' description = ''
Specify which interface(s) Haka listens to. Specify which interface(s) Haka listens to.
Use 'any' to listen to all interfaces. Use 'any' to listen to all interfaces.

View File

@ -19,7 +19,7 @@ in
password = mkOption { password = mkOption {
default = "/etc/munge/munge.key"; default = "/etc/munge/munge.key";
type = types.string; type = types.path;
description = '' description = ''
The path to a daemon's secret key. The path to a daemon's secret key.
''; '';

View File

@ -284,7 +284,7 @@ in
#################################################### ####################################################
# UPSTREAM Configuration # UPSTREAM Configuration
upstream = mkOption { upstream = mkOption {
type = with types; coercedTo string (x: [x]) (listOf string); type = with types; coercedTo str (x: [x]) (listOf str);
default = []; default = [];
description = '' description = ''
The http url(s) of the upstream endpoint or <literal>file://</literal> The http url(s) of the upstream endpoint or <literal>file://</literal>
@ -523,7 +523,7 @@ in
}; };
keyFile = mkOption { keyFile = mkOption {
type = types.nullOr types.string; type = types.nullOr types.path;
default = null; default = null;
description = '' description = ''
oauth2_proxy allows passing sensitive configuration via environment variables. oauth2_proxy allows passing sensitive configuration via environment variables.

View File

@ -6,14 +6,14 @@ in
{ {
options.services.oauth2_proxy.nginx = { options.services.oauth2_proxy.nginx = {
proxy = mkOption { proxy = mkOption {
type = types.string; type = types.str;
default = config.services.oauth2_proxy.httpAddress; default = config.services.oauth2_proxy.httpAddress;
description = '' description = ''
The address of the reverse proxy endpoint for oauth2_proxy The address of the reverse proxy endpoint for oauth2_proxy
''; '';
}; };
virtualHosts = mkOption { virtualHosts = mkOption {
type = types.listOf types.string; type = types.listOf types.str;
default = []; default = [];
description = '' description = ''
A list of nginx virtual hosts to put behind the oauth2 proxy A list of nginx virtual hosts to put behind the oauth2 proxy

View File

@ -19,7 +19,7 @@ in {
user = mkOption { user = mkOption {
default = "deluge"; default = "deluge";
example = "some_user"; example = "some_user";
type = types.string; type = types.str;
description = "The user under which to run flexget."; description = "The user under which to run flexget.";
}; };
@ -33,7 +33,7 @@ in {
interval = mkOption { interval = mkOption {
default = "10m"; default = "10m";
example = "1h"; example = "1h";
type = types.string; type = types.str;
description = "When to perform a <command>flexget</command> run. See <command>man 7 systemd.time</command> for the format."; description = "When to perform a <command>flexget</command> run. See <command>man 7 systemd.time</command> for the format.";
}; };

View File

@ -28,28 +28,28 @@ in
The interface youtrack will listen on. The interface youtrack will listen on.
''; '';
default = "127.0.0.1"; default = "127.0.0.1";
type = types.string; type = types.str;
}; };
baseUrl = mkOption { baseUrl = mkOption {
description = '' description = ''
Base URL for youtrack. Will be auto-detected and stored in database. Base URL for youtrack. Will be auto-detected and stored in database.
''; '';
type = types.nullOr types.string; type = types.nullOr types.str;
default = null; default = null;
}; };
extraParams = mkOption { extraParams = mkOption {
default = {}; default = {};
description = '' description = ''
Extra parameters to pass to youtrack. See Extra parameters to pass to youtrack. See
https://www.jetbrains.com/help/youtrack/standalone/YouTrack-Java-Start-Parameters.html https://www.jetbrains.com/help/youtrack/standalone/YouTrack-Java-Start-Parameters.html
for more information. for more information.
''; '';
example = { example = {
"jetbrains.youtrack.overrideRootPassword" = "tortuga"; "jetbrains.youtrack.overrideRootPassword" = "tortuga";
}; };
type = types.attrsOf types.string; type = types.attrsOf types.str;
}; };
package = mkOption { package = mkOption {
@ -73,7 +73,7 @@ in
description = '' description = ''
Where to keep the youtrack database. Where to keep the youtrack database.
''; '';
type = types.string; type = types.path;
default = "/var/lib/youtrack"; default = "/var/lib/youtrack";
}; };
@ -83,7 +83,7 @@ in
If null, do not setup anything. If null, do not setup anything.
''; '';
default = null; default = null;
type = types.nullOr types.string; type = types.nullOr types.str;
}; };
jvmOpts = mkOption { jvmOpts = mkOption {
@ -92,7 +92,7 @@ in
See https://www.jetbrains.com/help/youtrack/standalone/Configure-JVM-Options.html See https://www.jetbrains.com/help/youtrack/standalone/Configure-JVM-Options.html
for more information. for more information.
''; '';
type = types.string; type = types.separatedString " ";
example = "-XX:MetaspaceSize=250m"; example = "-XX:MetaspaceSize=250m";
default = ""; default = "";
}; };
@ -101,7 +101,7 @@ in
description = '' description = ''
Maximum Java heap size Maximum Java heap size
''; '';
type = types.string; type = types.str;
default = "1g"; default = "1g";
}; };
@ -109,7 +109,7 @@ in
description = '' description = ''
Maximum java Metaspace memory. Maximum java Metaspace memory.
''; '';
type = types.string; type = types.str;
default = "350m"; default = "350m";
}; };
}; };

View File

@ -33,7 +33,7 @@ with lib;
description = "port to listen on"; description = "port to listen on";
}; };
ip = mkOption { ip = mkOption {
type = types.string; type = types.str;
default = "*"; default = "*";
description = "Ip to listen on. 0.0.0.0 for ipv4 only, * for all."; description = "Ip to listen on. 0.0.0.0 for ipv4 only, * for all.";
}; };

Some files were not shown because too many files have changed in this diff Show More