2008-08-08 20:56:58 +02:00
|
|
|
pkgs: config:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (pkgs.lib) mkOption;
|
2008-08-08 20:57:04 +02:00
|
|
|
inherit (builtins) head tail;
|
|
|
|
|
2008-08-08 20:57:09 +02:00
|
|
|
obsolete = what: f: name:
|
|
|
|
if builtins ? trace then
|
|
|
|
builtins.trace "${name}: Obsolete ${what}." f name
|
|
|
|
else f name;
|
|
|
|
|
|
|
|
obsoleteMerge =
|
|
|
|
obsolete "option" pkgs.lib.mergeDefaultOption;
|
|
|
|
|
2008-08-08 20:57:04 +02:00
|
|
|
# temporary modifications.
|
|
|
|
# backward here means that expression could either be a value or a
|
2008-08-08 20:57:07 +02:00
|
|
|
# function which expects to have a pkgs argument.
|
2008-08-08 20:57:09 +02:00
|
|
|
optionalPkgs = name: x:
|
2008-08-08 21:40:19 +02:00
|
|
|
if builtins.isFunction x
|
2008-08-08 20:57:09 +02:00
|
|
|
then obsolete "notation" (name: x pkgs) name
|
|
|
|
else x;
|
2008-08-08 20:57:04 +02:00
|
|
|
|
2008-08-08 20:57:07 +02:00
|
|
|
backwardPkgsFunListMerge = name: list:
|
2008-08-08 20:57:09 +02:00
|
|
|
pkgs.lib.concatMap (optionalPkgs name) list;
|
2008-08-08 20:57:04 +02:00
|
|
|
|
2008-08-08 20:57:07 +02:00
|
|
|
backwardPkgsFunMerge = name: list:
|
2008-08-08 20:57:04 +02:00
|
|
|
if list != [] && tail list == []
|
2008-08-08 20:57:09 +02:00
|
|
|
then optionalPkgs name (head list)
|
2008-08-08 20:57:04 +02:00
|
|
|
else abort "${name}: Defined at least twice.";
|
2008-08-08 20:57:09 +02:00
|
|
|
|
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
|
|
|
|
2007-11-09 19:12:23 +01: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 23:12:44 +01:00
|
|
|
|
2007-12-16 19:56:36 +01: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.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-03-24 20:37:32 +01:00
|
|
|
resumeDevice = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "0:0";
|
|
|
|
description = "
|
|
|
|
Device for manual resume attempt during boot. Looks like
|
2008-07-23 16:13:27 +02:00
|
|
|
major:minor .
|
2008-03-24 20:37:32 +01:00
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-05-22 13:59:46 +02:00
|
|
|
kernelPackages = mkOption {
|
2008-08-08 20:57:07 +02:00
|
|
|
default = pkgs.kernelPackages;
|
|
|
|
example = pkgs.kernelPackages_2_6_25;
|
|
|
|
merge = backwardPkgsFunMerge;
|
2007-11-09 19:12:23 +01:00
|
|
|
description = "
|
2008-05-22 13:59:46 +02:00
|
|
|
This option allows you to override the Linux kernel used by
|
|
|
|
NixOS. Since things like external kernel module packages are
|
|
|
|
tied to the kernel you're using, it also overrides those.
|
|
|
|
This option is a function that takes Nixpkgs as an argument
|
|
|
|
(as a convenience), and returns an attribute set containing at
|
|
|
|
the very least an attribute <varname>kernel</varname>.
|
|
|
|
Additional attributes may be needed depending on your
|
|
|
|
configuration. For instance, if you use the NVIDIA X driver,
|
|
|
|
then it also needs to contain an attribute
|
|
|
|
<varname>nvidiaDrivers</varname>.
|
2007-11-09 19:12:23 +01:00
|
|
|
";
|
|
|
|
};
|
2006-12-19 23:12:44 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
configurationName = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "Stable 2.6.21";
|
|
|
|
description = "
|
|
|
|
Grub entry name instead of default.
|
|
|
|
";
|
|
|
|
};
|
2007-02-09 17:19:29 +01:00
|
|
|
|
2007-11-09 19:12:23 +01: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 17:19:29 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
extraKernelParams = mkOption {
|
|
|
|
default = [
|
|
|
|
];
|
|
|
|
example = [
|
|
|
|
"debugtrace"
|
|
|
|
];
|
|
|
|
description = "
|
|
|
|
Additional user-defined kernel parameters.
|
|
|
|
";
|
|
|
|
};
|
2007-01-22 19:58:04 +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
|
|
|
|
2008-01-29 19:53:15 +01:00
|
|
|
extraModulePackages = mkOption {
|
2008-08-08 20:57:07 +02:00
|
|
|
default = [];
|
|
|
|
# !!! example = [pkgs.aufs pkgs.nvidiaDrivers];
|
2008-01-29 19:53:15 +01:00
|
|
|
description = ''
|
|
|
|
A list of additional packages supplying kernel modules.
|
|
|
|
'';
|
2008-08-08 20:57:07 +02:00
|
|
|
merge = backwardPkgsFunListMerge;
|
2008-01-29 19:53:15 +01:00
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01: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 01:45:33 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
initrd = {
|
|
|
|
|
|
|
|
kernelModules = mkOption {
|
|
|
|
default = [
|
2008-02-08 16:59:15 +01: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 19:12:23 +01:00
|
|
|
"ahci"
|
2008-01-06 01:51:07 +01:00
|
|
|
"sata_nv"
|
|
|
|
"sata_via"
|
|
|
|
"sata_sis"
|
|
|
|
"sata_uli"
|
2007-11-09 19:12:23 +01:00
|
|
|
"ata_piix"
|
|
|
|
"pata_marvell"
|
2008-05-09 12:46:10 +02:00
|
|
|
|
2008-02-08 16:59:15 +01:00
|
|
|
# Standard SCSI stuff.
|
2007-11-09 19:12:23 +01:00
|
|
|
"sd_mod"
|
|
|
|
"sr_mod"
|
2008-05-09 12:46:10 +02:00
|
|
|
|
2008-02-08 16:59:15 +01:00
|
|
|
# Standard IDE stuff.
|
|
|
|
"ide_cd"
|
|
|
|
"ide_disk"
|
|
|
|
"ide_generic"
|
2008-05-09 12:46:10 +02:00
|
|
|
|
2008-02-08 16:59:15 +01:00
|
|
|
# Filesystems.
|
2007-11-09 19:12:23 +01:00
|
|
|
"ext3"
|
2008-05-09 12:46:10 +02:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
# Support USB keyboards, in case the boot fails and we only have
|
|
|
|
# a USB keyboard.
|
|
|
|
"ehci_hcd"
|
|
|
|
"ohci_hcd"
|
|
|
|
"usbhid"
|
2008-05-09 12:46:10 +02:00
|
|
|
|
|
|
|
# LVM.
|
|
|
|
"dm_mod"
|
2007-11-09 19:12:23 +01:00
|
|
|
];
|
|
|
|
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.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
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
|
|
|
|
2007-11-09 19:12:23 +01: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-04 00:20:08 +01:00
|
|
|
|
2008-07-05 02:16:39 +02:00
|
|
|
extraGrubEntriesBeforeNixos = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
2008-07-23 16:13:27 +02:00
|
|
|
Wheter extraGrubEntries are put before the Nixos-default option
|
2008-07-05 02:16:39 +02:00
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-01-04 16:02:31 +01: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 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>.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-01-10 05:43:19 +01:00
|
|
|
configurationLimit = mkOption {
|
|
|
|
default = 100;
|
|
|
|
example = 120;
|
|
|
|
description = "
|
|
|
|
Maximum of configurations in boot menu. GRUB has problems when
|
2008-07-23 16:13:27 +02:00
|
|
|
there are too many entries.
|
2008-01-10 05:43:19 +01:00
|
|
|
";
|
|
|
|
};
|
|
|
|
|
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
|
|
|
|
++ pkgs.lib.optional config.users.ldap.enable pkgs.nss_ldap
|
|
|
|
++ pkgs.lib.optional config.services.avahi.nssmdns pkgs.nssmdns;
|
|
|
|
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.
|
|
|
|
apply = list: pkgs.aggregateModules (
|
|
|
|
let
|
|
|
|
kernelPackages = config.boot.kernelPackages;
|
|
|
|
kernel = kernelPackages.kernel;
|
|
|
|
in
|
|
|
|
[ kernel ]
|
|
|
|
++ pkgs.lib.optional ((config.networking.enableIntel3945ABGFirmware || config.networking.enableIntel4965AGNFirmware) && !kernel.features ? iwlwifi) kernelPackages.iwlwifi
|
|
|
|
# !!! this should be declared by the xserver Upstart job.
|
|
|
|
++ pkgs.lib.optional (config.services.xserver.enable && config.services.xserver.videoDriver == "nvidia") kernelPackages.nvidiaDrivers
|
|
|
|
++ pkgs.lib.optional config.hardware.enableGo7007 kernelPackages.wis_go7007
|
|
|
|
++ config.boot.extraModulePackages
|
|
|
|
# should only keep this one, other have to be set by the option owners.
|
|
|
|
++ list
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
# Hm, this sounds like a catch-all...
|
|
|
|
hardware = {
|
|
|
|
|
|
|
|
enableGo7007 = mkOption {
|
|
|
|
default = false;
|
2008-08-08 20:57:09 +02:00
|
|
|
merge = obsoleteMerge;
|
2008-02-04 11:52:58 +01:00
|
|
|
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 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
|
|
|
enableIntel2200BGFirmware = mkOption {
|
|
|
|
default = false;
|
2008-08-08 20:57:09 +02:00
|
|
|
merge = obsoleteMerge;
|
2007-11-09 19:12:23 +01:00
|
|
|
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 18:43:56 +02:00
|
|
|
|
2008-01-12 23:53:13 +01:00
|
|
|
enableIntel3945ABGFirmware = mkOption {
|
2008-01-25 13:54:27 +01:00
|
|
|
default = false;
|
2008-08-08 20:57:09 +02:00
|
|
|
merge = obsoleteMerge;
|
2008-01-12 23:53:13 +01:00
|
|
|
description = "
|
|
|
|
This option enables automatic loading of the firmware for the Intel
|
2008-02-18 17:50:08 +01:00
|
|
|
PRO/Wireless 3945ABG.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
enableIntel4965AGNFirmware = mkOption {
|
|
|
|
default = false;
|
2008-08-08 20:57:09 +02:00
|
|
|
merge = obsoleteMerge;
|
2008-02-18 17:50:08 +01:00
|
|
|
description = "
|
|
|
|
This option enables automatic loading of the firmware for the Intel
|
|
|
|
PRO/Wireless 4965AGN.
|
2008-01-12 23:53:13 +01:00
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-02-20 10:01:26 +01:00
|
|
|
enableZydasZD1211Firmware = mkOption {
|
|
|
|
default = false;
|
2008-08-08 20:57:09 +02:00
|
|
|
merge = obsoleteMerge;
|
2008-02-20 10:01:26 +01:00
|
|
|
description = "
|
|
|
|
This option enables automatic loading of the firmware for the Zydas
|
|
|
|
ZyDAS ZD1211(b) 802.11a/b/g USB WLAN chip.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
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
|
|
|
|
2008-03-16 02:05:40 +01:00
|
|
|
servicesProposal = {
|
|
|
|
# see upstart-jobs/default.nix
|
|
|
|
# the option declarations can be found in the upstart-jobs/newProposal/*.nix files
|
|
|
|
# one way to include the declarations here is adding kind of glob "*.nix"
|
|
|
|
# file function to builtins to get all jobs
|
|
|
|
# then the checking in upstart-jobs/default.nix can be removed again (together with passing arg optionDeclarations)
|
|
|
|
};
|
|
|
|
|
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
|
|
|
|
|
|
|
syslogd = {
|
2007-01-08 23:41:41 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
tty = mkOption {
|
|
|
|
default = 10;
|
|
|
|
description = "
|
|
|
|
The tty device on which syslogd will print important log
|
|
|
|
messages.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
2006-12-11 17:10:23 +01:00
|
|
|
|
2007-01-23 12:18:23 +01:00
|
|
|
|
2008-04-01 12:16:35 +02:00
|
|
|
atd = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = true;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''
|
|
|
|
Whether to enable the `at' daemon, a command scheduler.
|
|
|
|
'';
|
2008-04-01 12:16:35 +02:00
|
|
|
};
|
2008-08-07 12:09:17 +02:00
|
|
|
|
|
|
|
allowEveryone = mkOption {
|
|
|
|
default = false;
|
2008-08-07 12:23:20 +02:00
|
|
|
description = ''
|
|
|
|
Whether to make /var/spool/at{jobs,spool} writeable
|
|
|
|
by everyone (and sticky).
|
|
|
|
'';
|
2008-08-07 12:09:17 +02:00
|
|
|
};
|
2008-04-01 12:16:35 +02:00
|
|
|
};
|
2008-02-01 13:01:27 +01:00
|
|
|
|
2008-02-01 13:35:51 +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
|
|
|
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
dhcpd = {
|
2006-12-16 19:24:49 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable the DHCP server.
|
|
|
|
";
|
|
|
|
};
|
2007-10-26 07:52:35 +02:00
|
|
|
|
2007-12-04 15:53:37 +01: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 19:12:23 +01:00
|
|
|
configFile = mkOption {
|
2007-12-04 15:53:37 +01:00
|
|
|
default = null;
|
2007-11-09 19:12:23 +01:00
|
|
|
description = "
|
2007-12-04 15:53:37 +01: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 19:12:23 +01:00
|
|
|
";
|
|
|
|
};
|
2007-02-27 00:11:32 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
interfaces = mkOption {
|
|
|
|
default = ["eth0"];
|
|
|
|
description = "
|
|
|
|
The interfaces on which the DHCP server should listen.
|
|
|
|
";
|
|
|
|
};
|
2007-02-27 00:11:32 +01:00
|
|
|
|
2007-12-04 15:53:37 +01: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 16:31:04 +01:00
|
|
|
description = "
|
2008-01-02 13:50:46 +01:00
|
|
|
A list mapping ethernet addresses to IP addresses for the
|
|
|
|
DHCP server.
|
2008-01-02 16:31:04 +01:00
|
|
|
";
|
2007-12-04 15:53:37 +01:00
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2007-02-27 00:11:32 +01:00
|
|
|
|
2007-02-27 01:31:04 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
sshd = {
|
2007-03-06 01:07:00 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable the Secure Shell daemon, which allows secure
|
|
|
|
remote logins.
|
|
|
|
";
|
|
|
|
};
|
2007-03-06 01:07:00 +01:00
|
|
|
|
2007-11-09 19:12:23 +01: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 17:01:09 +02:00
|
|
|
|
2008-03-14 13:53:14 +01:00
|
|
|
permitRootLogin = mkOption {
|
|
|
|
default = "yes";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Whether the root user can login using ssh. Valid options
|
|
|
|
are <command>yes</command>, <command>without-password</command>,
|
|
|
|
<command>forced-commands-only</command> or
|
|
|
|
<command>no</command>
|
|
|
|
";
|
2008-03-14 13:53:14 +01:00
|
|
|
};
|
2007-06-05 13:51:59 +02:00
|
|
|
};
|
|
|
|
|
2008-03-05 17:03:09 +01:00
|
|
|
lshd = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''
|
|
|
|
Whether to enable the GNU lshd SSH2 daemon, which allows
|
2008-03-05 17:03:09 +01:00
|
|
|
secure remote login.
|
2008-07-23 16:13:27 +02:00
|
|
|
'';
|
2008-03-05 17:03:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
portNumber = mkOption {
|
|
|
|
default = 22;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''
|
|
|
|
The port on which to listen for connections.
|
|
|
|
'';
|
2008-03-05 17:03:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
interfaces = mkOption {
|
|
|
|
default = [];
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''
|
|
|
|
List of network interfaces where listening for connections.
|
2008-03-05 17:03:09 +01:00
|
|
|
When providing the empty list, `[]', lshd listens on all
|
|
|
|
network interfaces.
|
2008-07-23 16:13:27 +02:00
|
|
|
'';
|
|
|
|
example = [ "localhost" "1.2.3.4:443" ];
|
2008-03-05 17:03:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
hostKey = mkOption {
|
|
|
|
default = "/etc/lsh/host-key";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''
|
|
|
|
Path to the server's private key. Note that this key must
|
2008-03-05 17:03:09 +01:00
|
|
|
have been created, e.g., using "lsh-keygen --server |
|
|
|
|
lsh-writekey --server", so that you can run lshd.
|
2008-07-23 16:13:27 +02:00
|
|
|
'';
|
2008-03-05 17:03:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
syslog = mkOption {
|
|
|
|
default = true;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''Whether to enable syslog output.'';
|
2008-03-05 17:03:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
passwordAuthentication = mkOption {
|
|
|
|
default = true;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''Whether to enable password authentication.'';
|
2008-03-05 17:03:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
publicKeyAuthentication = mkOption {
|
|
|
|
default = true;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''Whether to enable public key authentication.'';
|
2008-03-05 17:03:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
rootLogin = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''Whether to enable remote root login.'';
|
2008-03-05 17:03:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
loginShell = mkOption {
|
|
|
|
default = null;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''
|
|
|
|
If non-null, override the default login shell with the
|
|
|
|
specified value.
|
|
|
|
'';
|
|
|
|
example = "/nix/store/xyz-bash-10.0/bin/bash10";
|
2008-03-05 17:03:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
srpKeyExchange = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''
|
|
|
|
Whether to enable SRP key exchange and user authentication.
|
|
|
|
'';
|
2008-03-05 17:03:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
tcpForwarding = mkOption {
|
|
|
|
default = true;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''Whether to enable TCP/IP forwarding.'';
|
2008-03-05 17:03:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
x11Forwarding = mkOption {
|
|
|
|
default = true;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''Whether to enable X11 forwarding.'';
|
2008-03-05 17:03:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
subsystems = mkOption {
|
|
|
|
default = [ ["sftp" "${pkgs.lsh}/sbin/sftp-server"] ];
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''
|
|
|
|
List of subsystem-path pairs, where the head of the pair
|
2008-03-05 17:03:09 +01:00
|
|
|
denotes the subsystem name, and the tail denotes the path to
|
|
|
|
an executable implementing it.
|
2008-07-23 16:13:27 +02:00
|
|
|
'';
|
2008-03-05 17:03:09 +01:00
|
|
|
};
|
|
|
|
};
|
2007-09-24 07:16:15 +02:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
ntp = {
|
2007-09-24 07:16:15 +02:00
|
|
|
|
2007-11-09 19:12:23 +01: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 20:20:03 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2007-02-27 20:04:30 +01:00
|
|
|
|
2008-03-16 00:40:44 +01:00
|
|
|
portmap = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''
|
|
|
|
Whether to enable `portmap', an ONC RPC directory service
|
|
|
|
notably used by NFS and NIS, and which can be queried
|
|
|
|
using the rpcinfo(1) command.
|
|
|
|
'';
|
2008-03-16 00:40:44 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2008-03-06 18:11:22 +01:00
|
|
|
avahi = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''
|
|
|
|
Whether to run the Avahi daemon, which allows Avahi clients
|
|
|
|
to use Avahi's service discovery facilities and also allows
|
|
|
|
the local machine to advertise its presence and services
|
|
|
|
(through the mDNS responder implemented by `avahi-daemon').
|
|
|
|
'';
|
2008-03-06 18:11:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
hostName = mkOption {
|
|
|
|
default = "nixos"; # XXX: Would be nice to use `networking.hostName'.
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''Host name advertised on the LAN.'';
|
2008-03-06 18:11:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
browseDomains = mkOption {
|
|
|
|
default = [ "0pointer.de" "zeroconf.org" ];
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''
|
|
|
|
List of non-local DNS domains to be browsed.
|
|
|
|
'';
|
2008-03-06 18:11:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
ipv4 = mkOption {
|
|
|
|
default = true;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''Whether to use IPv4'';
|
2008-03-06 18:11:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
ipv6 = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''Whether to use IPv6'';
|
2008-03-06 18:11:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
wideArea = mkOption {
|
|
|
|
default = true;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''Whether to enable wide-area service discovery.'';
|
2008-03-06 18:11:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
publishing = mkOption {
|
|
|
|
default = true;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''Whether to allow publishing.'';
|
2008-03-06 18:11:22 +01:00
|
|
|
};
|
2008-03-17 14:58:57 +01:00
|
|
|
|
|
|
|
nssmdns = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = ''
|
|
|
|
Whether to enable the mDNS NSS (Name Service Switch) plug-in.
|
|
|
|
Enabling it allows applications to resolve names in the `.local'
|
|
|
|
domain by transparently querying the Avahi daemon.
|
|
|
|
|
|
|
|
Warning: Currently, enabling this option breaks DNS lookups after
|
|
|
|
a `nixos-rebuild'. This is because `/etc/nsswitch.conf' is
|
|
|
|
updated to use `nss-mdns' but `libnss_mdns' is not in
|
|
|
|
applications' `LD_LIBRARY_PATH'. The next time `/etc/profile' is
|
|
|
|
sourced, it will set up an appropriate `LD_LIBRARY_PATH', though.
|
|
|
|
'';
|
2008-03-17 14:58:57 +01:00
|
|
|
};
|
2008-03-06 18:11:22 +01:00
|
|
|
};
|
|
|
|
|
2008-02-18 10:15:10 +01:00
|
|
|
bitlbee = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = ''
|
2008-03-06 18:11:22 +01:00
|
|
|
Whether to run the BitlBee IRC to other chat network gateway.
|
2008-02-18 10:15:10 +01:00
|
|
|
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 {
|
2008-03-26 17:42:57 +01:00
|
|
|
default = 6667;
|
2008-02-18 10:15:10 +01:00
|
|
|
description = ''
|
|
|
|
Number of the port BitlBee will be listening to.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
2006-12-18 20:46:48 +01:00
|
|
|
|
2008-09-04 22:28:02 +02:00
|
|
|
gnunet = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
Whether to run the GNUnet daemon. GNUnet is GNU's anonymous
|
|
|
|
peer-to-peer communication and file sharing framework.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
home = mkOption {
|
|
|
|
default = "/var/lib/gnunet";
|
|
|
|
description = ''
|
|
|
|
Directory where the GNUnet daemon will store its data.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
debug = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
When true, run in debug mode; gnunetd will not daemonize and
|
|
|
|
error messages will be written to stderr instead of a
|
|
|
|
logfile.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
logLevel = mkOption {
|
|
|
|
default = "ERROR";
|
|
|
|
example = "INFO";
|
|
|
|
description = ''
|
|
|
|
Log level of the deamon (see `gnunetd(1)' for details).
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
hostLists = mkOption {
|
|
|
|
default = [
|
|
|
|
"http://gnunet.org/hostlist.php"
|
|
|
|
"http://gnunet.mine.nu:8081/hostlist"
|
|
|
|
"http://vserver1236.vserver-on.de/hostlist-074"
|
|
|
|
];
|
|
|
|
description = ''
|
|
|
|
URLs of host lists.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
applications = mkOption {
|
|
|
|
default = [ "advertising" "getoption" "fs" "stats" "traffic" ];
|
|
|
|
example = [ "chat" "fs" ];
|
|
|
|
description = ''
|
|
|
|
List of GNUnet applications supported by the daemon. Note that
|
|
|
|
`fs', which means "file sharing", is probably the one you want.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
transports = mkOption {
|
|
|
|
default = [ "udp" "tcp" "http" "nat" ];
|
|
|
|
example = [ "smtp" "http" ];
|
|
|
|
description = ''
|
|
|
|
List of transport methods used by the server.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSharing = {
|
|
|
|
quota = mkOption {
|
|
|
|
default = 1024;
|
|
|
|
description = ''
|
|
|
|
Maximum file system usage (in MiB) for file sharing.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
activeMigration = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
Whether to allow active migration of content originating
|
|
|
|
from other nodes.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
load = {
|
|
|
|
maxNetDownBandwidth = mkOption {
|
|
|
|
default = 50000;
|
|
|
|
description = ''
|
|
|
|
Maximum bandwidth usage (in bits per second) for GNUnet
|
|
|
|
when downloading data.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
maxNetUpBandwidth = mkOption {
|
|
|
|
default = 50000;
|
|
|
|
description = ''
|
|
|
|
Maximum bandwidth usage (in bits per second) for GNUnet
|
|
|
|
when downloading data.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
hardNetUpBandwidth = mkOption {
|
|
|
|
default = 0;
|
|
|
|
description = ''
|
|
|
|
Hard bandwidth limit (in bits per second) when uploading
|
|
|
|
data.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
maxCPULoad = mkOption {
|
|
|
|
default = 100;
|
|
|
|
description = ''
|
|
|
|
Maximum CPU load (percentage) authorized for the GNUnet
|
|
|
|
daemon.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
interfaces = mkOption {
|
|
|
|
default = [ "eth0" ];
|
|
|
|
example = [ "wlan0" "eth1" ];
|
|
|
|
description = ''
|
|
|
|
List of network interfaces to use.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
extraOptions = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = ''
|
|
|
|
[NETWORK]
|
|
|
|
INTERFACE = eth3
|
|
|
|
'';
|
|
|
|
description = ''
|
|
|
|
Additional options that will be copied verbatim in `gnunetd.conf'.
|
|
|
|
See `gnunetd.conf(5)' for details.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
xserver = {
|
2006-12-18 20:46:48 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable the X server.
|
|
|
|
";
|
|
|
|
};
|
2006-12-18 20:46:48 +01:00
|
|
|
|
2007-12-31 09:52:59 +01:00
|
|
|
autorun = mkOption {
|
|
|
|
default = true;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Switch to false to create upstart-job and configuration,
|
|
|
|
but not run it automatically
|
|
|
|
";
|
2007-12-31 09:52:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
exportConfiguration = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Create /etc/X11/xorg.conf and a file with environment
|
|
|
|
variables
|
|
|
|
";
|
2007-12-31 09:52:59 +01:00
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
tcpEnable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable TCP socket for the X server.
|
|
|
|
";
|
|
|
|
};
|
2006-12-18 20:46:48 +01:00
|
|
|
|
2007-11-09 19:12:23 +01: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 20:46:48 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
videoDriver = mkOption {
|
|
|
|
default = "vesa";
|
|
|
|
example = "i810";
|
|
|
|
description = "
|
|
|
|
The name of the video driver for your graphics card.
|
|
|
|
";
|
|
|
|
};
|
2006-12-18 20:46:48 +01:00
|
|
|
|
2007-11-09 19:12:23 +01: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 17:53:32 +01:00
|
|
|
<literal>metacity</literal>, <literal>xmonad</literal>
|
|
|
|
and <literal>compiz</literal>. If
|
2007-11-09 19:12:23 +01: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 20:46:48 +01:00
|
|
|
|
2007-11-09 19:12:23 +01: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 16:33:09 +01:00
|
|
|
<option>services.xserver.sessionType</option> is empty.
|
2007-11-09 19:12:23 +01: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 20:04:30 +01:00
|
|
|
|
2008-04-21 15:05:35 +02:00
|
|
|
defaultUser = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "login";
|
|
|
|
description = "
|
|
|
|
The default user to load. If you put a username here you
|
|
|
|
get it automatically loaded into the username field, and
|
|
|
|
the focus is placed on the password.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
hideCursor = mkOption {
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "
|
|
|
|
Hide the mouse cursor on the login screen.
|
|
|
|
";
|
|
|
|
};
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2006-12-18 20:46:48 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
isClone = mkOption {
|
2008-01-04 11:36:14 +01:00
|
|
|
default = true;
|
|
|
|
example = false;
|
2007-11-09 19:12:23 +01:00
|
|
|
description = "
|
|
|
|
Whether to enable the X server clone mode for dual-head.
|
|
|
|
";
|
|
|
|
};
|
2006-12-19 02:03:15 +01:00
|
|
|
|
2008-05-16 09:32:00 +02:00
|
|
|
synaptics = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "
|
|
|
|
Whether to replace mouse with touchpad.
|
|
|
|
";
|
|
|
|
};
|
2008-07-23 16:13:27 +02:00
|
|
|
dev = mkOption {
|
2008-05-16 09:32:00 +02:00
|
|
|
default = "/dev/input/event0";
|
|
|
|
description = "
|
|
|
|
Event device for Synaptics touchpad.
|
|
|
|
";
|
|
|
|
};
|
2008-07-23 16:13:27 +02:00
|
|
|
minSpeed = mkOption {
|
|
|
|
default = "0.06";
|
2008-05-20 16:59:27 +02:00
|
|
|
description = "Cursor speed factor for precision finger motion";
|
2008-07-23 16:13:27 +02:00
|
|
|
};
|
|
|
|
maxSpeed = mkOption {
|
|
|
|
default = "0.12";
|
2008-05-20 16:59:27 +02:00
|
|
|
description = "Cursor speed factor for highest-speed finger motion";
|
2008-07-23 16:13:27 +02:00
|
|
|
};
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2007-02-12 12:57:18 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
layout = mkOption {
|
|
|
|
default = "us";
|
|
|
|
description = "
|
|
|
|
Keyboard layout.
|
|
|
|
";
|
|
|
|
};
|
2006-12-19 02:03:15 +01:00
|
|
|
|
2008-03-10 18:33:13 +01:00
|
|
|
xkbModel = mkOption {
|
|
|
|
default = "pc104";
|
|
|
|
example = "presario";
|
|
|
|
description = "
|
|
|
|
Keyboard model.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
xkbOptions = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "grp:caps_toggle, grp_led:scroll";
|
|
|
|
description = "
|
|
|
|
X keyboard options; layout switching goes here.
|
|
|
|
";
|
|
|
|
};
|
2007-02-22 11:55:58 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
useInternalAGPGART = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "no";
|
|
|
|
description = "
|
|
|
|
Just the wrapper for an xorg.conf option.
|
|
|
|
";
|
|
|
|
};
|
2007-02-22 11:55:58 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
extraDeviceConfig = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "VideoRAM 131072";
|
|
|
|
description = "
|
|
|
|
Just anything to add into Device section.
|
|
|
|
";
|
|
|
|
};
|
2007-02-22 11:55:58 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
extraMonitorSettings = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "HorizSync 28-49";
|
|
|
|
description = "
|
|
|
|
Just anything to add into Monitor section.
|
|
|
|
";
|
|
|
|
};
|
2007-02-20 16:11:49 +01:00
|
|
|
|
2008-01-02 22:16:58 +01:00
|
|
|
extraDisplaySettings = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "Virtual 2048 2048";
|
|
|
|
description = "
|
|
|
|
Just anything to add into Display subsection (located in Screen section).
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
extraModules = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "
|
|
|
|
SubSection \"extmod\"
|
|
|
|
EndSubsection
|
|
|
|
";
|
|
|
|
description = "
|
|
|
|
Just anything to add into Modules section.
|
|
|
|
";
|
|
|
|
};
|
2007-02-20 16:11:49 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
serverLayoutOptions = mkOption {
|
|
|
|
default = "";
|
|
|
|
example = "
|
|
|
|
Option \"AIGLX\" \"true\"
|
|
|
|
";
|
|
|
|
description = "
|
|
|
|
Just anything to add into Monitor section.
|
|
|
|
";
|
|
|
|
};
|
2007-04-02 19:31:58 +02:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
defaultDepth = mkOption {
|
|
|
|
default = 24;
|
|
|
|
example = 8;
|
|
|
|
description = "
|
|
|
|
Default colour depth.
|
|
|
|
";
|
|
|
|
};
|
2007-12-25 13:16:38 +01:00
|
|
|
|
|
|
|
useXFS = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
example = "unix/:7100";
|
|
|
|
description = "
|
|
|
|
Way to access the X Font Server to use.
|
|
|
|
";
|
2007-12-25 13:16:38 +01:00
|
|
|
};
|
2007-06-08 20:56:55 +02:00
|
|
|
|
2008-01-04 11:54:33 +01: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.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-04-11 11:20:39 +02:00
|
|
|
packageFun = mkOption {
|
2008-08-08 20:57:07 +02:00
|
|
|
default = pkgs.xorg;
|
2008-08-08 20:57:11 +02:00
|
|
|
merge = obsolete "option" backwardPkgsFunMerge;
|
|
|
|
description = "Obsolete: use 'package' instead.";
|
|
|
|
};
|
|
|
|
|
|
|
|
package = mkOption {
|
|
|
|
default = config.services.xserver.packageFun; # pkgs.xorg;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Alternative X.org package to use. For
|
|
|
|
example, you can replace individual drivers.
|
|
|
|
";
|
2008-04-11 11:20:39 +02:00
|
|
|
};
|
|
|
|
|
2008-10-24 12:30:38 +02:00
|
|
|
virtualScreen = mkOption {
|
|
|
|
default = null;
|
|
|
|
example = {
|
|
|
|
x=2048;
|
|
|
|
y=2048;
|
|
|
|
};
|
|
|
|
description = "
|
|
|
|
Virtual screen size for Xrandr
|
|
|
|
";
|
|
|
|
};
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2007-01-09 22:19:06 +01:00
|
|
|
|
2008-02-04 14:40:01 +01:00
|
|
|
ejabberd = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Whether to enable ejabberd server";
|
2008-02-04 14:40:01 +01:00
|
|
|
};
|
2008-07-06 12:30:53 +02:00
|
|
|
|
|
|
|
spoolDir = mkOption {
|
|
|
|
default = "/var/lib/ejabberd";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Location of the spooldir of ejabberd";
|
2008-07-06 12:30:53 +02:00
|
|
|
};
|
2008-02-04 14:40:01 +01:00
|
|
|
|
2008-07-06 12:30:53 +02:00
|
|
|
logsDir = mkOption {
|
|
|
|
default = "/var/log/ejabberd";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Location of the logfile directory of ejabberd";
|
2008-02-04 14:40:01 +01:00
|
|
|
};
|
2008-08-18 16:48:55 +02:00
|
|
|
|
|
|
|
confDir = mkOption {
|
|
|
|
default = "/var/ejabberd";
|
|
|
|
description = "Location of the config directory of ejabberd";
|
|
|
|
};
|
|
|
|
|
|
|
|
virtualHosts = mkOption {
|
|
|
|
default = "\"localhost\"";
|
|
|
|
description = "Virtualhosts that ejabberd should host. Hostnames are surrounded with doublequotes and separated by commas";
|
|
|
|
};
|
2008-02-04 14:40:01 +01:00
|
|
|
};
|
|
|
|
|
2008-01-28 16:16:14 +01:00
|
|
|
jboss = {
|
2008-01-28 21:04:48 +01:00
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Whether to enable jboss";
|
2008-01-28 21:04:48 +01:00
|
|
|
};
|
|
|
|
|
2008-01-28 16:16:14 +01:00
|
|
|
tempDir = mkOption {
|
|
|
|
default = "/tmp";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Location where JBoss stores its temp files";
|
2008-01-28 16:16:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
logDir = mkOption {
|
|
|
|
default = "/var/log/jboss";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Location of the logfile directory of JBoss";
|
2008-01-28 16:16:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
serverDir = mkOption {
|
|
|
|
description = "Location of the server instance files";
|
2008-07-23 16:13:27 +02:00
|
|
|
default = "/var/jboss/server";
|
2008-01-28 16:16:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Location where the shared library JARs are stored";
|
2008-01-28 16:16:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
user = mkOption {
|
|
|
|
default = "nobody";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "User account under which jboss runs.";
|
2008-01-28 16:16:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
useJK = mkOption {
|
|
|
|
default = false;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "Whether to use to connector to the Apache HTTP server";
|
2008-01-28 16:16:14 +01:00
|
|
|
};
|
|
|
|
};
|
2007-08-15 14:01:20 +02: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 = ''
|
2008-09-14 03:30:45 +02:00
|
|
|
Loads additional modules either beeing distributed with apache.
|
|
|
|
If the module is contained in a foreign package (such as php5_module)
|
|
|
|
kse an attrset as given in the example.
|
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.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
dbus = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = true;
|
|
|
|
description = "
|
|
|
|
Whether to start the D-Bus message bus daemon. It is required
|
|
|
|
by the HAL service.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
gw6c = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable Gateway6 client (IPv6 tunnel).
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-01-11 07:36:15 +01:00
|
|
|
autorun = mkOption {
|
|
|
|
default = true;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Switch to false to create upstart-job and configuration,
|
|
|
|
but not run it automatically
|
|
|
|
";
|
2008-01-11 07:36:15 +01:00
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01: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.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-04-08 23:41:01 +02:00
|
|
|
waitPingableBroker = mkOption {
|
|
|
|
default = true;
|
2008-07-23 16:13:27 +02:00
|
|
|
example = false;
|
|
|
|
description = "
|
|
|
|
Whether to wait until tunnel broker returns ICMP echo.
|
|
|
|
";
|
2008-04-08 23:41:01 +02:00
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
installer = {
|
|
|
|
|
|
|
|
nixpkgsURL = mkOption {
|
|
|
|
default = "";
|
2008-05-09 17:08:43 +02:00
|
|
|
example = http://nixos.org/releases/nix/nixpkgs-0.11pre7577;
|
2007-11-09 19:12:23 +01:00
|
|
|
description = "
|
|
|
|
URL of the Nixpkgs distribution to use when building the
|
|
|
|
installation CD.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-08-17 03:11:57 +02:00
|
|
|
repos = {
|
|
|
|
nixos = mkOption {
|
|
|
|
default = [ { type = "svn"; } ];
|
|
|
|
example = [ { type = "svn"; url = "https://svn.nixos.org/repos/nix/nixos/branches/stdenv-updates"; target = "/etc/nixos/nixos-stdenv-updates"; }
|
|
|
|
{ type = "git"; initialize = ''git clone git://mawercer.de/nixos $target''; update = "git pull origin"; target = "/etc/nixos/nixos-git"; }
|
|
|
|
];
|
2008-08-26 21:45:06 +02:00
|
|
|
description = "The NixOS repository from which the system will be build.
|
|
|
|
nixos-checkout will update all working copies of the given repositories,
|
|
|
|
nixos-rebuild will use the first item which has
|
2008-08-17 03:11:57 +02:00
|
|
|
the attribute default = true falling back to the
|
2008-08-26 21:45:06 +02:00
|
|
|
first item. The type defines the repository tool added
|
2008-08-17 03:11:57 +02:00
|
|
|
to the path. It also defines a \"valid\" repository.
|
|
|
|
If the target directory already exists and it's not
|
|
|
|
valid it will be moved to the backup location
|
|
|
|
<filename>\${dir}-date</filename>.
|
|
|
|
For svn the default target and repositories are
|
|
|
|
<filename>/etc/nixos/nixos</filename> and
|
|
|
|
<filename>https://svn.nixos.org/repos/nix/nixos/trunk</filename>.
|
|
|
|
For git repositories update is called after
|
|
|
|
initialization when the repo is initialized.
|
|
|
|
The initialize code is run from working directory
|
|
|
|
dirname \$target and should create the directory
|
|
|
|
<filename>\$target<filename>. (<command>git clone url nixos/nixpkgs/services</command> should do)
|
2008-08-26 21:45:06 +02:00
|
|
|
For the executables beeing used see <option>repoTypes</option>
|
2008-08-17 03:11:57 +02:00
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs = mkOption {
|
|
|
|
default = [ { type = "svn"; } ];
|
|
|
|
description = "same as <option>repos.nixos</option>";
|
|
|
|
};
|
|
|
|
|
|
|
|
services = mkOption {
|
|
|
|
default = [ { type = "svn"; } ];
|
|
|
|
description = "same as <option>repos.nixos</option>";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
repoTypes = mkOption {
|
|
|
|
default = {
|
|
|
|
svn = { valid = "[ -d .svn ]"; env = [ pkgs.coreutils pkgs.subversion ]; };
|
|
|
|
git = { valid = "[ -d .git ]"; env = [ pkgs.coreutils pkgs.git pkgs.gnused /* FIXME: use full path to sed in nix-pull */ ]; };
|
|
|
|
};
|
|
|
|
description = "defines PATH environment and when directory is considered beeing a valid repository.
|
|
|
|
If it's not it's moved to a backup directory";
|
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
manifests = mkOption {
|
2008-05-09 17:08:43 +02:00
|
|
|
default = [http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable/MANIFEST];
|
2007-11-09 19:12:23 +01:00
|
|
|
example =
|
2008-05-09 17:08:43 +02:00
|
|
|
[ http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable/MANIFEST
|
|
|
|
http://nixos.org/releases/nixpkgs/channels/nixpkgs-stable/MANIFEST
|
2007-11-09 19:12:23 +01:00
|
|
|
];
|
|
|
|
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 18:16:16 +01: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 15:39:52 +01:00
|
|
|
<filename>~<replaceable>sshUser</replaceable>/authorized_keys</filename>
|
2007-11-15 18:16:16 +01:00
|
|
|
on the remote machine.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-11-18 19:00:09 +01:00
|
|
|
# Environment variables for running Nix.
|
|
|
|
envVars = mkOption {
|
|
|
|
internal = true;
|
|
|
|
default = "";
|
|
|
|
description = "
|
|
|
|
Define the environment variables used by nix to
|
|
|
|
";
|
|
|
|
|
|
|
|
merge = pkgs.lib.mergeStringOption;
|
|
|
|
|
|
|
|
# other option should be used to define the content instead of using
|
|
|
|
# the apply function.
|
|
|
|
apply = conf: ''
|
|
|
|
export NIX_CONF_DIR=/nix/etc/nix
|
|
|
|
|
|
|
|
# Enable the copy-from-other-stores substituter, which allows builds
|
|
|
|
# to be sped up by copying build results from remote Nix stores. To
|
|
|
|
# do this, mount the remote file system on a subdirectory of
|
|
|
|
# /var/run/nix/remote-stores.
|
|
|
|
export NIX_OTHER_STORES=/var/run/nix/remote-stores/*/nix
|
|
|
|
|
|
|
|
'' + # */
|
|
|
|
(if config.nix.distributedBuilds then
|
|
|
|
''
|
|
|
|
export NIX_BUILD_HOOK=${config.environment.nix}/libexec/nix/build-remote.pl
|
|
|
|
export NIX_REMOTE_SYSTEMS=/etc/nix.machines
|
|
|
|
export NIX_CURRENT_LOAD=/var/run/nix/current-load
|
|
|
|
''
|
|
|
|
else "") + conf;
|
|
|
|
};
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2007-08-16 17:09:06 +02:00
|
|
|
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
security = {
|
|
|
|
|
|
|
|
setuidPrograms = mkOption {
|
2008-07-25 15:33:10 +02:00
|
|
|
default = [
|
|
|
|
"passwd" "su" "crontab" "ping" "ping6"
|
2008-11-07 14:38:46 +01:00
|
|
|
"fusermount" "wodim" "cdrdao" "growisofs"
|
2008-07-25 15:33:10 +02:00
|
|
|
];
|
2007-11-09 19:12:23 +01:00
|
|
|
description = "
|
2008-08-10 01:26:37 +02:00
|
|
|
Only the programs from system path listed her will be made setuid root
|
|
|
|
(through a wrapper program). It's better to set
|
2007-11-09 19:12:23 +01:00
|
|
|
<option>security.extraSetuidPrograms</option>.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
extraSetuidPrograms = mkOption {
|
|
|
|
default = [];
|
|
|
|
example = ["fusermount"];
|
|
|
|
description = "
|
|
|
|
This option lists additional programs that must be made setuid
|
|
|
|
root.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-06-30 17:13:02 +02:00
|
|
|
setuidOwners = mkOption {
|
|
|
|
default = [];
|
|
|
|
example = [{
|
|
|
|
program = "sendmail";
|
2008-07-23 16:13:27 +02:00
|
|
|
owner = "nodody";
|
|
|
|
group = "postdrop";
|
|
|
|
setuid = false;
|
|
|
|
setgid = true;
|
2008-06-30 17:13:02 +02:00
|
|
|
}];
|
|
|
|
description = ''
|
2008-08-10 07:44:25 +02:00
|
|
|
List of non-trivial setuid programs from system path, like Postfix sendmail. Default
|
2008-07-23 16:13:27 +02:00
|
|
|
should probably be nobody:nogroup:false:false - if you are bothering
|
|
|
|
doing anything with a setuid program, "root.root u+s g-s" is not what
|
|
|
|
you are aiming at..
|
2008-06-30 17:13:02 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2008-03-04 17:06:33 +01:00
|
|
|
seccureKeys = {
|
|
|
|
public = mkOption {
|
|
|
|
default = /var/elliptic-keys/public;
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Public key. Make it path argument, so it is copied into store and
|
|
|
|
hashed.
|
2008-07-11 10:01:09 +02:00
|
|
|
|
2008-07-23 16:13:27 +02:00
|
|
|
The key is used to encrypt Gateway 6 configuration in store, as it
|
|
|
|
contains a password for external service. Unfortunately,
|
|
|
|
derivation file should be protected by other means. For example,
|
|
|
|
nix-http-export.cgi will happily export any non-derivation path,
|
|
|
|
but not a derivation.
|
|
|
|
";
|
2008-03-04 17:06:33 +01:00
|
|
|
};
|
|
|
|
private = mkOption {
|
|
|
|
default = "/var/elliptic-keys/private";
|
2008-07-23 16:13:27 +02:00
|
|
|
description = "
|
|
|
|
Private key. Make it string argument, so it is not copied into store.
|
|
|
|
";
|
2008-03-04 17:06:33 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
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 17:09:06 +02: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 19:12:23 +01: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 17:09:06 +02:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2007-08-16 17:09:06 +02:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2007-01-16 17:09:43 +01:00
|
|
|
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
users = {
|
2007-01-16 17:09:43 +01:00
|
|
|
|
2007-11-16 14:26:34 +01:00
|
|
|
extraUsers = mkOption {
|
|
|
|
default = [];
|
|
|
|
example = [
|
|
|
|
{ name = "alice";
|
|
|
|
uid = 1234;
|
|
|
|
description = "Alice";
|
|
|
|
home = "/home/alice";
|
|
|
|
createHome = true;
|
|
|
|
group = "users";
|
|
|
|
extraGroups = ["wheel"];
|
2008-07-23 16:13:27 +02:00
|
|
|
shell = "/bin/sh";
|
2007-11-16 14:26:34 +01: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 19:12:23 +01:00
|
|
|
ldap = {
|
2007-01-16 17:09:43 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to enable authentication against an LDAP server.
|
|
|
|
";
|
|
|
|
};
|
2007-01-22 17:42:29 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
server = mkOption {
|
|
|
|
example = "ldap://ldap.example.org/";
|
|
|
|
description = "
|
|
|
|
The URL of the LDAP server.
|
|
|
|
";
|
|
|
|
};
|
2007-01-22 17:42:29 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
base = mkOption {
|
|
|
|
example = "dc=example,dc=org";
|
|
|
|
description = "
|
|
|
|
The distinguished name of the search base.
|
|
|
|
";
|
|
|
|
};
|
2007-09-25 21:00:20 +02:00
|
|
|
|
2007-11-09 19:12:23 +01: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 01:36:00 +01:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2007-04-04 15:47:54 +02:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
2007-04-04 15:47:54 +02:00
|
|
|
|
2007-04-04 19:10:38 +02:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
fonts = {
|
2007-04-04 19:10:38 +02:00
|
|
|
|
2007-11-09 19:12:23 +01: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 19:10:38 +02:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
enableGhostscriptFonts = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "
|
|
|
|
Whether to add the fonts provided by Ghostscript (such as
|
2007-11-10 14:35:15 +01:00
|
|
|
various URW fonts and the ``Base-14'' Postscript fonts) to the
|
2007-11-09 19:12:23 +01:00
|
|
|
list of system fonts, making them available to X11
|
|
|
|
applications.
|
|
|
|
";
|
|
|
|
};
|
2007-04-04 19:10:38 +02:00
|
|
|
|
2007-11-09 19:12:23 +01: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 23:44:26 +02:00
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
extraFonts = mkOption {
|
2008-08-08 20:57:07 +02:00
|
|
|
default = [];
|
|
|
|
merge = backwardPkgsFunListMerge;
|
2007-11-09 19:12:23 +01:00
|
|
|
description = "
|
2008-08-08 20:57:07 +02:00
|
|
|
Function, returning list of additional fonts.
|
2007-11-09 19:12:23 +01:00
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-03-05 15:30:19 +01:00
|
|
|
enableCoreFonts = mkOption {
|
|
|
|
default = true;
|
|
|
|
description = "
|
|
|
|
Whether to include MS Core Fonts (redistributable, but only verbatim).
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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 21:44:27 +01:00
|
|
|
pathsToLink = mkOption {
|
2008-03-26 17:23:52 +01:00
|
|
|
default = ["/bin" "/sbin" "/lib" "/share" "/man" "/info"];
|
2007-12-01 21:44:27 +01:00
|
|
|
example = ["/"];
|
|
|
|
description = "
|
2008-03-26 17:23:52 +01:00
|
|
|
Lists directories to be symlinked in `/var/run/current-system/sw'.
|
2007-12-01 21:44:27 +01:00
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-01-22 18:55:57 +01:00
|
|
|
cleanStart = mkOption {
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "
|
|
|
|
There are some times when you want really small system for specific
|
2008-07-23 16:13:27 +02:00
|
|
|
purpose and do not want default package list. Setting
|
|
|
|
<varname>cleanStart</varname> to <literal>true</literal> allows you
|
|
|
|
to create a system with empty path - only extraPackages will be
|
|
|
|
included.
|
2008-01-22 18:55:57 +01:00
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-09 19:12:23 +01:00
|
|
|
extraPackages = mkOption {
|
2008-08-08 20:57:07 +02:00
|
|
|
default = [];
|
|
|
|
example = [pkgs.firefox pkgs.thunderbird];
|
|
|
|
merge = backwardPkgsFunListMerge;
|
2007-11-09 19:12:23 +01:00
|
|
|
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.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2008-11-09 17:44:37 +01:00
|
|
|
# should be moved to etc/default.nix
|
|
|
|
etc = mkOption {
|
|
|
|
default = [];
|
|
|
|
example = [
|
|
|
|
{ source = "/nix/store/.../etc/dir/file.conf.example";
|
|
|
|
target = "dir/file.conf";
|
|
|
|
mode = "0440";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
description = "
|
|
|
|
List of files that have to be linked in /etc.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2007-11-13 16:51:24 +01:00
|
|
|
nix = mkOption {
|
2008-08-08 20:57:07 +02:00
|
|
|
default = pkgs.nixUnstable;
|
|
|
|
example = pkgs.nixCustomFun /root/nix.tar.gz;
|
|
|
|
merge = backwardPkgsFunMerge;
|
2008-01-02 16:31:04 +01:00
|
|
|
description = "
|
2008-01-02 14:05:24 +01:00
|
|
|
Use non-default Nix easily. Be careful, though, not to break everything.
|
2008-01-02 16:31:04 +01:00
|
|
|
";
|
2007-11-13 16:51:24 +01:00
|
|
|
};
|
|
|
|
|
2008-01-15 17:05:51 +01:00
|
|
|
checkConfigurationOptions = mkOption {
|
2008-03-04 00:30:49 +01:00
|
|
|
default = true;
|
|
|
|
example = false;
|
2008-01-15 17:05:51 +01:00
|
|
|
description = "
|
|
|
|
If all configuration options must be checked. Non-existing options fail build.
|
|
|
|
";
|
|
|
|
};
|
2008-06-12 01:06:53 +02:00
|
|
|
|
|
|
|
unixODBCDrivers = mkOption {
|
|
|
|
default = pkgs : [];
|
|
|
|
example = "pkgs : map (x : x.ini) (with pkgs.unixODBCDrivers; [ mysql psql psqlng ] )";
|
|
|
|
description = "specifies unix odbc drivers to be registered at /etc/odbcinst.ini";
|
|
|
|
};
|
|
|
|
|
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
|
|
|
|
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 = [
|
2008-11-18 19:00:09 +01:00
|
|
|
# system
|
|
|
|
(import ../upstart-jobs/default.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
|
|
|
|
|
|
|
# services
|
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)
|
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)
|
2008-11-09 17:44:53 +01:00
|
|
|
(import ../upstart-jobs/cron/locate.nix)
|
2008-08-27 16:01:17 +02:00
|
|
|
];
|
2007-11-09 19:12:23 +01:00
|
|
|
}
|