2007-11-09 18:12:23 +00:00
|
|
|
{pkgs, mkOption}:
|
2007-01-08 22:41:41 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
{
|
2006-11-27 15:07:46 +00:00
|
|
|
|
2006-12-11 16:10:23 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
time = {
|
2006-12-11 17:36:57 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
timeZone = mkOption {
|
|
|
|
default = "CET";
|
|
|
|
example = "America/New_York";
|
|
|
|
description = "The time zone used when displaying times and dates.";
|
|
|
|
};
|
2006-12-11 17:36:57 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
2006-12-22 23:34:42 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
|
|
|
|
boot = {
|
|
|
|
|
|
|
|
autoDetectRootDevice = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to find the root device automatically by searching for a
|
|
|
|
device with the right label. If this option is off, then a root
|
|
|
|
file system must be specified using <option>fileSystems</option>.
|
|
|
|
";
|
|
|
|
};
|
2006-12-22 23:34:42 +00:00
|
|
|
|
2008-01-24 16:56:09 +00:00
|
|
|
isLiveCD = mkOption {
|
2007-11-09 18:12:23 +00:00
|
|
|
default = false;
|
|
|
|
description = "
|
2008-01-24 16:56:09 +00: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 18:12:23 +00:00
|
|
|
";
|
|
|
|
};
|
2006-12-19 22:12:44 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
rootLabel = mkOption {
|
|
|
|
description = "
|
|
|
|
When auto-detecting the root device (see
|
|
|
|
<option>boot.autoDetectRootDevice</option>), this option
|
|
|
|
specifies the label of the root device. Right now, this is
|
|
|
|
merely a file name that should exist in the root directory of
|
|
|
|
the file system. It is used to find the boot CD-ROM.
|
|
|
|
";
|
|
|
|
};
|
2006-12-19 22:12:44 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
grubDevice = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "/dev/hda";
|
|
|
|
description = "
|
|
|
|
The device on which the boot loader, Grub, will be installed.
|
|
|
|
If empty, Grub won't be installed and it's your responsibility
|
|
|
|
to make the system bootable.
|
|
|
|
";
|
|
|
|
};
|
2006-12-19 22:12:44 +00:00
|
|
|
|
2007-12-16 18:56:36 +00:00
|
|
|
bootMount = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "(hd0,0)";
|
|
|
|
description = "
|
|
|
|
If the system partition may be wiped on reinstall, it is better
|
|
|
|
to have /boot on a small partition. To do it, we need to explain
|
|
|
|
to GRUB where the kernels live. Specify the partition here (in
|
|
|
|
GRUB notation.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
kernel = mkOption {
|
|
|
|
default = pkgs: pkgs.kernel;
|
|
|
|
description = "
|
|
|
|
Function that takes package collection and returns kernel
|
|
|
|
package. Do not collect old generations after changing it
|
|
|
|
until you get to boot successfully. In principle, you can
|
|
|
|
specify a kernel that will build, but not boot.
|
|
|
|
";
|
|
|
|
};
|
2006-12-19 22:12:44 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
configurationName = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "Stable 2.6.21";
|
|
|
|
description = "
|
|
|
|
Grub entry name instead of default.
|
|
|
|
";
|
|
|
|
};
|
2007-02-09 16:19:29 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
kernelParams = mkOption {
|
|
|
|
default = [
|
|
|
|
"selinux=0"
|
|
|
|
"apm=on"
|
|
|
|
"acpi=on"
|
|
|
|
"vga=0x317"
|
|
|
|
"console=tty1"
|
|
|
|
"splash=verbose"
|
|
|
|
];
|
|
|
|
description = "
|
|
|
|
The kernel parameters. If you want to add additional
|
|
|
|
parameters, it's best to set
|
|
|
|
<option>boot.extraKernelParams</option>.
|
|
|
|
";
|
|
|
|
};
|
2007-02-09 16:19:29 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
extraKernelParams = mkOption {
|
|
|
|
default = [
|
|
|
|
];
|
|
|
|
example = [
|
|
|
|
"debugtrace"
|
|
|
|
];
|
|
|
|
description = "
|
|
|
|
Additional user-defined kernel parameters.
|
|
|
|
";
|
|
|
|
};
|
2007-01-22 18:58:04 +00:00
|
|
|
|
2007-11-09 18:12:23 +00: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 18:58:04 +00:00
|
|
|
|
2008-01-29 18:53:15 +00:00
|
|
|
extraModulePackages = mkOption {
|
|
|
|
default = [];
|
2008-02-08 15:59:15 +00:00
|
|
|
example = [pkgs.aufs pkgs.nvidiaDrivers];
|
2008-01-29 18:53:15 +00:00
|
|
|
description = ''
|
|
|
|
A list of additional packages supplying kernel modules.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
kernelModules = mkOption {
|
|
|
|
default = [];
|
|
|
|
description = "
|
|
|
|
The set of kernel modules to be loaded in the second stage of
|
|
|
|
the boot process. That is, these modules are not included in
|
|
|
|
the initial ramdisk, so they'd better not be required for
|
|
|
|
mounting the root file system. Add them to
|
|
|
|
<option>boot.initrd.extraKernelModules</option> if they are.
|
|
|
|
";
|
|
|
|
};
|
2007-03-06 00:45:33 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
initrd = {
|
|
|
|
|
|
|
|
kernelModules = mkOption {
|
|
|
|
default = [
|
2008-02-08 15:59:15 +00:00
|
|
|
# Note: most of these (especially the SATA/PATA modules)
|
|
|
|
# shouldn't be included by default since nixos-hardware-scan
|
|
|
|
# detects them, but I'm keeping them for now for backwards
|
|
|
|
# compatibility.
|
|
|
|
|
|
|
|
# Some SATA/PATA stuff.
|
2007-11-09 18:12:23 +00:00
|
|
|
"ahci"
|
2008-01-06 00:51:07 +00:00
|
|
|
"sata_nv"
|
|
|
|
"sata_via"
|
|
|
|
"sata_sis"
|
|
|
|
"sata_uli"
|
2007-11-09 18:12:23 +00:00
|
|
|
"ata_piix"
|
|
|
|
"pata_marvell"
|
2008-02-08 15:59:15 +00:00
|
|
|
# Standard SCSI stuff.
|
2007-11-09 18:12:23 +00:00
|
|
|
"sd_mod"
|
|
|
|
"sr_mod"
|
2008-02-08 15:59:15 +00:00
|
|
|
# Standard IDE stuff.
|
|
|
|
"ide_cd"
|
|
|
|
"ide_disk"
|
|
|
|
"ide_generic"
|
|
|
|
# Filesystems.
|
2007-11-09 18:12:23 +00:00
|
|
|
"ext3"
|
|
|
|
# Support USB keyboards, in case the boot fails and we only have
|
|
|
|
# a USB keyboard.
|
|
|
|
"ehci_hcd"
|
|
|
|
"ohci_hcd"
|
|
|
|
"usbhid"
|
|
|
|
];
|
|
|
|
description = "
|
|
|
|
The set of kernel modules in the initial ramdisk used during the
|
|
|
|
boot process. This set must include all modules necessary for
|
|
|
|
mounting the root device. That is, it should include modules
|
|
|
|
for the physical device (e.g., SCSI drivers) and for the file
|
|
|
|
system (e.g., ext3). The set specified here is automatically
|
|
|
|
closed under the module dependency relation, i.e., all
|
|
|
|
dependencies of the modules list here are included
|
|
|
|
automatically. If you want to add additional
|
|
|
|
modules, it's best to set
|
|
|
|
<option>boot.initrd.extraKernelModules</option>.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
extraKernelModules = mkOption {
|
|
|
|
default = [];
|
|
|
|
description = "
|
|
|
|
Additional kernel modules for the initial ramdisk. These are
|
|
|
|
loaded before the modules listed in
|
|
|
|
<option>boot.initrd.kernelModules</option>, so they take
|
|
|
|
precedence.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
lvm = mkOption {
|
|
|
|
default = false;
|
|
|
|
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 00:45:33 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
enableSplashScreen = mkOption {
|
|
|
|
default = true;
|
|
|
|
description = "
|
|
|
|
Whether to show a nice splash screen while booting.
|
|
|
|
";
|
|
|
|
};
|
2007-06-15 12:40:57 +01:00
|
|
|
|
2007-11-09 18:12:23 +00: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 12:40:57 +01:00
|
|
|
|
2007-11-09 18:12:23 +00: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-03 23:20:08 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
extraGrubEntries = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "
|
|
|
|
title Windows
|
|
|
|
chainloader (hd0,1)+1
|
|
|
|
";
|
|
|
|
description = "
|
|
|
|
Any additional entries you want added to the Grub boot menu.
|
|
|
|
";
|
|
|
|
};
|
2007-03-03 23:20:08 +00:00
|
|
|
|
2008-01-04 15:02:31 +00:00
|
|
|
grubSplashImage = mkOption {
|
|
|
|
default = pkgs.fetchurl {
|
|
|
|
url = http://www.gnome-look.org/CONTENT/content-files/36909-soft-tux.xpm.gz;
|
|
|
|
sha256 = "14kqdx2lfqvh40h6fjjzqgff1mwk74dmbjvmqphi6azzra7z8d59";
|
|
|
|
};
|
|
|
|
example = null;
|
|
|
|
description = "
|
|
|
|
Background image used for Grub. It must be a 640x480,
|
|
|
|
14-colour image in XPM format, optionally compressed with
|
|
|
|
<command>gzip</command> or <command>bzip2</command>. Set to
|
|
|
|
<literal>null</literal> to run Grub in text mode.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-01-04 16:11:12 +00: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>.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-01-10 04:43:19 +00:00
|
|
|
configurationLimit = mkOption {
|
|
|
|
default = 100;
|
|
|
|
example = 120;
|
|
|
|
description = "
|
|
|
|
Maximum of configurations in boot menu. GRUB has problems when
|
|
|
|
there are too many entries.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
2006-11-27 15:07:46 +00:00
|
|
|
|
|
|
|
|
2008-02-04 10:52:58 +00:00
|
|
|
# Hm, this sounds like a catch-all...
|
|
|
|
hardware = {
|
|
|
|
|
|
|
|
enableGo7007 = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
Enable this option to get support for the WIS GO7007SB
|
|
|
|
multi-format video encoder, which is used in a number of
|
|
|
|
devices such as the Plextor ConvertX TV402U USB TV device.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
networking = {
|
2007-02-12 16:00:55 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
hostName = mkOption {
|
|
|
|
default = "nixos";
|
2007-12-04 15:02:48 +00: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 18:12:23 +00:00
|
|
|
};
|
2007-02-12 16:00:55 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
extraHosts = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "192.168.0.1 lanlocalhost";
|
|
|
|
description = "Pasted verbatim into /etc/hosts.";
|
|
|
|
};
|
2007-03-03 23:20:08 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
useDHCP = mkOption {
|
|
|
|
default = true;
|
|
|
|
description = "
|
|
|
|
Whether to use DHCP to obtain an IP adress and other
|
|
|
|
configuration for all network interfaces that are not manually
|
|
|
|
configured.
|
|
|
|
";
|
|
|
|
};
|
2007-05-24 15:50:17 +01:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
interfaces = mkOption {
|
|
|
|
default = [];
|
|
|
|
example = [
|
|
|
|
{ name = "eth0";
|
|
|
|
ipAddress = "131.211.84.78";
|
|
|
|
subnetMask = "255.255.255.128";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
description = "
|
|
|
|
The configuration for each network interface. If
|
|
|
|
<option>networking.useDHCP</option> is true, then each interface
|
|
|
|
not listed here will be configured using DHCP.
|
|
|
|
";
|
|
|
|
};
|
2007-05-24 15:50:17 +01:00
|
|
|
|
2007-11-09 18:12:23 +00: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 17:43:56 +01:00
|
|
|
|
2007-11-09 18:12:23 +00: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 17:43:56 +01:00
|
|
|
|
2007-11-23 17:12:37 +00:00
|
|
|
domain = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "home";
|
|
|
|
description = "
|
|
|
|
The domain. It can be left empty if it is auto-detected through DHCP.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
enableIntel2200BGFirmware = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Turn on this option if you want firmware for the Intel
|
|
|
|
PRO/Wireless 2200BG to be loaded automatically. This is
|
|
|
|
required if you want to use this device. Intel requires you to
|
|
|
|
accept the license for this firmware, see
|
|
|
|
<link xlink:href='http://ipw2200.sourceforge.net/firmware.php?fid=7'/>.
|
|
|
|
";
|
|
|
|
};
|
2007-08-14 17:43:56 +01:00
|
|
|
|
2008-01-12 22:53:13 +00:00
|
|
|
enableIntel3945ABGFirmware = mkOption {
|
2008-01-25 12:54:27 +00:00
|
|
|
default = false;
|
2008-01-12 22:53:13 +00:00
|
|
|
description = "
|
|
|
|
This option enables automatic loading of the firmware for the Intel
|
2008-02-18 16:50:08 +00:00
|
|
|
PRO/Wireless 3945ABG.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
enableIntel4965AGNFirmware = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
This option enables automatic loading of the firmware for the Intel
|
|
|
|
PRO/Wireless 4965AGN.
|
2008-01-12 22:53:13 +00:00
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00: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 17:43:56 +01:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
interfaceMonitor = {
|
2007-11-08 18:15:12 +00:00
|
|
|
|
2007-11-09 18:12:23 +00: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 18:15:12 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
2007-11-08 18:15:12 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
defaultMailServer = {
|
2007-11-08 18:15:12 +00:00
|
|
|
|
2007-11-09 18:12:23 +00: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 13:35:15 +00:00
|
|
|
e-mail. If you don't want to run a ``real'' MTA like
|
2007-11-09 18:12:23 +00: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 17:12:37 +00:00
|
|
|
domain = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "example.org";
|
|
|
|
description = "
|
|
|
|
The domain from which mail will appear to be sent.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00: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 18:15:12 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
2007-11-08 18:15:12 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
2007-11-08 18:15:12 +00:00
|
|
|
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
fileSystems = mkOption {
|
2006-12-21 01:07:23 +00:00
|
|
|
default = [];
|
2006-11-27 15:07:46 +00:00
|
|
|
example = [
|
2006-12-21 00:16:20 +00:00
|
|
|
{ mountPoint = "/";
|
|
|
|
device = "/dev/hda1";
|
|
|
|
}
|
|
|
|
{ mountPoint = "/data";
|
|
|
|
device = "/dev/hda2";
|
2006-12-21 14:44:22 +00:00
|
|
|
fsType = "ext3";
|
2006-12-21 00:16:20 +00:00
|
|
|
options = "data=journal";
|
2006-11-27 15:07:46 +00:00
|
|
|
}
|
2007-01-10 13:58:48 +00:00
|
|
|
{ mountPoint = "/bigdisk";
|
|
|
|
label = "bigdisk";
|
|
|
|
}
|
2006-11-27 15:07:46 +00:00
|
|
|
];
|
|
|
|
description = "
|
2006-12-21 00:16:20 +00:00
|
|
|
The file systems to be mounted. It must include an entry for
|
2006-12-21 01:07:23 +00:00
|
|
|
the root directory (<literal>mountPoint = \"/\"</literal>) if
|
|
|
|
<literal>boot.autoDetectRootDevice</literal> is not set. Each
|
|
|
|
entry in the list is an attribute set with the following fields:
|
|
|
|
<literal>mountPoint</literal>, <literal>device</literal>,
|
2006-12-21 14:44:22 +00:00
|
|
|
<literal>fsType</literal> (a file system type recognised by
|
2006-12-21 01:07:23 +00:00
|
|
|
<command>mount</command>; defaults to
|
2006-12-21 14:44:22 +00: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 13:58:48 +00:00
|
|
|
|
|
|
|
Instead of specifying <literal>device</literal>, you can also
|
2007-01-23 11:18:23 +00:00
|
|
|
specify a volume label (<literal>label</literal>) for file
|
2007-01-10 13:58:48 +00:00
|
|
|
systems that support it, such as ext2/ext3 (see <command>mke2fs
|
|
|
|
-L</command>).
|
2007-12-31 08:52:59 +00:00
|
|
|
|
|
|
|
<literal>autocreate</literal> forces <literal>mountPoint</literal> to be created with
|
|
|
|
<command>mkdir -p</command> .
|
2006-11-27 15:07:46 +00:00
|
|
|
";
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
2006-11-27 15:07:46 +00:00
|
|
|
|
2006-12-18 17:41:57 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
swapDevices = mkOption {
|
2006-12-21 01:07:23 +00:00
|
|
|
default = [];
|
2007-01-10 13:07:57 +00:00
|
|
|
example = [
|
2007-11-09 18:12:23 +00:00
|
|
|
{ device = "/dev/hda7"; }
|
|
|
|
{ device = "/var/swapfile"; }
|
|
|
|
{ label = "bigswap"; }
|
2007-01-10 13:07:57 +00:00
|
|
|
];
|
2006-12-21 01:07:23 +00:00
|
|
|
description = "
|
|
|
|
The swap devices and swap files. These must have been
|
2007-01-10 13:07:57 +00: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 11:06:31 +00:00
|
|
|
<command>mkswap -L</command>). Using a label is
|
2007-01-10 13:07:57 +00:00
|
|
|
recommended.
|
2006-12-21 01:07:23 +00:00
|
|
|
";
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
2006-12-21 01:07:23 +00:00
|
|
|
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
services = {
|
2006-12-18 17:41:57 +00:00
|
|
|
|
2006-12-11 16:10:23 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
extraJobs = mkOption {
|
|
|
|
default = [];
|
|
|
|
description = "
|
|
|
|
Additional Upstart jobs.
|
|
|
|
";
|
2007-01-08 22:41:41 +00:00
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
|
|
|
|
syslogd = {
|
2007-01-08 22:41:41 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
tty = mkOption {
|
|
|
|
default = 10;
|
|
|
|
description = "
|
|
|
|
The tty device on which syslogd will print important log
|
|
|
|
messages.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
2006-12-11 16:10:23 +00:00
|
|
|
|
2007-01-23 11:18:23 +00:00
|
|
|
|
2008-02-01 12:01:27 +00:00
|
|
|
cron = {
|
|
|
|
|
|
|
|
systemCronJobs = mkOption {
|
|
|
|
default = [];
|
|
|
|
example = [
|
|
|
|
"* * * * * test ls -l / > /tmp/cronout 2>&1"
|
|
|
|
"* * * * * eelco echo Hello World > /home/eelco/cronout"
|
|
|
|
];
|
|
|
|
description = ''
|
|
|
|
A list of Cron jobs to be appended to the system-wide
|
|
|
|
crontab. See the manual page for crontab for the expected
|
|
|
|
format.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-02-01 12:35:51 +00:00
|
|
|
locate = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = ''
|
|
|
|
If enabled, NixOS will periodically update the database of
|
|
|
|
files used by the <command>locate</command> command.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
period = mkOption {
|
|
|
|
default = "15 02 * * *";
|
|
|
|
description = ''
|
|
|
|
This option defines (in the format used by cron) when the
|
|
|
|
locate database is updated.
|
|
|
|
The default is to update at 02:15 (at night) every day.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
ttyBackgrounds = {
|
2006-11-27 15:07:46 +00:00
|
|
|
|
2007-11-09 18:12:23 +00: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 16:41:38 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
2007-03-16 16:41:38 +00:00
|
|
|
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
mingetty = {
|
2006-11-27 15:07:46 +00:00
|
|
|
|
2007-11-09 18:12:23 +00: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 15:07:46 +00:00
|
|
|
|
2007-11-09 18:12:23 +00: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 17:19:17 +00:00
|
|
|
|
2008-01-04 17:05:48 +00: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 18:12:23 +00:00
|
|
|
};
|
2006-12-21 23:43:17 +00:00
|
|
|
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
dhcpd = {
|
2006-12-16 18:24:49 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable the DHCP server.
|
|
|
|
";
|
|
|
|
};
|
2007-10-26 06:52:35 +01:00
|
|
|
|
2007-12-04 14:53:37 +00:00
|
|
|
extraConfig = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "
|
|
|
|
option subnet-mask 255.255.255.0;
|
|
|
|
option broadcast-address 192.168.1.255;
|
|
|
|
option routers 192.168.1.5;
|
|
|
|
option domain-name-servers 130.161.158.4, 130.161.33.17, 130.161.180.1;
|
|
|
|
option domain-name \"example.org\";
|
|
|
|
subnet 192.168.1.0 netmask 255.255.255.0 {
|
|
|
|
range 192.168.1.100 192.168.1.200;
|
|
|
|
}
|
|
|
|
";
|
|
|
|
description = "
|
|
|
|
Extra text to be appended to the DHCP server configuration
|
|
|
|
file. Currently, you almost certainly need to specify
|
|
|
|
something here, such as the options specifying the subnet
|
|
|
|
mask, DNS servers, etc.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
configFile = mkOption {
|
2007-12-04 14:53:37 +00:00
|
|
|
default = null;
|
2007-11-09 18:12:23 +00:00
|
|
|
description = "
|
2007-12-04 14:53:37 +00:00
|
|
|
The path of the DHCP server configuration file. If no file
|
|
|
|
is specified, a file is generated using the other options.
|
2007-11-09 18:12:23 +00:00
|
|
|
";
|
|
|
|
};
|
2007-02-26 23:11:32 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
interfaces = mkOption {
|
|
|
|
default = ["eth0"];
|
|
|
|
description = "
|
|
|
|
The interfaces on which the DHCP server should listen.
|
|
|
|
";
|
|
|
|
};
|
2007-02-26 23:11:32 +00:00
|
|
|
|
2007-12-04 14:53:37 +00:00
|
|
|
machines = mkOption {
|
|
|
|
default = [];
|
|
|
|
example = [
|
|
|
|
{ hostName = "foo";
|
|
|
|
ethernetAddress = "00:16:76:9a:32:1d";
|
|
|
|
ipAddress = "192.168.1.10";
|
|
|
|
}
|
|
|
|
{ hostName = "bar";
|
|
|
|
ethernetAddress = "00:19:d1:1d:c4:9a";
|
|
|
|
ipAddress = "192.168.1.11";
|
|
|
|
}
|
|
|
|
];
|
2008-01-02 15:31:04 +00:00
|
|
|
description = "
|
2008-01-02 12:50:46 +00:00
|
|
|
A list mapping ethernet addresses to IP addresses for the
|
|
|
|
DHCP server.
|
2008-01-02 15:31:04 +00:00
|
|
|
";
|
2007-12-04 14:53:37 +00:00
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
2007-02-26 23:11:32 +00:00
|
|
|
|
2007-02-27 00:31:04 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
sshd = {
|
2007-03-06 00:07:00 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable the Secure Shell daemon, which allows secure
|
|
|
|
remote logins.
|
|
|
|
";
|
|
|
|
};
|
2007-03-06 00:07:00 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
forwardX11 = mkOption {
|
|
|
|
default = true;
|
|
|
|
description = "
|
|
|
|
Whether to enable sshd to forward X11 connections.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
allowSFTP = mkOption {
|
|
|
|
default = true;
|
|
|
|
description = "
|
|
|
|
Whether to enable the SFTP subsystem in the SSH daemon. This
|
|
|
|
enables the use of commands such as <command>sftp</command> and
|
|
|
|
<command>sshfs</command>.
|
|
|
|
";
|
|
|
|
};
|
2007-04-02 16:01:09 +01:00
|
|
|
|
2007-06-05 12:51:59 +01:00
|
|
|
};
|
|
|
|
|
2007-09-24 06:16:15 +01:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
ntp = {
|
2007-09-24 06:16:15 +01:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
enable = mkOption {
|
|
|
|
default = true;
|
|
|
|
description = "
|
|
|
|
Whether to synchronise your machine's time using the NTP
|
|
|
|
protocol.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
servers = mkOption {
|
|
|
|
default = [
|
|
|
|
"0.pool.ntp.org"
|
|
|
|
"1.pool.ntp.org"
|
|
|
|
"2.pool.ntp.org"
|
|
|
|
];
|
|
|
|
description = "
|
|
|
|
The set of NTP servers from which to synchronise.
|
|
|
|
";
|
|
|
|
};
|
2006-12-18 19:20:03 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
2007-02-27 19:04:30 +00:00
|
|
|
|
2008-02-18 09:15:10 +00:00
|
|
|
bitlbee = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
Whether the run the BitlBee IRC to other chat network gateway.
|
|
|
|
Running it allows you to access the MSN, Jabber, Yahoo! and ICQ chat
|
|
|
|
networks via an IRC client.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
interface = mkOption {
|
|
|
|
default = "127.0.0.1";
|
|
|
|
description = ''
|
|
|
|
The interface the BitlBee deamon will be listening to. If `127.0.0.1',
|
|
|
|
only clients on the local host can connect to it; if `0.0.0.0', clients
|
|
|
|
can access it from any network interface.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
portNumber = mkOption {
|
|
|
|
default = "6667";
|
|
|
|
description = ''
|
|
|
|
Number of the port BitlBee will be listening to.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
2006-12-18 19:46:48 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
xserver = {
|
2006-12-18 19:46:48 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable the X server.
|
|
|
|
";
|
|
|
|
};
|
2006-12-18 19:46:48 +00:00
|
|
|
|
2007-12-31 08:52:59 +00:00
|
|
|
autorun = mkOption {
|
|
|
|
default = true;
|
|
|
|
description = "
|
|
|
|
Switch to false to create upstart-job and configuration,
|
|
|
|
but not run it automatically
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
exportConfiguration = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Create /etc/X11/xorg.conf and a file with environment
|
|
|
|
variables
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
tcpEnable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable TCP socket for the X server.
|
|
|
|
";
|
|
|
|
};
|
2006-12-18 19:46:48 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
resolutions = mkOption {
|
|
|
|
default = [{x = 1024; y = 768;} {x = 800; y = 600;} {x = 640; y = 480;}];
|
|
|
|
description = "
|
|
|
|
The screen resolutions for the X server. The first element is the default resolution.
|
|
|
|
";
|
|
|
|
};
|
2006-12-18 19:46:48 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
videoDriver = mkOption {
|
|
|
|
default = "vesa";
|
|
|
|
example = "i810";
|
|
|
|
description = "
|
|
|
|
The name of the video driver for your graphics card.
|
|
|
|
";
|
|
|
|
};
|
2006-12-18 19:46:48 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
driSupport = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable accelerated OpenGL rendering through the
|
|
|
|
Direct Rendering Interface (DRI).
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
sessionType = mkOption {
|
|
|
|
default = "gnome";
|
|
|
|
example = "xterm";
|
|
|
|
description = "
|
|
|
|
The kind of session to start after login. Current possibilies
|
|
|
|
are <literal>kde</literal> (which starts KDE),
|
|
|
|
<literal>gnome</literal> (which starts
|
|
|
|
<command>gnome-terminal</command>) and <literal>xterm</literal>
|
|
|
|
(which starts <command>xterm</command>).
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
windowManager = mkOption {
|
|
|
|
default = "";
|
|
|
|
description = "
|
|
|
|
This option selects the window manager. Available values are
|
|
|
|
<literal>twm</literal> (extremely primitive),
|
2008-01-16 16:53:32 +00:00
|
|
|
<literal>metacity</literal>, <literal>xmonad</literal>
|
|
|
|
and <literal>compiz</literal>. If
|
2007-11-09 18:12:23 +00:00
|
|
|
left empty, the <option>sessionType</option> determines the
|
|
|
|
window manager, e.g., Metacity for Gnome, and
|
|
|
|
<command>kwm</command> for KDE.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
renderingFlag = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "--indirect-rendering";
|
|
|
|
description = "
|
|
|
|
Possibly pass --indierct-rendering to Compiz.
|
|
|
|
";
|
|
|
|
};
|
2006-12-18 19:46:48 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
sessionStarter = mkOption {
|
|
|
|
example = "${pkgs.xterm}/bin/xterm -ls";
|
|
|
|
description = "
|
|
|
|
The command executed after login and after the window manager
|
|
|
|
has been started. Used if
|
2008-01-16 15:33:09 +00:00
|
|
|
<option>services.xserver.sessionType</option> is empty.
|
2007-11-09 18:12:23 +00:00
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
startSSHAgent = mkOption {
|
|
|
|
default = true;
|
|
|
|
description = "
|
|
|
|
Whether to start the SSH agent when you log in. The SSH agent
|
|
|
|
remembers private keys for you so that you don't have to type in
|
|
|
|
passphrases every time you make an SSH connection. Use
|
|
|
|
<command>ssh-add</command> to add a key to the agent.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
slim = {
|
|
|
|
|
|
|
|
theme = mkOption {
|
|
|
|
default = null;
|
|
|
|
example = pkgs.fetchurl {
|
|
|
|
url = http://download.berlios.de/slim/slim-wave.tar.gz;
|
|
|
|
sha256 = "0ndr419i5myzcylvxb89m9grl2xyq6fbnyc3lkd711mzlmnnfxdy";
|
|
|
|
};
|
|
|
|
description = "
|
|
|
|
The theme for the SLiM login manager. If not specified, SLiM's
|
|
|
|
default theme is used. See <link
|
|
|
|
xlink:href='http://slim.berlios.de/themes01.php'/> for a
|
|
|
|
collection of themes.
|
|
|
|
";
|
|
|
|
};
|
2007-02-27 19:04:30 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
2006-12-18 19:46:48 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
isClone = mkOption {
|
2008-01-04 10:36:14 +00:00
|
|
|
default = true;
|
|
|
|
example = false;
|
2007-11-09 18:12:23 +00:00
|
|
|
description = "
|
|
|
|
Whether to enable the X server clone mode for dual-head.
|
|
|
|
";
|
|
|
|
};
|
2006-12-19 01:03:15 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
isSynaptics = mkOption {
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "
|
|
|
|
Whether to replace mouse with touchpad.
|
|
|
|
";
|
|
|
|
};
|
2006-12-19 01:03:15 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
devSynaptics = mkOption {
|
|
|
|
default = "/dev/input/event0";
|
|
|
|
description = "
|
|
|
|
Event device for Synaptics touchpad.
|
|
|
|
";
|
|
|
|
};
|
2007-02-12 11:57:18 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
layout = mkOption {
|
|
|
|
default = "us";
|
|
|
|
description = "
|
|
|
|
Keyboard layout.
|
|
|
|
";
|
|
|
|
};
|
2006-12-19 01:03:15 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
xkbOptions = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "grp:caps_toggle, grp_led:scroll";
|
|
|
|
description = "
|
|
|
|
X keyboard options; layout switching goes here.
|
|
|
|
";
|
|
|
|
};
|
2007-02-22 10:55:58 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
useInternalAGPGART = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "no";
|
|
|
|
description = "
|
|
|
|
Just the wrapper for an xorg.conf option.
|
|
|
|
";
|
|
|
|
};
|
2007-02-22 10:55:58 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
extraDeviceConfig = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "VideoRAM 131072";
|
|
|
|
description = "
|
|
|
|
Just anything to add into Device section.
|
|
|
|
";
|
|
|
|
};
|
2007-02-22 10:55:58 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
extraMonitorSettings = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "HorizSync 28-49";
|
|
|
|
description = "
|
|
|
|
Just anything to add into Monitor section.
|
|
|
|
";
|
|
|
|
};
|
2007-02-20 15:11:49 +00:00
|
|
|
|
2008-01-02 21:16:58 +00:00
|
|
|
extraDisplaySettings = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "Virtual 2048 2048";
|
|
|
|
description = "
|
|
|
|
Just anything to add into Display subsection (located in Screen section).
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
extraModules = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "
|
|
|
|
SubSection \"extmod\"
|
|
|
|
EndSubsection
|
|
|
|
";
|
|
|
|
description = "
|
|
|
|
Just anything to add into Modules section.
|
|
|
|
";
|
|
|
|
};
|
2007-02-20 15:11:49 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
serverLayoutOptions = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "
|
|
|
|
Option \"AIGLX\" \"true\"
|
|
|
|
";
|
|
|
|
description = "
|
|
|
|
Just anything to add into Monitor section.
|
|
|
|
";
|
|
|
|
};
|
2007-04-02 18:31:58 +01:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
defaultDepth = mkOption {
|
|
|
|
default = 24;
|
|
|
|
example = 8;
|
|
|
|
description = "
|
|
|
|
Default colour depth.
|
|
|
|
";
|
|
|
|
};
|
2007-12-25 12:16:38 +00:00
|
|
|
|
|
|
|
useXFS = mkOption {
|
|
|
|
default = false;
|
|
|
|
example = "unix/:7100";
|
|
|
|
description = "
|
|
|
|
Way to access the X Font Server to use.
|
|
|
|
";
|
|
|
|
};
|
2007-06-08 19:56:55 +01:00
|
|
|
|
2008-01-04 10:54:33 +00:00
|
|
|
tty = mkOption {
|
|
|
|
default = 7;
|
|
|
|
example = 9;
|
|
|
|
description = "
|
|
|
|
Virtual console for the X server.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
display = mkOption {
|
|
|
|
default = 0;
|
|
|
|
example = 1;
|
|
|
|
description = "
|
|
|
|
Display number for the X server.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
2007-01-09 21:19:06 +00:00
|
|
|
|
2008-02-04 13:40:01 +00:00
|
|
|
ejabberd = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "Whether to enable ejabberd server";
|
|
|
|
};
|
|
|
|
|
|
|
|
user = mkOption {
|
|
|
|
default = "nobody";
|
|
|
|
description = "User account under which ejabberd runs.";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2008-01-28 15:16:14 +00:00
|
|
|
jboss = {
|
2008-01-28 20:04:48 +00:00
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "Whether to enable jboss";
|
|
|
|
};
|
|
|
|
|
2008-01-28 15:16:14 +00:00
|
|
|
tempDir = mkOption {
|
|
|
|
default = "/tmp";
|
|
|
|
description = "Location where JBoss stores its temp files";
|
|
|
|
};
|
|
|
|
|
|
|
|
logDir = mkOption {
|
|
|
|
default = "/var/log/jboss";
|
|
|
|
description = "Location of the logfile directory of JBoss";
|
|
|
|
};
|
|
|
|
|
|
|
|
serverDir = mkOption {
|
|
|
|
description = "Location of the server instance files";
|
|
|
|
default = "/var/jboss/server";
|
|
|
|
};
|
|
|
|
|
|
|
|
deployDir = mkOption {
|
|
|
|
description = "Location of the deployment files";
|
|
|
|
default = "/nix/var/nix/profiles/default/server/default/deploy/";
|
|
|
|
};
|
|
|
|
|
|
|
|
libUrl = mkOption {
|
|
|
|
default = "file:///nix/var/nix/profiles/default/server/default/lib";
|
|
|
|
description = "Location where the shared library JARs are stored";
|
|
|
|
};
|
|
|
|
|
|
|
|
user = mkOption {
|
|
|
|
default = "nobody";
|
|
|
|
description = "User account under which jboss runs.";
|
|
|
|
};
|
|
|
|
|
|
|
|
useJK = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "Whether to use to connector to the Apache HTTP server";
|
|
|
|
};
|
|
|
|
};
|
2007-08-15 13:01:20 +01:00
|
|
|
|
2008-01-30 11:00:00 +00:00
|
|
|
tomcat = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "Whether to enable Apache Tomcat";
|
|
|
|
};
|
|
|
|
|
|
|
|
baseDir = mkOption {
|
|
|
|
default = "/var/tomcat";
|
|
|
|
description = "Location where Tomcat stores configuration files, webapplications and logfiles";
|
|
|
|
};
|
|
|
|
|
|
|
|
user = mkOption {
|
|
|
|
default = "nobody";
|
|
|
|
description = "User account under which Apache Tomcat runs.";
|
|
|
|
};
|
2008-01-30 14:38:27 +00:00
|
|
|
|
|
|
|
deployFrom = mkOption {
|
|
|
|
default = "";
|
|
|
|
description = "Location where webapplications are stored. Leave empty to use the baseDir.";
|
|
|
|
};
|
2008-01-30 11:00:00 +00:00
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
httpd = {
|
2007-02-28 16:58:35 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable the Apache httpd server.
|
|
|
|
";
|
|
|
|
};
|
2007-01-11 16:29:23 +00:00
|
|
|
|
2008-02-04 10:52:58 +00:00
|
|
|
experimental = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to use the new-style Apache configuration.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00: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 22:44:26 +01:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
group = mkOption {
|
|
|
|
default = "wwwrun";
|
|
|
|
description = "
|
|
|
|
Group under which httpd runs. The account is created
|
|
|
|
automatically if it doesn't exist.
|
|
|
|
";
|
|
|
|
};
|
2007-04-07 22:44:26 +01:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
httpsPort = mkOption {
|
|
|
|
default = 443;
|
|
|
|
description = "
|
|
|
|
Port for encrypted HTTP requests.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-12-12 13:58:15 +00:00
|
|
|
enableSSL = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable SSL (https) support.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00: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.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-12-12 15:30:17 +00:00
|
|
|
enableUserDir = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable serving <filename>~/public_html</filename> as
|
|
|
|
<literal>/~<replaceable>username</replaceable></literal>.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
mod_php = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "Whether to enable the PHP module.";
|
|
|
|
};
|
|
|
|
|
2008-01-28 15:40:29 +00:00
|
|
|
mod_jk = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
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 15:44:59 +00:00
|
|
|
};
|
2008-02-14 07:42:52 +00:00
|
|
|
|
2008-02-14 14:14:39 +00: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 18:12:23 +00:00
|
|
|
subservices = {
|
|
|
|
|
2008-02-14 09:54:25 +00:00
|
|
|
# !!! remove this
|
2007-11-09 18:12:23 +00:00
|
|
|
subversion = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable the Subversion subservice in the webserver.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
notificationSender = mkOption {
|
2007-11-13 15:51:24 +00:00
|
|
|
default = "svn-server@example.org";
|
2007-11-09 18:12:23 +00: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 {
|
2007-11-13 15:51:24 +00:00
|
|
|
default = "example.org";
|
2007-11-09 18:12:23 +00: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.
|
|
|
|
";
|
|
|
|
};
|
2007-11-13 15:51:24 +00:00
|
|
|
|
|
|
|
dataDir = mkOption {
|
|
|
|
default = "/no/such/path/exists";
|
|
|
|
description = "
|
|
|
|
Place to put SVN repository.
|
|
|
|
";
|
|
|
|
};
|
2007-11-09 18:12:23 +00: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 13:20:26 +00: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 18:12:23 +00:00
|
|
|
|
2008-02-07 12:41:18 +00:00
|
|
|
vsftpd = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable the vsftpd FTP server.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-02-07 13:37:20 +00:00
|
|
|
anonymousUser = mkOption {
|
2008-02-07 12:41:18 +00:00
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable the anonymous FTP user.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
printing = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable printing support through the CUPS daemon.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
dbus = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = true;
|
|
|
|
description = "
|
|
|
|
Whether to start the D-Bus message bus daemon. It is required
|
|
|
|
by the HAL service.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
hal = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = true;
|
|
|
|
description = "
|
|
|
|
Whether to start the HAL 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-01-02 10:07:52 +00:00
|
|
|
|
|
|
|
sndMode = mkOption {
|
|
|
|
default = "0600";
|
|
|
|
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.
|
|
|
|
";
|
|
|
|
};
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
samba = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable the samba server. (to communicate with, and provide windows shares)
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
gw6c = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable Gateway6 client (IPv6 tunnel).
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-01-11 06:36:15 +00:00
|
|
|
autorun = mkOption {
|
|
|
|
default = true;
|
|
|
|
description = "
|
|
|
|
Switch to false to create upstart-job and configuration,
|
|
|
|
but not run it automatically
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
username = mkOption {
|
|
|
|
default = "";
|
|
|
|
description = "
|
|
|
|
Your Gateway6 login name, if any.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
password = mkOption {
|
|
|
|
default = "";
|
|
|
|
description = "
|
|
|
|
Your Gateway6 password, if any.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
server = mkOption {
|
|
|
|
default = "anon.freenet6.net";
|
|
|
|
example = "broker.freenet6.net";
|
|
|
|
description = "
|
|
|
|
Used Gateway6 server.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
keepAlive = mkOption {
|
|
|
|
default = "30";
|
|
|
|
example = "2";
|
|
|
|
description = "
|
|
|
|
Gateway6 keep-alive period.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
everPing = mkOption {
|
|
|
|
default = "1000000";
|
|
|
|
example = "2";
|
|
|
|
description = "
|
|
|
|
Gateway6 manual ping period.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2007-11-12 16:43:35 +00:00
|
|
|
nagios = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to use <link
|
|
|
|
xlink:href='http://www.nagios.org/'>Nagios</link> to monitor
|
|
|
|
your system or network.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
objectDefs = mkOption {
|
|
|
|
description = "
|
|
|
|
A list of Nagios object configuration files that must define
|
|
|
|
the hosts, host groups, services and contacts for the
|
|
|
|
network that you want Nagios to monitor.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
plugins = mkOption {
|
|
|
|
default = [pkgs.nagiosPluginsOfficial pkgs.ssmtp];
|
|
|
|
description = "
|
|
|
|
Packages to be added to the Nagios <envar>PATH</envar>.
|
|
|
|
Typically used to add plugins, but can be anything.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-23 10:56:12 +00:00
|
|
|
enableWebInterface = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable the Nagios web interface. You should also
|
|
|
|
enable Apache (<option>services.httpd.enable</option>).
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
urlPath = mkOption {
|
|
|
|
default = "/nagios";
|
|
|
|
description = "
|
|
|
|
The URL path under which the Nagios web interface appears.
|
|
|
|
That is, you can access the Nagios web interface through
|
|
|
|
<literal>http://<replaceable>server</replaceable>/<replaceable>urlPath</replaceable></literal>.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-12 16:43:35 +00:00
|
|
|
};
|
|
|
|
|
2008-01-28 14:55:12 +00:00
|
|
|
mysql = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable the MySQL server.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
port = mkOption {
|
|
|
|
default = "3306";
|
|
|
|
description = "Port of MySQL";
|
|
|
|
};
|
|
|
|
|
|
|
|
user = mkOption {
|
|
|
|
default = "nobody";
|
|
|
|
description = "User account under which MySQL runs";
|
|
|
|
};
|
|
|
|
|
2008-02-07 14:02:38 +00:00
|
|
|
dataDir = mkOption {
|
2008-01-28 14:55:12 +00:00
|
|
|
default = "/var/mysql";
|
|
|
|
description = "Location where MySQL stores its table files";
|
|
|
|
};
|
|
|
|
|
2008-02-07 14:02:38 +00:00
|
|
|
logError = mkOption {
|
2008-01-28 14:55:12 +00:00
|
|
|
default = "/var/log/mysql_err.log";
|
|
|
|
description = "Location of the MySQL error logfile";
|
|
|
|
};
|
|
|
|
|
2008-02-07 14:02:38 +00:00
|
|
|
pidFile = mkOption {
|
2008-01-28 14:55:12 +00:00
|
|
|
default = "/var/mysql/mysql.pid";
|
|
|
|
description = "Location of the file which stores the PID of the MySQL server";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2007-12-03 04:48:31 +00:00
|
|
|
postgresql = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to run PostgreSQL.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
port = mkOption {
|
|
|
|
default = "5432";
|
|
|
|
description = "
|
|
|
|
Port for PostgreSQL.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
logDir = mkOption {
|
|
|
|
default = "/var/log/postgresql";
|
|
|
|
description = "
|
|
|
|
Log directory for PostgreSQL.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
dataDir = mkOption {
|
|
|
|
default = "/var/db/postgresql";
|
|
|
|
description = "
|
|
|
|
Data directory for PostgreSQL.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
subServices = mkOption {
|
|
|
|
default = [];
|
|
|
|
description = "
|
|
|
|
Subservices list. As it is already implememnted,
|
|
|
|
here is an interface...
|
|
|
|
";
|
|
|
|
};
|
2008-02-18 11:56:43 +00:00
|
|
|
authentication = mkOption {
|
|
|
|
default = ''
|
|
|
|
# Generated file; do not edit!
|
|
|
|
local all all ident sameuser
|
|
|
|
host all all 127.0.0.1/32 md5
|
|
|
|
host all all ::1/128 md5
|
|
|
|
'';
|
|
|
|
description = "
|
|
|
|
Hosts (except localhost), who you allow to connect.
|
|
|
|
";
|
|
|
|
};
|
2007-12-03 04:48:31 +00:00
|
|
|
allowedHosts = mkOption {
|
|
|
|
default = [];
|
|
|
|
description = "
|
|
|
|
Hosts (except localhost), who you allow to connect.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
authMethod = mkOption {
|
|
|
|
default = " ident sameuser ";
|
|
|
|
description = "
|
|
|
|
How to authorize users.
|
|
|
|
Note: ident needs absolute trust to all allowed client hosts.";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2007-11-12 16:43:35 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installer = {
|
|
|
|
|
|
|
|
nixpkgsURL = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = http://nix.cs.uu.nl/dist/nix/nixpkgs-0.11pre7577;
|
|
|
|
description = "
|
|
|
|
URL of the Nixpkgs distribution to use when building the
|
|
|
|
installation CD.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
manifests = mkOption {
|
|
|
|
default = [http://nix.cs.uu.nl/dist/nix/channels-v3/nixpkgs-unstable/MANIFEST];
|
|
|
|
example =
|
|
|
|
[ http://nix.cs.uu.nl/dist/nix/channels-v3/nixpkgs-unstable/MANIFEST
|
|
|
|
http://nix.cs.uu.nl/dist/nix/channels-v3/nixpkgs-stable/MANIFEST
|
|
|
|
];
|
|
|
|
description = "
|
|
|
|
URLs of manifests to be downloaded when you run
|
|
|
|
<command>nixos-rebuild</command> to speed up builds.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
|
|
|
|
maxJobs = mkOption {
|
|
|
|
default = 1;
|
|
|
|
example = 2;
|
|
|
|
description = "
|
|
|
|
This option defines the maximum number of jobs that Nix will try
|
|
|
|
to build in parallel. The default is 1. You should generally
|
|
|
|
set it to the number of CPUs in your system (e.g., 2 on a Athlon
|
|
|
|
64 X2).
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
useChroot = mkOption {
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "
|
|
|
|
If set, Nix will perform builds in a chroot-environment that it
|
|
|
|
will set up automatically for each build. This prevents
|
|
|
|
impurities in builds by disallowing access to dependencies
|
|
|
|
outside of the Nix store.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
extraOptions = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "
|
|
|
|
gc-keep-outputs = true
|
|
|
|
gc-keep-derivations = true
|
|
|
|
";
|
|
|
|
description = "
|
|
|
|
This option allows to append lines to nix.conf.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-15 17:16:16 +00:00
|
|
|
distributedBuilds = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to distribute builds to the machines listed in
|
|
|
|
<option>nix.buildMachines</option>.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildMachines = mkOption {
|
|
|
|
example = [
|
|
|
|
{ hostName = "voila.labs.cs.uu.nl";
|
|
|
|
sshUser = "nix";
|
|
|
|
sshKey = "/root/.ssh/id_buildfarm";
|
|
|
|
system = "powerpc-darwin";
|
|
|
|
maxJobs = 1;
|
|
|
|
}
|
|
|
|
{ hostName = "linux64.example.org";
|
|
|
|
sshUser = "buildfarm";
|
|
|
|
sshKey = "/root/.ssh/id_buildfarm";
|
|
|
|
system = "x86_64-linux";
|
|
|
|
maxJobs = 2;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
description = "
|
|
|
|
This option lists the machines to be used if distributed
|
|
|
|
builds are enabled (see
|
|
|
|
<option>nix.distributedBuilds</option>). Nix will perform
|
|
|
|
derivations on those machines via SSh by copying the inputs to
|
|
|
|
the Nix store on the remote machine, starting the build, then
|
|
|
|
copying the output back to the local Nix store. Each element
|
|
|
|
of the list should be an attribute set containing the
|
|
|
|
machine's host name (<varname>hostname</varname>), the user
|
|
|
|
name to be used for the SSH connection
|
|
|
|
(<varname>sshUser</varname>), the Nix system type
|
|
|
|
(<varname>system</varname>, e.g.,
|
|
|
|
<literal>\"i686-linux\"</literal>), the maximum number of jobs
|
|
|
|
to be run in parallel on that machine
|
|
|
|
(<varname>maxJobs</varname>), and the path to the SSH private
|
|
|
|
key to be used to connect (<varname>sshKey</varname>). The
|
|
|
|
SSH private key should not have a passphrase, and the
|
|
|
|
corresponding public key should be added to
|
2007-11-21 14:39:52 +00:00
|
|
|
<filename>~<replaceable>sshUser</replaceable>/authorized_keys</filename>
|
2007-11-15 17:16:16 +00:00
|
|
|
on the remote machine.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
2007-08-16 16:09:06 +01:00
|
|
|
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
security = {
|
|
|
|
|
|
|
|
setuidPrograms = mkOption {
|
|
|
|
default = ["passwd" "su" "crontab" "ping" "ping6"];
|
|
|
|
description = "
|
|
|
|
Only the programs listed here will be made setuid root (through
|
|
|
|
a wrapper program). It's better to set
|
|
|
|
<option>security.extraSetuidPrograms</option>.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
extraSetuidPrograms = mkOption {
|
|
|
|
default = [];
|
|
|
|
example = ["fusermount"];
|
|
|
|
description = "
|
|
|
|
This option lists additional programs that must be made setuid
|
|
|
|
root.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
sudo = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = true;
|
|
|
|
description = "
|
|
|
|
Whether to enable the <command>sudo</command> command, which
|
|
|
|
allows non-root users to execute commands as root.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
configFile = mkOption {
|
|
|
|
default = "
|
2007-08-16 16:09:06 +01:00
|
|
|
# WARNING: do not edit this file directly or with \"visudo\". Instead,
|
|
|
|
# edit the source file in /etc/nixos/nixos/etc/sudoers.
|
|
|
|
|
|
|
|
# \"root\" is allowed to do anything.
|
|
|
|
root ALL=(ALL) SETENV: ALL
|
|
|
|
|
|
|
|
# Users in the \"wheel\" group can do anything.
|
|
|
|
%wheel ALL=(ALL) SETENV: ALL
|
2007-11-09 18:12:23 +00:00
|
|
|
";
|
|
|
|
description = "
|
|
|
|
This string contains the contents of the
|
|
|
|
<filename>sudoers</filename> file. If syntax errors are
|
|
|
|
detected in this file, the NixOS configuration will fail to
|
|
|
|
build.
|
|
|
|
";
|
|
|
|
};
|
2007-08-16 16:09:06 +01:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
2007-08-16 16:09:06 +01:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
2007-01-16 16:09:43 +00:00
|
|
|
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
users = {
|
2007-01-16 16:09:43 +00:00
|
|
|
|
2007-11-16 13:26:34 +00:00
|
|
|
extraUsers = mkOption {
|
|
|
|
default = [];
|
|
|
|
example = [
|
|
|
|
{ name = "alice";
|
|
|
|
uid = 1234;
|
|
|
|
description = "Alice";
|
|
|
|
home = "/home/alice";
|
|
|
|
createHome = true;
|
|
|
|
group = "users";
|
|
|
|
extraGroups = ["wheel"];
|
2008-01-11 16:59:39 +00:00
|
|
|
shell = "/bin/sh";
|
2007-11-16 13:26:34 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
description = "
|
|
|
|
Additional user accounts to be created automatically by the system.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
extraGroups = mkOption {
|
|
|
|
default = [];
|
|
|
|
example = [
|
|
|
|
{ name = "students";
|
|
|
|
gid = 1001;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
description = "
|
|
|
|
Additional groups to be created automatically by the system.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
ldap = {
|
2007-01-16 16:09:43 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable authentication against an LDAP server.
|
|
|
|
";
|
|
|
|
};
|
2007-01-22 16:42:29 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
server = mkOption {
|
|
|
|
example = "ldap://ldap.example.org/";
|
|
|
|
description = "
|
|
|
|
The URL of the LDAP server.
|
|
|
|
";
|
|
|
|
};
|
2007-01-22 16:42:29 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
base = mkOption {
|
|
|
|
example = "dc=example,dc=org";
|
|
|
|
description = "
|
|
|
|
The distinguished name of the search base.
|
|
|
|
";
|
|
|
|
};
|
2007-09-25 20:00:20 +01:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
useTLS = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
If enabled, use TLS (encryption) over an LDAP (port 389)
|
|
|
|
connection. The alternative is to specify an LDAPS server (port
|
|
|
|
636) in <option>users.ldap.server</option> or to forego
|
|
|
|
security.
|
|
|
|
";
|
|
|
|
};
|
2007-03-01 00:36:00 +00:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
2007-04-04 14:47:54 +01:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
2007-04-04 14:47:54 +01:00
|
|
|
|
2007-04-04 18:10:38 +01:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
fonts = {
|
2007-04-04 18:10:38 +01:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
enableFontConfig = mkOption { # !!! should be enableFontconfig
|
|
|
|
default = true;
|
|
|
|
description = "
|
|
|
|
If enabled, a Fontconfig configuration file will be built
|
|
|
|
pointing to a set of default fonts. If you don't care about
|
|
|
|
running X11 applications or any other program that uses
|
|
|
|
Fontconfig, you can turn this option off and prevent a
|
|
|
|
dependency on all those fonts.
|
|
|
|
";
|
|
|
|
};
|
2007-04-04 18:10:38 +01:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
enableGhostscriptFonts = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to add the fonts provided by Ghostscript (such as
|
2007-11-10 13:35:15 +00:00
|
|
|
various URW fonts and the ``Base-14'' Postscript fonts) to the
|
2007-11-09 18:12:23 +00:00
|
|
|
list of system fonts, making them available to X11
|
|
|
|
applications.
|
|
|
|
";
|
|
|
|
};
|
2007-04-04 18:10:38 +01:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
enableFontDir = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to create a directory with links to all fonts in share -
|
|
|
|
so user can configure vncserver script one time (I mean per-user
|
|
|
|
vncserver, so global service is not a good solution).
|
|
|
|
";
|
|
|
|
};
|
2007-04-07 22:44:26 +01:00
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
extraFonts = mkOption {
|
|
|
|
default = pkgs: [];
|
|
|
|
description = "
|
|
|
|
Function, returning list of additional fonts.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
sound = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = true;
|
|
|
|
description = "
|
|
|
|
Whether to enable ALSA sound.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
i18n = {
|
|
|
|
|
|
|
|
defaultLocale = mkOption {
|
|
|
|
default = "en_US.UTF-8";
|
|
|
|
example = "nl_NL.UTF-8";
|
|
|
|
description = "
|
|
|
|
The default locale. It determines the language for program
|
|
|
|
messages, the format for dates and times, sort order, and so on.
|
|
|
|
It also determines the character set, such as UTF-8.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
consoleFont = mkOption {
|
|
|
|
default = "lat9w-16";
|
|
|
|
example = "LatArCyrHeb-16";
|
|
|
|
description = "
|
|
|
|
The font used for the virtual consoles. Leave empty to use
|
|
|
|
whatever the <command>setfont</command> program considers the
|
|
|
|
default font.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
consoleKeyMap = mkOption {
|
|
|
|
default = "us";
|
|
|
|
example = "fr";
|
|
|
|
description = "
|
|
|
|
The keyboard mapping table for the virtual consoles.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
|
2007-12-01 20:44:27 +00:00
|
|
|
pathsToLink = mkOption {
|
2008-01-07 11:46:17 +00:00
|
|
|
default = ["/bin" "/sbin" "/share" "/man" "/info"];
|
2007-12-01 20:44:27 +00:00
|
|
|
example = ["/"];
|
|
|
|
description = "
|
|
|
|
This allows to symlink more directories in /var/run/current-system/sw
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-01-22 17:55:57 +00:00
|
|
|
cleanStart = mkOption {
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "
|
|
|
|
There are some times when you want really small system for specific
|
|
|
|
purpose and do not want default package list. Setting
|
2008-02-08 22:43:59 +00:00
|
|
|
<varname>cleanStart</varname> to <literal>true</literal> allows you
|
2008-01-22 17:55:57 +00:00
|
|
|
to create a system with empty path - only extraPackages will be
|
2008-02-07 14:39:32 +00:00
|
|
|
included.
|
2008-01-22 17:55:57 +00:00
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 18:12:23 +00:00
|
|
|
extraPackages = mkOption {
|
|
|
|
default = pkgs: [];
|
|
|
|
example = pkgs: [pkgs.firefox pkgs.thunderbird];
|
|
|
|
description = "
|
|
|
|
This option allows you to add additional packages to the system
|
|
|
|
path. These packages are automatically available to all users,
|
|
|
|
and they are automatically updated every time you rebuild the
|
|
|
|
system configuration. (The latter is the main difference with
|
|
|
|
installing them in the default profile,
|
|
|
|
<filename>/nix/var/nix/profiles/default</filename>. The value
|
|
|
|
of this option must be a function that returns a list of
|
|
|
|
packages. The function will be called with the Nix Packages
|
|
|
|
collection as its argument for convenience.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-13 15:51:24 +00:00
|
|
|
nix = mkOption {
|
2008-01-30 01:14:03 +00:00
|
|
|
default = pkgs: pkgs.nixUnstable;
|
2008-01-02 13:05:24 +00:00
|
|
|
example = pkgs: pkgs.nixCustomFun /root/nix.tar.gz;
|
2008-01-02 15:31:04 +00:00
|
|
|
description = "
|
2008-01-02 13:05:24 +00:00
|
|
|
Use non-default Nix easily. Be careful, though, not to break everything.
|
2008-01-02 15:31:04 +00:00
|
|
|
";
|
2007-11-13 15:51:24 +00:00
|
|
|
};
|
|
|
|
|
2008-01-15 16:05:51 +00:00
|
|
|
checkConfigurationOptions = mkOption {
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "
|
|
|
|
If all configuration options must be checked. Non-existing options fail build.
|
|
|
|
";
|
|
|
|
};
|
2007-11-09 18:12:23 +00:00
|
|
|
};
|
2007-12-20 11:36:30 +00:00
|
|
|
|
|
|
|
nesting = {
|
2008-01-02 13:05:24 +00:00
|
|
|
children = mkOption {
|
|
|
|
default = [];
|
2008-01-02 15:31:04 +00:00
|
|
|
description = "
|
2008-01-02 13:05:24 +00:00
|
|
|
Additional configurations to build.
|
2008-01-02 15:31:04 +00:00
|
|
|
";
|
2008-01-02 13:05:24 +00:00
|
|
|
};
|
2007-12-20 11:36:30 +00:00
|
|
|
};
|
2007-11-09 18:12:23 +00:00
|
|
|
|
|
|
|
}
|