Substitute "types.uniq types.string" -> "types.str"
This commit is contained in:
parent
162b874469
commit
862e3dd977
@ -265,7 +265,7 @@ in
|
|||||||
|
|
||||||
period = mkOption {
|
period = mkOption {
|
||||||
default = "15 02 * * *";
|
default = "15 02 * * *";
|
||||||
type = with types; uniq string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
This option defines (in the format used by cron) when the
|
This option defines (in the format used by cron) when the
|
||||||
locate database is updated.
|
locate database is updated.
|
||||||
|
@ -55,7 +55,7 @@ in
|
|||||||
description = "
|
description = "
|
||||||
The keyboard mapping table for the virtual consoles.
|
The keyboard mapping table for the virtual consoles.
|
||||||
";
|
";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -34,13 +34,13 @@ with utils;
|
|||||||
|
|
||||||
device = mkOption {
|
device = mkOption {
|
||||||
example = "/dev/sda3";
|
example = "/dev/sda3";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = "Path of the device.";
|
description = "Path of the device.";
|
||||||
};
|
};
|
||||||
|
|
||||||
label = mkOption {
|
label = mkOption {
|
||||||
example = "swap";
|
example = "swap";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Label of the device. Can be used instead of <varname>device</varname>.
|
Label of the device. Can be used instead of <varname>device</varname>.
|
||||||
'';
|
'';
|
||||||
|
@ -9,7 +9,7 @@ with pkgs.lib;
|
|||||||
|
|
||||||
timeZone = mkOption {
|
timeZone = mkOption {
|
||||||
default = "CET";
|
default = "CET";
|
||||||
type = with types; uniq string;
|
type = types.str;
|
||||||
example = "America/New_York";
|
example = "America/New_York";
|
||||||
description = "The time zone used when displaying times and dates.";
|
description = "The time zone used when displaying times and dates.";
|
||||||
};
|
};
|
||||||
|
@ -12,12 +12,12 @@ let
|
|||||||
options = {
|
options = {
|
||||||
|
|
||||||
name = mkOption {
|
name = mkOption {
|
||||||
type = with types; uniq string;
|
type = types.str;
|
||||||
description = "The name of the user account. If undefined, the name of the attribute set will be used.";
|
description = "The name of the user account. If undefined, the name of the attribute set will be used.";
|
||||||
};
|
};
|
||||||
|
|
||||||
description = mkOption {
|
description = mkOption {
|
||||||
type = with types; uniq string;
|
type = types.str;
|
||||||
default = "";
|
default = "";
|
||||||
description = "A short description of the user account.";
|
description = "A short description of the user account.";
|
||||||
};
|
};
|
||||||
@ -29,7 +29,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
group = mkOption {
|
group = mkOption {
|
||||||
type = with types; uniq string;
|
type = types.str;
|
||||||
default = "nogroup";
|
default = "nogroup";
|
||||||
description = "The user's primary group.";
|
description = "The user's primary group.";
|
||||||
};
|
};
|
||||||
@ -41,13 +41,13 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
home = mkOption {
|
home = mkOption {
|
||||||
type = with types; uniq string;
|
type = types.str;
|
||||||
default = "/var/empty";
|
default = "/var/empty";
|
||||||
description = "The user's home directory.";
|
description = "The user's home directory.";
|
||||||
};
|
};
|
||||||
|
|
||||||
shell = mkOption {
|
shell = mkOption {
|
||||||
type = with types; uniq string;
|
type = types.str;
|
||||||
default = "/run/current-system/sw/sbin/nologin";
|
default = "/run/current-system/sw/sbin/nologin";
|
||||||
description = "The path to the user's shell.";
|
description = "The path to the user's shell.";
|
||||||
};
|
};
|
||||||
@ -107,7 +107,7 @@ let
|
|||||||
options = {
|
options = {
|
||||||
|
|
||||||
name = mkOption {
|
name = mkOption {
|
||||||
type = with types; uniq string;
|
type = types.str;
|
||||||
description = "The name of the group. If undefined, the name of the attribute set will be used.";
|
description = "The name of the group. If undefined, the name of the attribute set will be used.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -8,31 +8,31 @@ with pkgs.lib;
|
|||||||
|
|
||||||
system.nixosVersion = mkOption {
|
system.nixosVersion = mkOption {
|
||||||
internal = true;
|
internal = true;
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = "NixOS version.";
|
description = "NixOS version.";
|
||||||
};
|
};
|
||||||
|
|
||||||
system.nixosVersionSuffix = mkOption {
|
system.nixosVersionSuffix = mkOption {
|
||||||
internal = true;
|
internal = true;
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = "NixOS version suffix.";
|
description = "NixOS version suffix.";
|
||||||
};
|
};
|
||||||
|
|
||||||
system.nixosRevision = mkOption {
|
system.nixosRevision = mkOption {
|
||||||
internal = true;
|
internal = true;
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = "NixOS Git revision hash.";
|
description = "NixOS Git revision hash.";
|
||||||
};
|
};
|
||||||
|
|
||||||
system.nixosCodeName = mkOption {
|
system.nixosCodeName = mkOption {
|
||||||
internal = true;
|
internal = true;
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = "NixOS release code name.";
|
description = "NixOS release code name.";
|
||||||
};
|
};
|
||||||
|
|
||||||
system.defaultChannel = mkOption {
|
system.defaultChannel = mkOption {
|
||||||
internal = true;
|
internal = true;
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
default = https://nixos.org/channels/nixos-unstable;
|
default = https://nixos.org/channels/nixos-unstable;
|
||||||
description = "Default NixOS channel to which the root user is subscribed.";
|
description = "Default NixOS channel to which the root user is subscribed.";
|
||||||
};
|
};
|
||||||
|
@ -13,7 +13,7 @@ let
|
|||||||
|
|
||||||
name = mkOption {
|
name = mkOption {
|
||||||
example = "sshd";
|
example = "sshd";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = "Name of the PAM service.";
|
description = "Name of the PAM service.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ with pkgs.lib;
|
|||||||
|
|
||||||
name = mkOption {
|
name = mkOption {
|
||||||
example = "Media Center";
|
example = "Media Center";
|
||||||
type = with types; uniq string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Enables Fuppes (UPnP A/V Media Server). Can be used to watch
|
Enables Fuppes (UPnP A/V Media Server). Can be used to watch
|
||||||
photos, video and listen to music from a phone/tv connected to the
|
photos, video and listen to music from a phone/tv connected to the
|
||||||
@ -41,7 +41,7 @@ with pkgs.lib;
|
|||||||
|
|
||||||
file = mkOption {
|
file = mkOption {
|
||||||
default = "/var/log/fuppes.log";
|
default = "/var/log/fuppes.log";
|
||||||
type = with types; uniq string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
File which will contains the log produced by the daemon.
|
File which will contains the log produced by the daemon.
|
||||||
'';
|
'';
|
||||||
@ -50,7 +50,7 @@ with pkgs.lib;
|
|||||||
|
|
||||||
config = mkOption {
|
config = mkOption {
|
||||||
example = "/etc/fuppes/fuppes.cfg";
|
example = "/etc/fuppes/fuppes.cfg";
|
||||||
type = with types; uniq string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Mutable configuration file which can be edited with the web
|
Mutable configuration file which can be edited with the web
|
||||||
interface. Due to possible modification, double quote the full
|
interface. Due to possible modification, double quote the full
|
||||||
@ -69,7 +69,7 @@ with pkgs.lib;
|
|||||||
|
|
||||||
database = mkOption {
|
database = mkOption {
|
||||||
default = "/var/lib/fuppes/fuppes.db";
|
default = "/var/lib/fuppes/fuppes.db";
|
||||||
type = with types; uniq string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Database file which index all shared files.
|
Database file which index all shared files.
|
||||||
'';
|
'';
|
||||||
@ -88,7 +88,7 @@ with pkgs.lib;
|
|||||||
user = mkOption {
|
user = mkOption {
|
||||||
default = "root"; # The default is not secure.
|
default = "root"; # The default is not secure.
|
||||||
example = "fuppes";
|
example = "fuppes";
|
||||||
type = with types; uniq string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Name of the user which own the configuration files and under which
|
Name of the user which own the configuration files and under which
|
||||||
the fuppes daemon will be executed.
|
the fuppes daemon will be executed.
|
||||||
|
@ -52,7 +52,7 @@ let
|
|||||||
|
|
||||||
levelOption = mkOption {
|
levelOption = mkOption {
|
||||||
default = "server";
|
default = "server";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Set the logcheck level. Either "workstation", "server", or "paranoid".
|
Set the logcheck level. Either "workstation", "server", or "paranoid".
|
||||||
'';
|
'';
|
||||||
@ -63,7 +63,7 @@ let
|
|||||||
|
|
||||||
regex = mkOption {
|
regex = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Regex specifying which log lines to ignore.
|
Regex specifying which log lines to ignore.
|
||||||
'';
|
'';
|
||||||
@ -73,7 +73,7 @@ let
|
|||||||
ignoreCronOptions = {
|
ignoreCronOptions = {
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
default = "root";
|
default = "root";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
User that runs the cronjob.
|
User that runs the cronjob.
|
||||||
'';
|
'';
|
||||||
@ -81,7 +81,7 @@ let
|
|||||||
|
|
||||||
cmdline = mkOption {
|
cmdline = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Command line for the cron job. Will be turned into a regex for the logcheck ignore rule.
|
Command line for the cron job. Will be turned into a regex for the logcheck ignore rule.
|
||||||
'';
|
'';
|
||||||
@ -89,7 +89,7 @@ let
|
|||||||
|
|
||||||
timeArgs = mkOption {
|
timeArgs = mkOption {
|
||||||
default = null;
|
default = null;
|
||||||
type = types.nullOr (types.uniq types.string);
|
type = types.nullOr (types.str);
|
||||||
example = "02 06 * * *";
|
example = "02 06 * * *";
|
||||||
description = ''
|
description = ''
|
||||||
"min hr dom mon dow" crontab time args, to auto-create a cronjob too.
|
"min hr dom mon dow" crontab time args, to auto-create a cronjob too.
|
||||||
@ -112,7 +112,7 @@ in
|
|||||||
|
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
default = "logcheck";
|
default = "logcheck";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Username for the logcheck user.
|
Username for the logcheck user.
|
||||||
'';
|
'';
|
||||||
@ -121,7 +121,7 @@ in
|
|||||||
timeOfDay = mkOption {
|
timeOfDay = mkOption {
|
||||||
default = "*";
|
default = "*";
|
||||||
example = "6";
|
example = "6";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Time of day to run logcheck. A logcheck will be scheduled at xx:02 each day.
|
Time of day to run logcheck. A logcheck will be scheduled at xx:02 each day.
|
||||||
Leave default (*) to run every hour. Of course when nothing special was logged,
|
Leave default (*) to run every hour. Of course when nothing special was logged,
|
||||||
@ -132,7 +132,7 @@ in
|
|||||||
mailTo = mkOption {
|
mailTo = mkOption {
|
||||||
default = "root";
|
default = "root";
|
||||||
example = "you@domain.com";
|
example = "you@domain.com";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Email address to send reports to.
|
Email address to send reports to.
|
||||||
'';
|
'';
|
||||||
@ -140,7 +140,7 @@ in
|
|||||||
|
|
||||||
level = mkOption {
|
level = mkOption {
|
||||||
default = "server";
|
default = "server";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Set the logcheck level. Either "workstation", "server", or "paranoid".
|
Set the logcheck level. Either "workstation", "server", or "paranoid".
|
||||||
'';
|
'';
|
||||||
|
@ -46,7 +46,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
tty = mkOption {
|
tty = mkOption {
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
default = "tty10";
|
default = "tty10";
|
||||||
description = ''
|
description = ''
|
||||||
The tty device on which syslogd will print important log
|
The tty device on which syslogd will print important log
|
||||||
|
@ -35,7 +35,7 @@ in
|
|||||||
|
|
||||||
bind = mkOption {
|
bind = mkOption {
|
||||||
default = "0.0.0.0";
|
default = "0.0.0.0";
|
||||||
type = with types; uniq string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Bind over an IPv4 address instead of any.
|
Bind over an IPv4 address instead of any.
|
||||||
'';
|
'';
|
||||||
@ -44,7 +44,7 @@ in
|
|||||||
logFile = mkOption {
|
logFile = mkOption {
|
||||||
default = "/var/log/freepopsd";
|
default = "/var/log/freepopsd";
|
||||||
example = "syslog";
|
example = "syslog";
|
||||||
type = with types; uniq string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Filename of the log file or syslog to rely on the logging daemon.
|
Filename of the log file or syslog to rely on the logging daemon.
|
||||||
'';
|
'';
|
||||||
@ -53,7 +53,7 @@ in
|
|||||||
suid = {
|
suid = {
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
default = "nobody";
|
default = "nobody";
|
||||||
type = with types; uniq string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
User name under which freepopsd will be after binding the port.
|
User name under which freepopsd will be after binding the port.
|
||||||
'';
|
'';
|
||||||
@ -61,7 +61,7 @@ in
|
|||||||
|
|
||||||
group = mkOption {
|
group = mkOption {
|
||||||
default = "nogroup";
|
default = "nogroup";
|
||||||
type = with types; uniq string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Group under which freepopsd will be after binding the port.
|
Group under which freepopsd will be after binding the port.
|
||||||
'';
|
'';
|
||||||
|
@ -22,7 +22,7 @@ in
|
|||||||
|
|
||||||
dates = mkOption {
|
dates = mkOption {
|
||||||
default = "03:15";
|
default = "03:15";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Specification (in the format described by
|
Specification (in the format described by
|
||||||
<citerefentry><refentrytitle>systemd.time</refentrytitle>
|
<citerefentry><refentrytitle>systemd.time</refentrytitle>
|
||||||
@ -34,7 +34,7 @@ in
|
|||||||
options = mkOption {
|
options = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "--max-freed $((64 * 1024**3))";
|
example = "--max-freed $((64 * 1024**3))";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Options given to <filename>nix-collect-garbage</filename> when the
|
Options given to <filename>nix-collect-garbage</filename> when the
|
||||||
garbage collector is run automatically.
|
garbage collector is run automatically.
|
||||||
|
@ -26,7 +26,7 @@ in {
|
|||||||
|
|
||||||
example = "ae0aa6a8f08efa988ba0a17578f009ab";
|
example = "ae0aa6a8f08efa988ba0a17578f009ab";
|
||||||
|
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
hostname = mkOption {
|
hostname = mkOption {
|
||||||
|
@ -32,13 +32,13 @@ in {
|
|||||||
host = mkOption {
|
host = mkOption {
|
||||||
description = "Graphite web frontend listen address";
|
description = "Graphite web frontend listen address";
|
||||||
default = "127.0.0.1";
|
default = "127.0.0.1";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
description = "Graphite web frontend port";
|
description = "Graphite web frontend port";
|
||||||
default = "8080";
|
default = "8080";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ in {
|
|||||||
LOG_UPDATES = False
|
LOG_UPDATES = False
|
||||||
LOG_CACHE_HITS = False
|
LOG_CACHE_HITS = False
|
||||||
'';
|
'';
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
enableCache = mkOption {
|
enableCache = mkOption {
|
||||||
|
@ -36,7 +36,7 @@ in
|
|||||||
host = mkOption {
|
host = mkOption {
|
||||||
description = "Address that statsd listens on over UDP";
|
description = "Address that statsd listens on over UDP";
|
||||||
default = "127.0.0.1";
|
default = "127.0.0.1";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
@ -48,7 +48,7 @@ in
|
|||||||
mgmt_address = mkOption {
|
mgmt_address = mkOption {
|
||||||
description = "Address to run managment TCP interface on";
|
description = "Address to run managment TCP interface on";
|
||||||
default = "127.0.0.1";
|
default = "127.0.0.1";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
mgmt_port = mkOption {
|
mgmt_port = mkOption {
|
||||||
@ -65,7 +65,7 @@ in
|
|||||||
graphiteHost = mkOption {
|
graphiteHost = mkOption {
|
||||||
description = "Hostname or IP of Graphite server";
|
description = "Hostname or IP of Graphite server";
|
||||||
default = "127.0.0.1";
|
default = "127.0.0.1";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
graphitePort = mkOption {
|
graphitePort = mkOption {
|
||||||
@ -77,7 +77,7 @@ in
|
|||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
description = "Extra configuration options for statsd";
|
description = "Extra configuration options for statsd";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -15,7 +15,7 @@ let
|
|||||||
# This can be infered from the UPS model by looking at
|
# This can be infered from the UPS model by looking at
|
||||||
# /nix/store/nut/share/driver.list
|
# /nix/store/nut/share/driver.list
|
||||||
driver = mkOption {
|
driver = mkOption {
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Specify the program to run to talk to this UPS. apcsmart,
|
Specify the program to run to talk to this UPS. apcsmart,
|
||||||
bestups, and sec are some examples.
|
bestups, and sec are some examples.
|
||||||
@ -23,7 +23,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
The serial port to which your UPS is connected. /dev/ttyS0 is
|
The serial port to which your UPS is connected. /dev/ttyS0 is
|
||||||
usually the first port on Linux boxes, for example.
|
usually the first port on Linux boxes, for example.
|
||||||
@ -115,7 +115,7 @@ in
|
|||||||
# This option is not used yet.
|
# This option is not used yet.
|
||||||
mode = mkOption {
|
mode = mkOption {
|
||||||
default = "standalone";
|
default = "standalone";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
The MODE determines which part of the NUT is to be started, and
|
The MODE determines which part of the NUT is to be started, and
|
||||||
which configuration files must be modified.
|
which configuration files must be modified.
|
||||||
@ -142,7 +142,7 @@ in
|
|||||||
|
|
||||||
schedulerRules = mkOption {
|
schedulerRules = mkOption {
|
||||||
example = "/etc/nixos/upssched.conf";
|
example = "/etc/nixos/upssched.conf";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
File which contains the rules to handle UPS events.
|
File which contains the rules to handle UPS events.
|
||||||
'';
|
'';
|
||||||
|
@ -50,7 +50,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
hostName = mkOption {
|
hostName = mkOption {
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''Host name advertised on the LAN.'';
|
description = ''Host name advertised on the LAN.'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
netbios_hostname = mkOption {
|
netbios_hostname = mkOption {
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
The hostname of your machine.
|
The hostname of your machine.
|
||||||
'';
|
'';
|
||||||
|
@ -32,21 +32,21 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
ip = mkOption {
|
ip = mkOption {
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
default = "";
|
default = "";
|
||||||
description = "Assigned ip address or ip range";
|
description = "Assigned ip address or ip range";
|
||||||
example = "172.16.10.1/24";
|
example = "172.16.10.1/24";
|
||||||
};
|
};
|
||||||
|
|
||||||
domain = mkOption {
|
domain = mkOption {
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
default = "";
|
default = "";
|
||||||
description = "Domain or subdomain of which nameservers point to us";
|
description = "Domain or subdomain of which nameservers point to us";
|
||||||
example = "tunnel.mydomain.com";
|
example = "tunnel.mydomain.com";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
default = "";
|
default = "";
|
||||||
description = "Additional command line parameters";
|
description = "Additional command line parameters";
|
||||||
example = "-P mysecurepassword -l 192.168.1.10 -p 23";
|
example = "-P mysecurepassword -l 192.168.1.10 -p 23";
|
||||||
|
@ -53,7 +53,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
driver = mkOption {
|
driver = mkOption {
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
default = "nl80211,wext";
|
default = "nl80211,wext";
|
||||||
description = "Force a specific wpa_supplicant driver.";
|
description = "Force a specific wpa_supplicant driver.";
|
||||||
};
|
};
|
||||||
@ -74,7 +74,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
group = mkOption {
|
group = mkOption {
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
default = "wheel";
|
default = "wheel";
|
||||||
example = "network";
|
example = "network";
|
||||||
description = "Members of this group can control wpa_supplicant.";
|
description = "Members of this group can control wpa_supplicant.";
|
||||||
|
@ -29,31 +29,31 @@ in {
|
|||||||
host = mkOption {
|
host = mkOption {
|
||||||
description = "Elasticsearch listen address";
|
description = "Elasticsearch listen address";
|
||||||
default = "127.0.0.1";
|
default = "127.0.0.1";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
description = "Elasticsearch port to listen for HTTP traffic";
|
description = "Elasticsearch port to listen for HTTP traffic";
|
||||||
default = "9200";
|
default = "9200";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
tcp_port = mkOption {
|
tcp_port = mkOption {
|
||||||
description = "Elasticsearch port for the node to node communication";
|
description = "Elasticsearch port for the node to node communication";
|
||||||
default = "9300";
|
default = "9300";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
cluster_name = mkOption {
|
cluster_name = mkOption {
|
||||||
description = "Elasticsearch name that identifies your cluster for auto-discovery";
|
description = "Elasticsearch name that identifies your cluster for auto-discovery";
|
||||||
default = "elasticsearch";
|
default = "elasticsearch";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConf = mkOption {
|
extraConf = mkOption {
|
||||||
description = "Extra configuration for elasticsearch";
|
description = "Extra configuration for elasticsearch";
|
||||||
default = "";
|
default = "";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
example = ''
|
example = ''
|
||||||
node.name: "elasticsearch"
|
node.name: "elasticsearch"
|
||||||
node.master: true
|
node.master: true
|
||||||
@ -77,7 +77,7 @@ in {
|
|||||||
type: consolePattern
|
type: consolePattern
|
||||||
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
|
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
|
||||||
'';
|
'';
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ in
|
|||||||
|
|
||||||
document-root = mkOption {
|
document-root = mkOption {
|
||||||
default = "/srv/www";
|
default = "/srv/www";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Document-root of the web server. Must be readable by the "lighttpd" user.
|
Document-root of the web server. Must be readable by the "lighttpd" user.
|
||||||
'';
|
'';
|
||||||
|
@ -25,7 +25,7 @@ in
|
|||||||
|
|
||||||
projectroot = mkOption {
|
projectroot = mkOption {
|
||||||
default = "/srv/git";
|
default = "/srv/git";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Path to git projects (bare repositories) that should be served by
|
Path to git projects (bare repositories) that should be served by
|
||||||
gitweb. Must not end with a slash.
|
gitweb. Must not end with a slash.
|
||||||
@ -34,7 +34,7 @@ in
|
|||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Verbatim configuration text appended to the generated gitweb.conf file.
|
Verbatim configuration text appended to the generated gitweb.conf file.
|
||||||
'';
|
'';
|
||||||
|
@ -50,7 +50,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
default = mkOption {
|
default = mkOption {
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
default = "";
|
default = "";
|
||||||
example = "none";
|
example = "none";
|
||||||
description = "Default desktop manager loaded if none have been chosen.";
|
description = "Default desktop manager loaded if none have been chosen.";
|
||||||
|
@ -249,7 +249,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
execCmd = mkOption {
|
execCmd = mkOption {
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
example = "${pkgs.slim}/bin/slim";
|
example = "${pkgs.slim}/bin/slim";
|
||||||
description = "Command to start the display manager.";
|
description = "Command to start the display manager.";
|
||||||
};
|
};
|
||||||
|
@ -40,7 +40,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
default = mkOption {
|
default = mkOption {
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
default = "none";
|
default = "none";
|
||||||
example = "wmii";
|
example = "wmii";
|
||||||
description = "Default window manager loaded if none have been chosen.";
|
description = "Default window manager loaded if none have been chosen.";
|
||||||
|
@ -155,7 +155,7 @@ in
|
|||||||
system.boot.loader.kernelFile = mkOption {
|
system.boot.loader.kernelFile = mkOption {
|
||||||
internal = true;
|
internal = true;
|
||||||
default = pkgs.stdenv.platform.kernelTarget;
|
default = pkgs.stdenv.platform.kernelTarget;
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Name of the kernel file to be passed to the bootloader.
|
Name of the kernel file to be passed to the bootloader.
|
||||||
'';
|
'';
|
||||||
|
@ -65,7 +65,7 @@ in
|
|||||||
device = mkOption {
|
device = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "/dev/hda";
|
example = "/dev/hda";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
The device on which the GRUB boot loader will be installed.
|
The device on which the GRUB boot loader will be installed.
|
||||||
The special value <literal>nodev</literal> means that a GRUB
|
The special value <literal>nodev</literal> means that a GRUB
|
||||||
@ -89,7 +89,7 @@ in
|
|||||||
configurationName = mkOption {
|
configurationName = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "Stable 2.6.21";
|
example = "Stable 2.6.21";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
GRUB entry name instead of default.
|
GRUB entry name instead of default.
|
||||||
'';
|
'';
|
||||||
|
@ -52,7 +52,7 @@ in
|
|||||||
devSize = mkOption {
|
devSize = mkOption {
|
||||||
default = "5%";
|
default = "5%";
|
||||||
example = "32m";
|
example = "32m";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Size limit for the /dev tmpfs. Look at mount(8), tmpfs size option,
|
Size limit for the /dev tmpfs. Look at mount(8), tmpfs size option,
|
||||||
for the accepted syntax.
|
for the accepted syntax.
|
||||||
@ -62,7 +62,7 @@ in
|
|||||||
devShmSize = mkOption {
|
devShmSize = mkOption {
|
||||||
default = "50%";
|
default = "50%";
|
||||||
example = "256m";
|
example = "256m";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Size limit for the /dev/shm tmpfs. Look at mount(8), tmpfs size option,
|
Size limit for the /dev/shm tmpfs. Look at mount(8), tmpfs size option,
|
||||||
for the accepted syntax.
|
for the accepted syntax.
|
||||||
@ -72,7 +72,7 @@ in
|
|||||||
runSize = mkOption {
|
runSize = mkOption {
|
||||||
default = "25%";
|
default = "25%";
|
||||||
example = "256m";
|
example = "256m";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Size limit for the /run tmpfs. Look at mount(8), tmpfs size option,
|
Size limit for the /run tmpfs. Look at mount(8), tmpfs size option,
|
||||||
for the accepted syntax.
|
for the accepted syntax.
|
||||||
|
@ -19,7 +19,7 @@ rec {
|
|||||||
|
|
||||||
description = mkOption {
|
description = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = "Description of this unit used in systemd messages and progress indicators.";
|
description = "Description of this unit used in systemd messages and progress indicators.";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -167,13 +167,13 @@ rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
script = mkOption {
|
script = mkOption {
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
default = "";
|
default = "";
|
||||||
description = "Shell commands executed as the service's main process.";
|
description = "Shell commands executed as the service's main process.";
|
||||||
};
|
};
|
||||||
|
|
||||||
scriptArgs = mkOption {
|
scriptArgs = mkOption {
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
default = "";
|
default = "";
|
||||||
description = "Arguments passed to the main process script.";
|
description = "Arguments passed to the main process script.";
|
||||||
};
|
};
|
||||||
@ -230,7 +230,7 @@ rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
startAt = mkOption {
|
startAt = mkOption {
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
default = "";
|
default = "";
|
||||||
example = "Sun 14:00:00";
|
example = "Sun 14:00:00";
|
||||||
description = ''
|
description = ''
|
||||||
@ -296,13 +296,13 @@ rec {
|
|||||||
|
|
||||||
what = mkOption {
|
what = mkOption {
|
||||||
example = "/dev/sda1";
|
example = "/dev/sda1";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = "Absolute path of device node, file or other resource. (Mandatory)";
|
description = "Absolute path of device node, file or other resource. (Mandatory)";
|
||||||
};
|
};
|
||||||
|
|
||||||
where = mkOption {
|
where = mkOption {
|
||||||
example = "/mnt";
|
example = "/mnt";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Absolute path of a directory of the mount point.
|
Absolute path of a directory of the mount point.
|
||||||
Will be created if it doesn't exist. (Mandatory)
|
Will be created if it doesn't exist. (Mandatory)
|
||||||
@ -312,7 +312,7 @@ rec {
|
|||||||
type = mkOption {
|
type = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "ext4";
|
example = "ext4";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = "File system type.";
|
description = "File system type.";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -340,7 +340,7 @@ rec {
|
|||||||
|
|
||||||
where = mkOption {
|
where = mkOption {
|
||||||
example = "/mnt";
|
example = "/mnt";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Absolute path of a directory of the mount point.
|
Absolute path of a directory of the mount point.
|
||||||
Will be created if it doesn't exist. (Mandatory)
|
Will be created if it doesn't exist. (Mandatory)
|
||||||
|
@ -389,7 +389,7 @@ in
|
|||||||
type = types.attrsOf types.optionSet;
|
type = types.attrsOf types.optionSet;
|
||||||
options = {
|
options = {
|
||||||
text = mkOption {
|
text = mkOption {
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = "Text of this systemd unit.";
|
description = "Text of this systemd unit.";
|
||||||
};
|
};
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
@ -473,7 +473,7 @@ in
|
|||||||
|
|
||||||
systemd.defaultUnit = mkOption {
|
systemd.defaultUnit = mkOption {
|
||||||
default = "multi-user.target";
|
default = "multi-user.target";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = "Default unit started when the system boots.";
|
description = "Default unit started when the system boots.";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -488,13 +488,13 @@ in
|
|||||||
|
|
||||||
services.journald.console = mkOption {
|
services.journald.console = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = "If non-empty, write log messages to the specified TTY device.";
|
description = "If non-empty, write log messages to the specified TTY device.";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.journald.rateLimitInterval = mkOption {
|
services.journald.rateLimitInterval = mkOption {
|
||||||
default = "10s";
|
default = "10s";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Configures the rate limiting interval that is applied to all
|
Configures the rate limiting interval that is applied to all
|
||||||
messages generated on the system. This rate limiting is applied
|
messages generated on the system. This rate limiting is applied
|
||||||
@ -518,7 +518,7 @@ in
|
|||||||
|
|
||||||
services.logind.extraConfig = mkOption {
|
services.logind.extraConfig = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
example = "HandleLidSwitch=ignore";
|
example = "HandleLidSwitch=ignore";
|
||||||
description = ''
|
description = ''
|
||||||
Extra config options for systemd-logind. See man logind.conf for
|
Extra config options for systemd-logind. See man logind.conf for
|
||||||
|
@ -10,7 +10,7 @@ with pkgs.lib;
|
|||||||
powerManagement.cpuFreqGovernor = mkOption {
|
powerManagement.cpuFreqGovernor = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "ondemand";
|
example = "ondemand";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Configure the governor used to regulate the frequence of the
|
Configure the governor used to regulate the frequence of the
|
||||||
available CPUs. By default, the kernel configures the
|
available CPUs. By default, the kernel configures the
|
||||||
|
@ -15,7 +15,7 @@ let
|
|||||||
|
|
||||||
mountPoint = mkOption {
|
mountPoint = mkOption {
|
||||||
example = "/mnt/usb";
|
example = "/mnt/usb";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = "Location of the mounted the file system.";
|
description = "Location of the mounted the file system.";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ let
|
|||||||
fsType = mkOption {
|
fsType = mkOption {
|
||||||
default = "auto";
|
default = "auto";
|
||||||
example = "ext3";
|
example = "ext3";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = "Type of the file system.";
|
description = "Type of the file system.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -14,14 +14,14 @@ let
|
|||||||
|
|
||||||
name = mkOption {
|
name = mkOption {
|
||||||
example = "eth0";
|
example = "eth0";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = "Name of the interface.";
|
description = "Name of the interface.";
|
||||||
};
|
};
|
||||||
|
|
||||||
ipAddress = mkOption {
|
ipAddress = mkOption {
|
||||||
default = null;
|
default = null;
|
||||||
example = "10.0.0.1";
|
example = "10.0.0.1";
|
||||||
type = types.nullOr (types.uniq types.string);
|
type = types.nullOr (types.str);
|
||||||
description = ''
|
description = ''
|
||||||
IP address of the interface. Leave empty to configure the
|
IP address of the interface. Leave empty to configure the
|
||||||
interface using DHCP.
|
interface using DHCP.
|
||||||
@ -41,7 +41,7 @@ let
|
|||||||
subnetMask = mkOption {
|
subnetMask = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "255.255.255.0";
|
example = "255.255.255.0";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Subnet mask of the interface, specified as a bitmask.
|
Subnet mask of the interface, specified as a bitmask.
|
||||||
This is deprecated; use <option>prefixLength</option>
|
This is deprecated; use <option>prefixLength</option>
|
||||||
@ -52,7 +52,7 @@ let
|
|||||||
macAddress = mkOption {
|
macAddress = mkOption {
|
||||||
default = null;
|
default = null;
|
||||||
example = "00:11:22:33:44:55";
|
example = "00:11:22:33:44:55";
|
||||||
type = types.nullOr (types.uniq types.string);
|
type = types.nullOr (types.str);
|
||||||
description = ''
|
description = ''
|
||||||
MAC address of the interface. Leave empty to use the default.
|
MAC address of the interface. Leave empty to use the default.
|
||||||
'';
|
'';
|
||||||
@ -72,7 +72,7 @@ let
|
|||||||
|
|
||||||
virtualOwner = mkOption {
|
virtualOwner = mkOption {
|
||||||
default = "root";
|
default = "root";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
In case of a virtual device, the user who owns it.
|
In case of a virtual device, the user who owns it.
|
||||||
'';
|
'';
|
||||||
|
@ -10,7 +10,7 @@ with pkgs.lib;
|
|||||||
powerManagement.scsiLinkPolicy = mkOption {
|
powerManagement.scsiLinkPolicy = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "min_power";
|
example = "min_power";
|
||||||
type = types.uniq types.string;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Configure the SCSI link power management policy. By default,
|
Configure the SCSI link power management policy. By default,
|
||||||
the kernel configures "max_performance".
|
the kernel configures "max_performance".
|
||||||
|
Loading…
Reference in New Issue
Block a user