2008-12-04 16:48:27 +01:00
|
|
|
{pkgs, config, ...}:
|
2008-08-08 20:56:58 +02:00
|
|
|
|
|
|
|
let
|
2009-01-25 16:49:12 +01:00
|
|
|
inherit (pkgs.lib) mkOption mergeOneOption;
|
2008-08-08 20:56:58 +02:00
|
|
|
in
|
2007-01-08 23:41:41 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
{
|
2006-12-11 17:10:23 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
time = {
|
2006-12-11 18:36:57 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
timeZone = mkOption {
|
|
|
|
default = "CET";
|
|
|
|
example = "America/New_York";
|
|
|
|
description = "The time zone used when displaying times and dates.";
|
|
|
|
};
|
2006-12-11 18:36:57 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2006-12-23 00:34:42 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
|
|
|
|
boot = {
|
|
|
|
|
2008-01-24 17:56:09 +01:00
|
|
|
isLiveCD = mkOption {
|
2007-11-09 19:12:23 +01:00
|
|
|
default = false;
|
|
|
|
description = "
|
2008-01-24 17:56:09 +01:00
|
|
|
If set to true, the root device will be mounted read-only and
|
|
|
|
a ramdisk will be mounted on top of it using unionfs to
|
|
|
|
provide a writable root. This is used for the NixOS
|
|
|
|
Live-CD/DVD.
|
2007-11-09 19:12:23 +01:00
|
|
|
";
|
|
|
|
};
|
2006-12-19 23:12:44 +01:00
|
|
|
|
2008-03-24 20:37:32 +01:00
|
|
|
resumeDevice = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "0:0";
|
|
|
|
description = "
|
|
|
|
Device for manual resume attempt during boot. Looks like
|
2009-02-22 17:08:41 +01:00
|
|
|
major:minor. ls -l /dev/SWAP_PARTION shows them.
|
2008-03-24 20:37:32 +01:00
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
hardwareScan = mkOption {
|
|
|
|
default = true;
|
|
|
|
description = "
|
|
|
|
Whether to try to load kernel modules for all detected hardware.
|
|
|
|
Usually this does a good job of providing you with the modules
|
|
|
|
you need, but sometimes it can crash the system or cause other
|
|
|
|
nasty effects. If the hardware scan is turned on, it can be
|
|
|
|
disabled at boot time by adding the <literal>safemode</literal>
|
|
|
|
parameter to the kernel command line.
|
|
|
|
";
|
|
|
|
};
|
2007-01-22 19:58:04 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
initrd = {
|
|
|
|
|
2008-03-24 20:37:32 +01:00
|
|
|
allowMissing = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''
|
|
|
|
Allow some initrd components to be missing. Useful for
|
|
|
|
custom kernel that are changed too often to track needed
|
|
|
|
kernelModules.
|
|
|
|
'';
|
2008-03-24 20:37:32 +01:00
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
lvm = mkOption {
|
2008-05-09 12:08:21 +02:00
|
|
|
default = true;
|
2007-11-09 19:12:23 +01:00
|
|
|
description = "
|
|
|
|
Whether to include lvm in the initial ramdisk. You should use this option
|
|
|
|
if your ROOT device is on lvm volume.
|
|
|
|
";
|
|
|
|
};
|
2007-03-06 01:45:33 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
enableSplashScreen = mkOption {
|
|
|
|
default = true;
|
|
|
|
description = "
|
|
|
|
Whether to show a nice splash screen while booting.
|
|
|
|
";
|
|
|
|
};
|
2007-06-15 13:40:57 +02:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
copyKernels = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether the Grub menu builder should copy kernels and initial
|
|
|
|
ramdisks to /boot. This is necessary when /nix is on a
|
|
|
|
different file system than /boot.
|
|
|
|
";
|
|
|
|
};
|
2007-06-15 13:40:57 +02:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
localCommands = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "text=anything; echo You can put $text here.";
|
|
|
|
description = "
|
|
|
|
Shell commands to be executed just before Upstart is started.
|
|
|
|
";
|
|
|
|
};
|
2007-03-04 00:20:08 +01:00
|
|
|
|
2008-01-04 17:11:12 +01:00
|
|
|
extraTTYs = mkOption {
|
|
|
|
default = [];
|
|
|
|
example = [8 9];
|
|
|
|
description = "
|
|
|
|
Tty (virtual console) devices, in addition to the consoles on
|
|
|
|
which mingetty and syslogd run, that must be initialised.
|
|
|
|
Only useful if you have some program that you want to run on
|
|
|
|
some fixed console. For example, the NixOS installation CD
|
|
|
|
opens the manual in a web browser on console 7, so it sets
|
|
|
|
<option>boot.extraTTYs</option> to <literal>[7]</literal>.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2006-11-27 16:07:46 +01:00
|
|
|
|
2008-11-18 19:00:09 +01:00
|
|
|
system = {
|
|
|
|
# NSS modules. Hacky!
|
|
|
|
nssModules = mkOption {
|
|
|
|
internal = true;
|
|
|
|
default = [];
|
|
|
|
description = "
|
|
|
|
Search path for NSS (Name Service Switch) modules. This allows
|
|
|
|
several DNS resolution methods to be specified via
|
|
|
|
<filename>/etc/nsswitch.conf</filename>.
|
|
|
|
";
|
|
|
|
merge = pkgs.lib.mergeListOption;
|
|
|
|
apply = list:
|
|
|
|
let
|
|
|
|
list2 =
|
|
|
|
list
|
2008-11-23 02:28:58 +01:00
|
|
|
++ pkgs.lib.optional config.users.ldap.enable pkgs.nss_ldap;
|
2008-11-18 19:00:09 +01:00
|
|
|
in {
|
|
|
|
list = list2;
|
|
|
|
path = pkgs.lib.makeLibraryPath list2;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
modulesTree = mkOption {
|
|
|
|
internal = true;
|
|
|
|
default = [];
|
|
|
|
description = "
|
|
|
|
Tree of kernel modules. This includes the kernel, plus modules
|
|
|
|
built outside of the kernel. Combine these into a single tree of
|
|
|
|
symlinks because modprobe only supports one directory.
|
|
|
|
";
|
|
|
|
merge = pkgs.lib.mergeListOption;
|
|
|
|
|
|
|
|
# Convert the list of path to only one path.
|
2009-01-25 16:48:48 +01:00
|
|
|
apply = pkgs.aggregateModules;
|
2008-11-18 19:00:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
sbin = {
|
|
|
|
modprobe = mkOption {
|
|
|
|
# should be moved in module-init-tools
|
|
|
|
internal = true;
|
|
|
|
default = pkgs.substituteAll {
|
|
|
|
dir = "sbin";
|
|
|
|
src = ./modprobe;
|
|
|
|
isExecutable = true;
|
|
|
|
inherit (pkgs) module_init_tools;
|
|
|
|
inherit (config.system) modulesTree;
|
|
|
|
};
|
|
|
|
description = "
|
|
|
|
Path to the modprobe binary used by the system.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
mount = mkOption {
|
|
|
|
internal = true;
|
|
|
|
default = pkgs.utillinux.passthru.function {
|
|
|
|
buildMountOnly = true;
|
|
|
|
mountHelpers = pkgs.buildEnv {
|
|
|
|
name = "mount-helpers";
|
|
|
|
paths = [
|
|
|
|
pkgs.ntfs3g
|
|
|
|
pkgs.mount_cifs
|
|
|
|
];
|
|
|
|
pathsToLink = "/sbin";
|
|
|
|
} + "/sbin";
|
|
|
|
};
|
|
|
|
description = "
|
|
|
|
Install a special version of mount to search mount tools in
|
|
|
|
unusual path.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2006-11-27 16:07:46 +01:00
|
|
|
|
2008-02-04 11:52:58 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
networking = {
|
2007-02-12 17:00:55 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
hostName = mkOption {
|
|
|
|
default = "nixos";
|
2007-12-04 16:02:48 +01:00
|
|
|
description = "
|
|
|
|
The name of the machine. Leave it empty if you want to obtain
|
|
|
|
it from a DHCP server (if using DHCP).
|
|
|
|
";
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2007-02-12 17:00:55 +01:00
|
|
|
|
2008-06-30 17:13:02 +02:00
|
|
|
nativeIPv6 = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to use IPv6 even though gw6c is not used. For example,
|
2008-07-23 16:13:27 +02:00
|
|
|
for Postfix.
|
2008-06-30 17:13:02 +02:00
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
extraHosts = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "192.168.0.1 lanlocalhost";
|
2008-08-09 14:03:08 +02:00
|
|
|
description = ''
|
|
|
|
Additional entries to be appended to <filename>/etc/hosts</filename>.
|
|
|
|
'';
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2007-03-04 00:20:08 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
defaultGateway = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "131.211.84.1";
|
|
|
|
description = "
|
|
|
|
The default gateway. It can be left empty if it is auto-detected through DHCP.
|
|
|
|
";
|
|
|
|
};
|
2007-08-14 18:43:56 +02:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
nameservers = mkOption {
|
|
|
|
default = [];
|
|
|
|
example = ["130.161.158.4" "130.161.33.17"];
|
|
|
|
description = "
|
|
|
|
The list of nameservers. It can be left empty if it is auto-detected through DHCP.
|
|
|
|
";
|
|
|
|
};
|
2007-08-14 18:43:56 +02:00
|
|
|
|
2007-11-23 18:12:37 +01:00
|
|
|
domain = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "home";
|
|
|
|
description = "
|
|
|
|
The domain. It can be left empty if it is auto-detected through DHCP.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
localCommands = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "text=anything; echo You can put $text here.";
|
|
|
|
description = "
|
|
|
|
Shell commands to be executed at the end of the
|
|
|
|
<literal>network-interfaces</literal> Upstart job. Note that if
|
|
|
|
you are using DHCP to obtain the network configuration,
|
|
|
|
interfaces may not be fully configured yet.
|
|
|
|
";
|
|
|
|
};
|
2007-08-14 18:43:56 +02:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
interfaceMonitor = {
|
2007-11-08 19:15:12 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
If <literal>true</literal>, monitor Ethernet interfaces for
|
|
|
|
cables being plugged in or unplugged. When this occurs, the
|
|
|
|
<command>dhclient</command> service is restarted to
|
|
|
|
automatically obtain a new IP address. This is useful for
|
|
|
|
roaming users (laptops).
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
beep = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
If <literal>true</literal>, beep when an Ethernet cable is
|
|
|
|
plugged in or unplugged.
|
|
|
|
";
|
|
|
|
};
|
2007-11-08 19:15:12 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2007-11-08 19:15:12 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
defaultMailServer = {
|
2007-11-08 19:15:12 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
directDelivery = mkOption {
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "
|
|
|
|
Use the trivial Mail Transfer Agent (MTA)
|
|
|
|
<command>ssmtp</command> package to allow programs to send
|
2007-11-10 14:35:15 +01:00
|
|
|
e-mail. If you don't want to run a ``real'' MTA like
|
2007-11-09 19:12:23 +01:00
|
|
|
<command>sendmail</command> or <command>postfix</command> on
|
|
|
|
your machine, set this option to <literal>true</literal>, and
|
|
|
|
set the option
|
|
|
|
<option>networking.defaultMailServer.hostName</option> to the
|
|
|
|
host name of your preferred mail server.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
hostName = mkOption {
|
|
|
|
example = "mail.example.org";
|
|
|
|
description = "
|
|
|
|
The host name of the default mail server to use to deliver
|
|
|
|
e-mail.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-23 18:12:37 +01:00
|
|
|
domain = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "example.org";
|
|
|
|
description = "
|
|
|
|
The domain from which mail will appear to be sent.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
useTLS = mkOption {
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "
|
|
|
|
Whether TLS should be used to connect to the default mail
|
|
|
|
server.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
useSTARTTLS = mkOption {
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "
|
|
|
|
Whether the STARTTLS should be used to connect to the default
|
|
|
|
mail server. (This is needed for TLS-capable mail servers
|
|
|
|
running on the default SMTP port 25.)
|
|
|
|
";
|
|
|
|
};
|
2007-11-08 19:15:12 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2007-11-08 19:15:12 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2007-11-08 19:15:12 +01:00
|
|
|
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
fileSystems = mkOption {
|
2006-12-21 02:07:23 +01:00
|
|
|
default = [];
|
2006-11-27 16:07:46 +01:00
|
|
|
example = [
|
2006-12-21 01:16:20 +01:00
|
|
|
{ mountPoint = "/";
|
|
|
|
device = "/dev/hda1";
|
|
|
|
}
|
|
|
|
{ mountPoint = "/data";
|
|
|
|
device = "/dev/hda2";
|
2006-12-21 15:44:22 +01:00
|
|
|
fsType = "ext3";
|
2006-12-21 01:16:20 +01:00
|
|
|
options = "data=journal";
|
2006-11-27 16:07:46 +01:00
|
|
|
}
|
2007-01-10 14:58:48 +01:00
|
|
|
{ mountPoint = "/bigdisk";
|
|
|
|
label = "bigdisk";
|
|
|
|
}
|
2006-11-27 16:07:46 +01:00
|
|
|
];
|
|
|
|
description = "
|
2006-12-21 01:16:20 +01:00
|
|
|
The file systems to be mounted. It must include an entry for
|
2008-08-09 01:01:30 +02:00
|
|
|
the root directory (<literal>mountPoint = \"/\"</literal>). Each
|
2006-12-21 02:07:23 +01:00
|
|
|
entry in the list is an attribute set with the following fields:
|
|
|
|
<literal>mountPoint</literal>, <literal>device</literal>,
|
2006-12-21 15:44:22 +01:00
|
|
|
<literal>fsType</literal> (a file system type recognised by
|
2006-12-21 02:07:23 +01:00
|
|
|
<command>mount</command>; defaults to
|
2006-12-21 15:44:22 +01:00
|
|
|
<literal>\"auto\"</literal>), and <literal>options</literal>
|
|
|
|
(the mount options passed to <command>mount</command> using the
|
|
|
|
<option>-o</option> flag; defaults to <literal>\"defaults\"</literal>).
|
2007-01-10 14:58:48 +01:00
|
|
|
|
|
|
|
Instead of specifying <literal>device</literal>, you can also
|
2007-01-23 12:18:23 +01:00
|
|
|
specify a volume label (<literal>label</literal>) for file
|
2007-01-10 14:58:48 +01:00
|
|
|
systems that support it, such as ext2/ext3 (see <command>mke2fs
|
|
|
|
-L</command>).
|
2007-12-31 09:52:59 +01:00
|
|
|
|
|
|
|
<literal>autocreate</literal> forces <literal>mountPoint</literal> to be created with
|
|
|
|
<command>mkdir -p</command> .
|
2006-11-27 16:07:46 +01:00
|
|
|
";
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2006-11-27 16:07:46 +01:00
|
|
|
|
2006-12-18 18:41:57 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
swapDevices = mkOption {
|
2006-12-21 02:07:23 +01:00
|
|
|
default = [];
|
2007-01-10 14:07:57 +01:00
|
|
|
example = [
|
2007-11-09 19:12:23 +01:00
|
|
|
{ device = "/dev/hda7"; }
|
|
|
|
{ device = "/var/swapfile"; }
|
|
|
|
{ label = "bigswap"; }
|
2007-01-10 14:07:57 +01:00
|
|
|
];
|
2006-12-21 02:07:23 +01:00
|
|
|
description = "
|
|
|
|
The swap devices and swap files. These must have been
|
2007-01-10 14:07:57 +01:00
|
|
|
initialised using <command>mkswap</command>. Each element
|
|
|
|
should be an attribute set specifying either the path of the
|
|
|
|
swap device or file (<literal>device</literal>) or the label
|
|
|
|
of the swap device (<literal>label</literal>, see
|
2007-01-23 12:06:31 +01:00
|
|
|
<command>mkswap -L</command>). Using a label is
|
2007-01-10 14:07:57 +01:00
|
|
|
recommended.
|
2006-12-21 02:07:23 +01:00
|
|
|
";
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2006-12-21 02:07:23 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
services = {
|
2006-12-18 18:41:57 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
|
|
|
|
ttyBackgrounds = {
|
2006-11-27 16:07:46 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
enable = mkOption {
|
|
|
|
default = true;
|
|
|
|
description = "
|
|
|
|
Whether to enable graphical backgrounds for the virtual consoles.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
defaultTheme = mkOption {
|
|
|
|
default = pkgs.fetchurl {
|
|
|
|
#url = http://www.bootsplash.de/files/themes/Theme-BabyTux.tar.bz2;
|
|
|
|
url = http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/distfiles/Theme-BabyTux.tar.bz2;
|
|
|
|
md5 = "a6d89d1c1cff3b6a08e2f526f2eab4e0";
|
|
|
|
};
|
|
|
|
description = "
|
|
|
|
The default theme for the virtual consoles. Themes can be found
|
|
|
|
at <link xlink:href='http://www.bootsplash.de/' />.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
defaultSpecificThemes = mkOption {
|
|
|
|
default = [
|
|
|
|
/*
|
|
|
|
{ tty = 6;
|
|
|
|
theme = pkgs.fetchurl { # Yeah!
|
|
|
|
url = http://www.bootsplash.de/files/themes/Theme-Pativo.tar.bz2;
|
|
|
|
md5 = "9e13beaaadf88d43a5293e7ab757d569";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
{ tty = 10;
|
|
|
|
theme = pkgs.fetchurl {
|
|
|
|
#url = http://www.bootsplash.de/files/themes/Theme-GNU.tar.bz2;
|
|
|
|
url = http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/distfiles/Theme-GNU.tar.bz2;
|
|
|
|
md5 = "61969309d23c631e57b0a311102ef034";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
description = "
|
|
|
|
This option sets specific themes for virtual consoles. If you
|
|
|
|
just want to set themes for additional consoles, use
|
|
|
|
<option>services.ttyBackgrounds.specificThemes</option>.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
specificThemes = mkOption {
|
|
|
|
default = [
|
|
|
|
];
|
|
|
|
description = "
|
|
|
|
This option allows you to set specific themes for virtual
|
|
|
|
consoles.
|
|
|
|
";
|
|
|
|
};
|
2007-03-16 17:41:38 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2007-03-16 17:41:38 +01:00
|
|
|
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
mingetty = {
|
2006-11-27 16:07:46 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
ttys = mkOption {
|
|
|
|
default = [1 2 3 4 5 6];
|
|
|
|
description = "
|
|
|
|
The list of tty (virtual console) devices on which to start a
|
|
|
|
login prompt.
|
|
|
|
";
|
|
|
|
};
|
2006-11-27 16:07:46 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
waitOnMounts = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether the login prompts on the virtual consoles will be
|
|
|
|
started before or after all file systems have been mounted. By
|
|
|
|
default we don't wait, but if for example your /home is on a
|
|
|
|
separate partition, you may want to turn this on.
|
|
|
|
";
|
|
|
|
};
|
2007-01-10 18:19:17 +01:00
|
|
|
|
2008-01-04 18:05:48 +01:00
|
|
|
greetingLine = mkOption {
|
|
|
|
default = ''<<< Welcome to NixOS (\m) - Kernel \r (\l) >>>'';
|
|
|
|
description = "
|
|
|
|
Welcome line printed by mingetty.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
helpLine = mkOption {
|
|
|
|
default = "";
|
|
|
|
description = "
|
|
|
|
Help line printed by mingetty below the welcome line.
|
|
|
|
Used by the installation CD to give some hints on
|
|
|
|
how to proceed.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2006-12-22 00:43:17 +01:00
|
|
|
|
|
|
|
|
2008-01-30 12:00:00 +01:00
|
|
|
tomcat = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Whether to enable Apache Tomcat";
|
2008-01-30 12:00:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
baseDir = mkOption {
|
|
|
|
default = "/var/tomcat";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Location where Tomcat stores configuration files, webapplications and logfiles";
|
2008-01-30 12:00:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
user = mkOption {
|
2008-07-06 00:27:36 +02:00
|
|
|
default = "tomcat";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "User account under which Apache Tomcat runs.";
|
2008-01-30 12:00:00 +01:00
|
|
|
};
|
2008-01-30 15:38:27 +01:00
|
|
|
|
|
|
|
deployFrom = mkOption {
|
|
|
|
default = "";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Location where webapplications are stored. Leave empty to use the baseDir.";
|
2008-01-30 15:38:27 +01:00
|
|
|
};
|
2008-07-06 21:55:34 +02:00
|
|
|
|
|
|
|
javaOpts = mkOption {
|
|
|
|
default = "";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Parameters to pass to the Java Virtual Machine which spawns Apache Tomcat";
|
2008-07-06 21:55:34 +02:00
|
|
|
};
|
|
|
|
|
2008-08-11 23:35:45 +02:00
|
|
|
catalinaOpts = mkOption {
|
|
|
|
default = "";
|
|
|
|
description = "Parameters to pass to the Java Virtual Machine which spawns the Catalina servlet container";
|
|
|
|
};
|
|
|
|
|
2008-07-06 21:55:34 +02:00
|
|
|
sharedLibFrom = mkOption {
|
|
|
|
default = "";
|
2008-08-06 17:07:29 +02:00
|
|
|
description = "Location where shared libraries are stored. Leave empty to use the baseDir.";
|
2008-07-06 21:55:34 +02:00
|
|
|
};
|
2008-08-06 15:41:08 +02:00
|
|
|
|
|
|
|
commonLibFrom = mkOption {
|
|
|
|
default = "";
|
2008-08-06 17:07:29 +02:00
|
|
|
description = "Location where common libraries are stored. Leave empty to use the baseDir.";
|
|
|
|
};
|
|
|
|
|
|
|
|
contextXML = mkOption {
|
|
|
|
default = "";
|
2008-08-07 12:23:20 +02:00
|
|
|
description = "Location of the context.xml to use. Leave empty to use the default.";
|
2008-08-06 15:41:08 +02:00
|
|
|
};
|
2008-01-30 12:00:00 +01:00
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
httpd = {
|
2008-07-06 20:34:03 +02:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable the Apache httpd server.
|
|
|
|
";
|
|
|
|
};
|
2007-01-11 17:29:23 +01:00
|
|
|
|
2008-02-04 11:52:58 +01:00
|
|
|
experimental = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to use the new-style Apache configuration.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-03-16 02:05:40 +01:00
|
|
|
extraConfig = mkOption {
|
|
|
|
default = "";
|
|
|
|
description = "
|
|
|
|
These configuration lines will be passed verbatim to the apache config
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-04-28 01:56:51 +02:00
|
|
|
extraModules = mkOption {
|
2008-09-14 03:30:45 +02:00
|
|
|
default = [];
|
|
|
|
example = [ "proxy_connect" { name = "php5_module"; path = "${pkgs.php}/modules/libphp5.so"; } ];
|
2008-04-28 01:56:51 +02:00
|
|
|
description = ''
|
2009-01-02 20:41:39 +01:00
|
|
|
Specifies additional Apache modules. These can be specified
|
|
|
|
as a string in the case of modules distributed with Apache,
|
|
|
|
or as an attribute set specifying the
|
|
|
|
<varname>name</varname> and <varname>path</varname> of the
|
|
|
|
module.
|
2008-04-28 01:56:51 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2008-02-20 14:29:08 +01:00
|
|
|
logPerVirtualHost = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
If enabled, each virtual host gets its own
|
|
|
|
<filename>access_log</filename> and
|
|
|
|
<filename>error_log</filename>, namely suffixed by the
|
|
|
|
<option>hostName</option> of the virtual host.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
user = mkOption {
|
|
|
|
default = "wwwrun";
|
|
|
|
description = "
|
|
|
|
User account under which httpd runs. The account is created
|
|
|
|
automatically if it doesn't exist.
|
|
|
|
";
|
|
|
|
};
|
2007-04-07 23:44:26 +02:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
group = mkOption {
|
|
|
|
default = "wwwrun";
|
|
|
|
description = "
|
|
|
|
Group under which httpd runs. The account is created
|
|
|
|
automatically if it doesn't exist.
|
|
|
|
";
|
|
|
|
};
|
2007-04-07 23:44:26 +02:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
logDir = mkOption {
|
|
|
|
default = "/var/log/httpd";
|
|
|
|
description = "
|
|
|
|
Directory for Apache's log files. It is created automatically.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
stateDir = mkOption {
|
|
|
|
default = "/var/run/httpd";
|
|
|
|
description = "
|
|
|
|
Directory for Apache's transient runtime state (such as PID
|
|
|
|
files). It is created automatically. Note that the default,
|
|
|
|
<filename>/var/run/httpd</filename>, is deleted at boot time.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
mod_php = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "Whether to enable the PHP module.";
|
|
|
|
};
|
|
|
|
|
2008-01-28 16:40:29 +01:00
|
|
|
mod_jk = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Whether to enable the Apache Tomcat connector.";
|
|
|
|
};
|
|
|
|
|
|
|
|
applicationMappings = mkOption {
|
|
|
|
default = [];
|
|
|
|
description = "List of Java webapplications that should be mapped to the servlet container (Tomcat/JBoss)";
|
2008-01-28 16:40:29 +01:00
|
|
|
};
|
2008-01-28 16:44:59 +01:00
|
|
|
};
|
2008-02-14 08:42:52 +01:00
|
|
|
|
2008-02-14 15:14:39 +01:00
|
|
|
virtualHosts = mkOption {
|
|
|
|
default = [];
|
|
|
|
example = [
|
|
|
|
{ hostName = "foo";
|
|
|
|
documentRoot = "/data/webroot-foo";
|
|
|
|
}
|
|
|
|
{ hostName = "bar";
|
|
|
|
documentRoot = "/data/webroot-bar";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
description = ''
|
|
|
|
Specification of the virtual hosts served by Apache. Each
|
|
|
|
element should be an attribute set specifying the
|
|
|
|
configuration of the virtual host. The available options
|
|
|
|
are the non-global options permissible for the main host.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
subservices = {
|
|
|
|
|
2008-02-14 10:54:25 +01:00
|
|
|
# !!! remove this
|
2007-11-09 19:12:23 +01:00
|
|
|
subversion = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable the Subversion subservice in the webserver.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
notificationSender = mkOption {
|
2007-11-13 16:51:24 +01:00
|
|
|
default = "svn-server@example.org";
|
2007-11-09 19:12:23 +01:00
|
|
|
example = "svn-server@example.org";
|
|
|
|
description = "
|
|
|
|
The email address used in the Sender field of commit
|
|
|
|
notification messages sent by the Subversion subservice.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
userCreationDomain = mkOption {
|
2008-07-23 16:13:27 +02:00
|
|
|
default = "example.org";
|
2007-11-09 19:12:23 +01:00
|
|
|
example = "example.org";
|
|
|
|
description = "
|
|
|
|
The domain from which user creation is allowed. A client can
|
|
|
|
only create a new user account if its IP address resolves to
|
|
|
|
this domain.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
autoVersioning = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether you want the Subversion subservice to support
|
|
|
|
auto-versioning, which enables Subversion repositories to be
|
|
|
|
mounted as read/writable file systems on operating systems that
|
|
|
|
support WebDAV.
|
|
|
|
";
|
|
|
|
};
|
2008-07-23 16:13:27 +02:00
|
|
|
|
|
|
|
dataDir = mkOption {
|
|
|
|
default = "/no/such/path/exists";
|
|
|
|
description = "
|
|
|
|
Place to put SVN repository.
|
|
|
|
";
|
|
|
|
};
|
2007-11-09 19:12:23 +01:00
|
|
|
|
|
|
|
organization = {
|
|
|
|
|
|
|
|
name = mkOption {
|
|
|
|
default = null;
|
|
|
|
description = "
|
|
|
|
Name of the organization hosting the Subversion service.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
url = mkOption {
|
|
|
|
default = null;
|
|
|
|
description = "
|
|
|
|
URL of the website of the organization hosting the Subversion service.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
logo = mkOption {
|
|
|
|
default = null;
|
|
|
|
description = "
|
|
|
|
Logo the organization hosting the Subversion service.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2008-02-14 14:20:26 +01:00
|
|
|
} // # Include the options shared between the main server and virtual hosts.
|
|
|
|
(import ../upstart-jobs/apache-httpd/per-server-options.nix {
|
|
|
|
inherit mkOption;
|
|
|
|
forMainServer = true;
|
|
|
|
});
|
2007-11-09 19:12:23 +01:00
|
|
|
|
2008-02-07 13:41:18 +01:00
|
|
|
vsftpd = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Whether to enable the vsftpd FTP server.
|
|
|
|
";
|
2008-02-07 13:41:18 +01:00
|
|
|
};
|
|
|
|
|
2008-02-07 14:37:20 +01:00
|
|
|
anonymousUser = mkOption {
|
2008-02-07 13:41:18 +01:00
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Whether to enable the anonymous FTP user.
|
|
|
|
";
|
2008-02-07 13:41:18 +01:00
|
|
|
};
|
2008-08-04 11:36:11 +02:00
|
|
|
|
|
|
|
writeEnable = mkOption {
|
|
|
|
default = false;
|
2008-08-07 12:23:20 +02:00
|
|
|
description = "
|
|
|
|
Whether any write activity is permitted to users.
|
|
|
|
";
|
2008-08-04 11:36:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
anonymousUploadEnable = mkOption {
|
|
|
|
default = false;
|
2008-08-07 12:23:20 +02:00
|
|
|
description = "
|
|
|
|
Whether any uploads are permitted to anonymous users.
|
|
|
|
";
|
2008-08-04 11:36:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
anonymousMkdirEnable = mkOption {
|
|
|
|
default = false;
|
2008-08-07 12:23:20 +02:00
|
|
|
description = "
|
|
|
|
Whether mkdir is permitted to anonymous users.
|
|
|
|
";
|
2008-08-04 11:36:11 +02:00
|
|
|
};
|
2008-02-07 13:41:18 +01:00
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
printing = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable printing support through the CUPS daemon.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
udev = {
|
|
|
|
|
|
|
|
addFirmware = mkOption {
|
|
|
|
default = [];
|
|
|
|
example = ["/mnt/big-storage/firmware/"];
|
|
|
|
description = "
|
|
|
|
To specify firmware that is not too spread to ensure
|
|
|
|
a package, or have an interactive process of extraction
|
|
|
|
and cannot be redistributed.
|
|
|
|
";
|
2008-08-06 21:26:47 +02:00
|
|
|
merge = pkgs.lib.mergeListOption;
|
|
|
|
};
|
|
|
|
|
|
|
|
addUdevPkgs = mkOption {
|
|
|
|
default = [];
|
|
|
|
description = "
|
|
|
|
List of packages containing udev rules.
|
|
|
|
";
|
|
|
|
merge = pkgs.lib.mergeListOption;
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2008-01-02 11:07:52 +01:00
|
|
|
|
|
|
|
sndMode = mkOption {
|
|
|
|
default = "0600";
|
2008-07-23 16:13:27 +02:00
|
|
|
example = "0666";
|
|
|
|
description = "
|
|
|
|
Permissions for /dev/snd/*, in case you have multiple
|
|
|
|
logged in users or if the devices belong to root for
|
|
|
|
some reason.
|
|
|
|
";
|
2008-01-02 11:07:52 +01:00
|
|
|
};
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
samba = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable the samba server. (to communicate with, and provide windows shares)
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
ircdHybrid = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Enable IRCD.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
serverName = mkOption {
|
|
|
|
default = "hades.arpa";
|
|
|
|
description = "
|
|
|
|
IRCD server name.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
sid = mkOption {
|
|
|
|
default = "0NL";
|
|
|
|
description = "
|
|
|
|
IRCD server unique ID in a net of servers.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
description = mkOption {
|
|
|
|
default = "Hybrid-7 IRC server.";
|
|
|
|
description = "
|
|
|
|
IRCD server description.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
rsaKey = mkOption {
|
|
|
|
default = null;
|
|
|
|
example = /root/certificates/irc.key;
|
|
|
|
description = "
|
|
|
|
IRCD server RSA key.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
certificate = mkOption {
|
|
|
|
default = null;
|
|
|
|
example = /root/certificates/irc.pem;
|
|
|
|
description = "
|
|
|
|
IRCD server SSL certificate. There are some limitations - read manual.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
adminEmail = mkOption {
|
|
|
|
default = "<bit-bucket@example.com>";
|
|
|
|
example = "<name@domain.tld>";
|
|
|
|
description = "
|
|
|
|
IRCD server administrator e-mail.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
extraIPs = mkOption {
|
|
|
|
default = [];
|
|
|
|
example = ["127.0.0.1"];
|
|
|
|
description = "
|
|
|
|
Extra IP's to bind.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
extraPort = mkOption {
|
|
|
|
default = "7117";
|
|
|
|
description = "
|
|
|
|
Extra port to avoid filtering.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
xfs = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable the X Font Server.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-01-28 15:55:12 +01:00
|
|
|
mysql = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Whether to enable the MySQL server.
|
|
|
|
";
|
2008-01-28 15:55:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
port = mkOption {
|
|
|
|
default = "3306";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Port of MySQL";
|
2008-01-28 15:55:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
user = mkOption {
|
2008-06-25 23:58:51 +02:00
|
|
|
default = "mysql";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "User account under which MySQL runs";
|
2008-01-28 15:55:12 +01:00
|
|
|
};
|
|
|
|
|
2008-02-07 15:02:38 +01:00
|
|
|
dataDir = mkOption {
|
2008-01-28 15:55:12 +01:00
|
|
|
default = "/var/mysql";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Location where MySQL stores its table files";
|
2008-01-28 15:55:12 +01:00
|
|
|
};
|
|
|
|
|
2008-02-07 15:02:38 +01:00
|
|
|
logError = mkOption {
|
2008-01-28 15:55:12 +01:00
|
|
|
default = "/var/log/mysql_err.log";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Location of the MySQL error logfile";
|
2008-01-28 15:55:12 +01:00
|
|
|
};
|
|
|
|
|
2008-06-25 23:58:51 +02:00
|
|
|
pidDir = mkOption {
|
|
|
|
default = "/var/run/mysql";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Location of the file which stores the PID of the MySQL server";
|
2008-01-28 15:55:12 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2008-06-06 11:13:16 +02:00
|
|
|
|
2007-12-03 05:48:31 +01:00
|
|
|
postgresql = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Whether to run PostgreSQL.
|
|
|
|
";
|
2007-12-03 05:48:31 +01:00
|
|
|
};
|
|
|
|
port = mkOption {
|
|
|
|
default = "5432";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Port for PostgreSQL.
|
|
|
|
";
|
2007-12-03 05:48:31 +01:00
|
|
|
};
|
|
|
|
logDir = mkOption {
|
|
|
|
default = "/var/log/postgresql";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Log directory for PostgreSQL.
|
|
|
|
";
|
2007-12-03 05:48:31 +01:00
|
|
|
};
|
|
|
|
dataDir = mkOption {
|
|
|
|
default = "/var/db/postgresql";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Data directory for PostgreSQL.
|
|
|
|
";
|
2007-12-03 05:48:31 +01:00
|
|
|
};
|
|
|
|
subServices = mkOption {
|
|
|
|
default = [];
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Subservices list. As it is already implememnted,
|
|
|
|
here is an interface...
|
|
|
|
";
|
2007-12-03 05:48:31 +01:00
|
|
|
};
|
2008-02-18 12:56:43 +01:00
|
|
|
authentication = mkOption {
|
|
|
|
default = ''
|
|
|
|
# Generated file; do not edit!
|
2008-06-09 17:52:02 +02:00
|
|
|
local all all ident sameuser
|
2008-02-18 12:56:43 +01:00
|
|
|
host all all 127.0.0.1/32 md5
|
|
|
|
host all all ::1/128 md5
|
|
|
|
'';
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Hosts (except localhost), who you allow to connect.
|
|
|
|
";
|
2008-02-18 12:56:43 +01:00
|
|
|
};
|
2007-12-03 05:48:31 +01:00
|
|
|
allowedHosts = mkOption {
|
|
|
|
default = [];
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Hosts (except localhost), who you allow to connect.
|
|
|
|
";
|
2007-12-03 05:48:31 +01:00
|
|
|
};
|
|
|
|
authMethod = mkOption {
|
|
|
|
default = " ident sameuser ";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
How to authorize users.
|
|
|
|
Note: ident needs absolute trust to all allowed client hosts.";
|
2007-12-03 05:48:31 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2008-06-06 11:13:16 +02:00
|
|
|
|
2008-03-03 20:28:10 +01:00
|
|
|
openfire = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Whether to enable OpenFire XMPP server.
|
|
|
|
";
|
2008-03-03 20:28:10 +01:00
|
|
|
};
|
|
|
|
usePostgreSQL = mkOption {
|
|
|
|
default = true;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Whether you use PostgreSQL service for your storage back-end.
|
|
|
|
";
|
2008-03-03 20:28:10 +01:00
|
|
|
};
|
|
|
|
};
|
2007-11-12 17:43:35 +01:00
|
|
|
|
2008-06-06 11:13:16 +02:00
|
|
|
|
2008-06-30 17:13:02 +02:00
|
|
|
postfix = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description ="
|
|
|
|
Whether to run the Postfix mail server.
|
|
|
|
";
|
2008-06-30 17:13:02 +02:00
|
|
|
};
|
|
|
|
user = mkOption {
|
|
|
|
default = "postfix";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
How to call postfix user (must be used only for postfix).
|
|
|
|
";
|
2008-06-30 17:13:02 +02:00
|
|
|
};
|
|
|
|
group = mkOption {
|
|
|
|
default = "postfix";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
How to call postfix group (must be used only for postfix).
|
|
|
|
";
|
2008-06-30 17:13:02 +02:00
|
|
|
};
|
|
|
|
setgidGroup = mkOption {
|
|
|
|
default = "postdrop";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
How to call postfix setgid group (for postdrop). Should
|
|
|
|
be uniquely used group.
|
|
|
|
";
|
2008-06-30 17:13:02 +02:00
|
|
|
};
|
|
|
|
networks = mkOption {
|
|
|
|
default = null;
|
2008-07-23 16:13:27 +02:00
|
|
|
example = ["192.168.0.1/24"];
|
|
|
|
description = "
|
|
|
|
Net masks for trusted - allowed to relay mail to third parties -
|
|
|
|
hosts. Leave empty to use mynetworks_style configuration or use
|
|
|
|
default (localhost-only).
|
|
|
|
";
|
2008-06-30 17:13:02 +02:00
|
|
|
};
|
|
|
|
networksStyle = mkOption {
|
|
|
|
default = "";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Name of standard way of trusted network specification to use,
|
|
|
|
leave blank if you specify it explicitly or if you want to use
|
|
|
|
default (localhost-only).
|
|
|
|
";
|
2008-06-30 17:13:02 +02:00
|
|
|
};
|
|
|
|
hostname = mkOption {
|
|
|
|
default = "";
|
2008-07-23 16:13:27 +02:00
|
|
|
description ="
|
|
|
|
Hostname to use. Leave blank to use just the hostname of machine.
|
|
|
|
It should be FQDN.
|
|
|
|
";
|
2008-06-30 17:13:02 +02:00
|
|
|
};
|
|
|
|
domain = mkOption {
|
|
|
|
default = "";
|
2008-07-23 16:13:27 +02:00
|
|
|
description ="
|
|
|
|
Domain to use. Leave blank to use hostname minus first component.
|
|
|
|
";
|
2008-06-30 17:13:02 +02:00
|
|
|
};
|
|
|
|
origin = mkOption {
|
|
|
|
default = "";
|
2008-07-23 16:13:27 +02:00
|
|
|
description ="
|
|
|
|
Origin to use in outgoing e-mail. Leave blank to use hostname.
|
|
|
|
";
|
2008-06-30 17:13:02 +02:00
|
|
|
};
|
|
|
|
destination = mkOption {
|
|
|
|
default = null;
|
|
|
|
example = ["localhost"];
|
|
|
|
description = "
|
2008-07-23 16:13:27 +02:00
|
|
|
Full (!) list of domains we deliver locally. Leave blank for
|
|
|
|
acceptable Postfix default.
|
|
|
|
";
|
2008-06-30 17:13:02 +02:00
|
|
|
};
|
|
|
|
relayDomains = mkOption {
|
|
|
|
default = null;
|
2008-07-23 16:13:27 +02:00
|
|
|
example = ["localdomain"];
|
|
|
|
description = "
|
|
|
|
List of domains we agree to relay to. Default is the same as
|
|
|
|
destination.
|
|
|
|
";
|
2008-06-30 17:13:02 +02:00
|
|
|
};
|
|
|
|
relayHost = mkOption {
|
|
|
|
default = "";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Mail relay for outbound mail.
|
|
|
|
";
|
2008-06-30 17:13:02 +02:00
|
|
|
};
|
|
|
|
lookupMX = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Whether relay specified is just domain whose MX must be used.
|
|
|
|
";
|
2008-06-30 17:13:02 +02:00
|
|
|
};
|
|
|
|
postmasterAlias = mkOption {
|
|
|
|
default = "root";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Who should receive postmaster e-mail.
|
|
|
|
";
|
2008-06-30 17:13:02 +02:00
|
|
|
};
|
|
|
|
rootAlias = mkOption {
|
|
|
|
default = "";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Who should receive root e-mail. Blank for no redirection.
|
|
|
|
";
|
2008-06-30 17:13:02 +02:00
|
|
|
};
|
|
|
|
extraAliases = mkOption {
|
|
|
|
default = "";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Additional entries to put verbatim into aliases file.
|
|
|
|
";
|
2008-06-30 17:13:02 +02:00
|
|
|
};
|
2008-06-30 23:12:02 +02:00
|
|
|
|
|
|
|
sslCert = mkOption {
|
|
|
|
default = "";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
SSL certificate to use.
|
|
|
|
";
|
2008-06-30 23:12:02 +02:00
|
|
|
};
|
|
|
|
sslCACert = mkOption {
|
|
|
|
default = "";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
SSL certificate of CA.
|
|
|
|
";
|
2008-06-30 23:12:02 +02:00
|
|
|
};
|
|
|
|
sslKey = mkOption {
|
|
|
|
default = "";
|
2008-07-23 16:13:27 +02:00
|
|
|
description ="
|
|
|
|
SSL key to use.
|
|
|
|
";
|
2008-06-30 23:12:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
recipientDelimiter = mkOption {
|
|
|
|
default = "";
|
2008-07-23 16:13:27 +02:00
|
|
|
example = "+";
|
|
|
|
description = "
|
2008-06-30 23:12:02 +02:00
|
|
|
Delimiter for address extension: so mail to user+test can be handled by ~user/.forward+test
|
2008-07-23 16:13:27 +02:00
|
|
|
";
|
2008-06-30 23:12:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
dovecot = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Whether to enable dovecot POP3/IMAP server.";
|
2008-06-30 23:12:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
user = mkOption {
|
|
|
|
default = "dovecot";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "dovecot user name";
|
2008-06-30 23:12:02 +02:00
|
|
|
};
|
|
|
|
group = mkOption {
|
|
|
|
default = "dovecot";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "dovecot group name";
|
2008-06-30 23:12:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
sslServerCert = mkOption {
|
|
|
|
default = "";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Server certificate";
|
2008-06-30 23:12:02 +02:00
|
|
|
};
|
|
|
|
sslCACert = mkOption {
|
|
|
|
default = "";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "CA certificate used by server certificate";
|
2008-06-30 23:12:02 +02:00
|
|
|
};
|
|
|
|
sslServerKey = mkOption {
|
|
|
|
default = "";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Server key";
|
2008-06-30 23:12:02 +02:00
|
|
|
};
|
2008-06-30 17:13:02 +02:00
|
|
|
};
|
2008-06-06 11:13:16 +02:00
|
|
|
|
2008-07-01 14:15:56 +02:00
|
|
|
bind = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Whether to enable BIND domain name server.
|
|
|
|
";
|
2008-07-01 14:15:56 +02:00
|
|
|
};
|
|
|
|
cacheNetworks = mkOption {
|
|
|
|
default = ["127.0.0.0/24"];
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
What networks are allowed to use us as a resolver.
|
|
|
|
";
|
2008-07-01 14:15:56 +02:00
|
|
|
};
|
|
|
|
blockedNetworks = mkOption {
|
|
|
|
default = [];
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
What networks are just blocked.
|
|
|
|
";
|
2008-07-01 14:15:56 +02:00
|
|
|
};
|
|
|
|
zones = mkOption {
|
|
|
|
default = [];
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
List of zones we claim authority over.
|
|
|
|
master=false means slave server; slaves means addresses
|
|
|
|
who may request zone transfer.
|
|
|
|
";
|
|
|
|
example = [{
|
|
|
|
name = "example.com";
|
|
|
|
master = false;
|
|
|
|
file = "/var/dns/example.com";
|
|
|
|
masters = ["192.168.0.1"];
|
|
|
|
slaves = [];
|
|
|
|
}];
|
2008-07-01 14:15:56 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
|
|
|
|
2007-12-20 12:36:30 +01:00
|
|
|
nesting = {
|
2008-01-02 14:05:24 +01:00
|
|
|
children = mkOption {
|
|
|
|
default = [];
|
2008-01-02 16:31:04 +01:00
|
|
|
description = "
|
2008-01-02 14:05:24 +01:00
|
|
|
Additional configurations to build.
|
2008-01-02 16:31:04 +01:00
|
|
|
";
|
2008-01-02 14:05:24 +01:00
|
|
|
};
|
2007-12-20 12:36:30 +01:00
|
|
|
};
|
2007-11-09 19:12:23 +01:00
|
|
|
|
2009-02-22 17:08:33 +01:00
|
|
|
|
2008-10-01 17:56:01 +02:00
|
|
|
passthru = mkOption {
|
|
|
|
default = {};
|
|
|
|
description = "
|
|
|
|
Additional parameters. Ignored. When you want to be sure that
|
|
|
|
/etc/nixos/nixos -A config.passthru.* is that same thing the
|
|
|
|
system rebuild will use.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-08-27 16:01:17 +02:00
|
|
|
require = [
|
2009-01-02 17:07:30 +01:00
|
|
|
# boot (is it the right place ?)
|
2009-01-25 16:48:48 +01:00
|
|
|
(import ../system/kernel.nix)
|
2009-01-02 17:07:30 +01:00
|
|
|
(import ../boot/boot-stage-2.nix)
|
2009-01-02 17:07:34 +01:00
|
|
|
(import ../installer/grub.nix)
|
2009-01-02 17:07:30 +01:00
|
|
|
|
2008-11-18 19:00:09 +01:00
|
|
|
# system
|
2009-01-02 17:06:46 +01:00
|
|
|
(import ../system/system-options.nix)
|
|
|
|
(import ../system/activate-configuration.nix)
|
2008-11-18 19:00:09 +01:00
|
|
|
(import ../upstart-jobs/default.nix)
|
|
|
|
|
2009-03-06 13:25:25 +01:00
|
|
|
(import ../upstart-jobs/acpid.nix) # ACPI daemon
|
|
|
|
|
2009-03-06 13:25:33 +01:00
|
|
|
(import ../system/unix-odbc-drivers.nix)
|
|
|
|
|
|
|
|
|
2009-01-02 17:07:15 +01:00
|
|
|
# security
|
|
|
|
(import ../system/sudo.nix)
|
|
|
|
|
2009-03-06 13:25:38 +01:00
|
|
|
# i18n
|
|
|
|
(import ../system/i18n.nix)
|
|
|
|
|
2009-01-02 17:06:52 +01:00
|
|
|
# environment
|
|
|
|
(import ../etc/default.nix)
|
|
|
|
|
2009-03-06 13:25:35 +01:00
|
|
|
(import ../system/nixos-environment.nix)
|
|
|
|
|
2009-01-02 17:07:01 +01:00
|
|
|
# users
|
|
|
|
(import ../system/users-groups.nix)
|
|
|
|
|
2008-11-08 22:45:58 +01:00
|
|
|
# newtworking
|
|
|
|
(import ../upstart-jobs/dhclient.nix)
|
2008-11-09 17:44:43 +01:00
|
|
|
|
2008-11-08 22:45:58 +01:00
|
|
|
# hardware
|
2008-08-27 16:01:17 +02:00
|
|
|
(import ../upstart-jobs/pcmcia.nix)
|
2008-11-09 17:44:43 +01:00
|
|
|
|
2009-03-06 13:25:46 +01:00
|
|
|
# security
|
|
|
|
(import ../system/nixos-security.nix)
|
|
|
|
|
2008-11-09 17:44:43 +01:00
|
|
|
# services
|
2008-11-23 02:28:58 +01:00
|
|
|
(import ../upstart-jobs/avahi-daemon.nix)
|
2009-01-02 17:07:10 +01:00
|
|
|
(import ../upstart-jobs/atd.nix)
|
2008-11-23 02:28:58 +01:00
|
|
|
(import ../upstart-jobs/dbus.nix)
|
2008-11-23 02:28:52 +01:00
|
|
|
(import ../upstart-jobs/hal.nix)
|
2008-11-23 02:28:45 +01:00
|
|
|
(import ../upstart-jobs/gpm.nix)
|
2008-11-23 02:28:34 +01:00
|
|
|
(import ../upstart-jobs/nagios/default.nix)
|
2009-01-25 16:49:08 +01:00
|
|
|
(import ../upstart-jobs/xserver/default.nix)
|
2008-11-18 19:00:21 +01:00
|
|
|
(import ../upstart-jobs/zabbix-agent.nix)
|
2008-11-23 02:28:25 +01:00
|
|
|
(import ../upstart-jobs/zabbix-server.nix)
|
2008-11-18 19:00:15 +01:00
|
|
|
(import ../upstart-jobs/disnix.nix)
|
2008-11-09 17:44:43 +01:00
|
|
|
(import ../upstart-jobs/cron.nix)
|
2009-01-02 20:41:39 +01:00
|
|
|
(import ../upstart-jobs/fcron.nix)
|
2008-11-09 17:44:53 +01:00
|
|
|
(import ../upstart-jobs/cron/locate.nix)
|
2009-02-22 17:06:42 +01:00
|
|
|
(import ../upstart-jobs/manual.nix)
|
2009-02-22 17:06:47 +01:00
|
|
|
(import ../upstart-jobs/rogue.nix)
|
2009-02-22 17:06:52 +01:00
|
|
|
(import ../upstart-jobs/guest-users.nix)
|
2009-02-22 17:07:42 +01:00
|
|
|
(import ../upstart-jobs/pulseaudio.nix)
|
2009-03-06 13:25:38 +01:00
|
|
|
(import ../upstart-jobs/kbd.nix)
|
2009-03-06 13:25:48 +01:00
|
|
|
(import ../upstart-jobs/gw6c.nix) # Gateway6
|
2009-03-06 13:25:57 +01:00
|
|
|
(import ../upstart-jobs/syslogd.nix)
|
2009-03-06 13:26:05 +01:00
|
|
|
(import ../upstart-jobs/dhcpd.nix)
|
2009-03-06 13:26:08 +01:00
|
|
|
(import ../upstart-jobs/sshd.nix)
|
2009-03-06 13:26:10 +01:00
|
|
|
(import ../upstart-jobs/lshd.nix) # GNU lshd SSH2 deamon (TODO: does neither start nor generate seed file ?)
|
2009-03-06 13:26:19 +01:00
|
|
|
(import ../upstart-jobs/ntpd.nix)
|
2009-03-06 13:26:22 +01:00
|
|
|
(import ../upstart-jobs/portmap.nix)
|
2009-03-06 13:26:24 +01:00
|
|
|
(import ../upstart-jobs/bitlbee.nix)
|
2009-03-06 13:26:26 +01:00
|
|
|
(import ../upstart-jobs/gnunet.nix)
|
2009-03-06 13:26:29 +01:00
|
|
|
(import ../upstart-jobs/ejabberd.nix) # untested, dosen't compile on x86_64-linux
|
2009-03-06 13:26:31 +01:00
|
|
|
(import ../upstart-jobs/jboss.nix)
|
2009-03-06 13:25:48 +01:00
|
|
|
|
2009-03-06 13:26:01 +01:00
|
|
|
# nix
|
2009-03-06 13:25:51 +01:00
|
|
|
(import ../upstart-jobs/nix.nix) # nix options and daemon
|
2009-03-06 13:25:53 +01:00
|
|
|
(import ../system/nixos-installer.nix)
|
2009-03-06 13:25:51 +01:00
|
|
|
|
2009-03-06 13:25:38 +01:00
|
|
|
|
2009-03-06 13:25:44 +01:00
|
|
|
#users
|
|
|
|
(import ../upstart-jobs/ldap)
|
|
|
|
|
2009-03-06 13:25:38 +01:00
|
|
|
|
2008-11-23 02:29:05 +01:00
|
|
|
|
2009-01-02 17:07:39 +01:00
|
|
|
# fonts
|
|
|
|
(import ../system/fonts.nix)
|
|
|
|
|
2008-11-23 02:29:05 +01:00
|
|
|
# sound
|
|
|
|
(import ../upstart-jobs/alsa.nix)
|
2008-08-27 16:01:17 +02:00
|
|
|
];
|
2007-11-09 19:12:23 +01:00
|
|
|
}
|