Table of Contents
List of Examples
This manual describes NixOS, a Linux distribution based on the purely functional package management system Nix.
NixOS is rather bleeding edge, and this manual is
correspondingly sketchy and quite possibly out of date. It gives
basic information on how to get NixOS up and running, but since
NixOS is very much a work in progress, you are likely to encounter
problems here and there. Extensive familiarity with Linux is
recommended. If you encounter problems, please report them on the
nix-dev@cs.uu.nl mailing list or on irc://irc.freenode.net/#nixos.
Table of Contents
Instead of building an installation CD, you could just download one from http://nixos.org/nixos/. If you want (or need) to build it yourself:
Make sure that you have a very recent pre-release version of Nix installed (http://nixos.org/releases/nix/nix-unstable/). The NixOS Nix expressions frequently use bleeding-edge features. If you get any kind of expression evaluation error, try to upgrade your Nix.
Optional but strongly recommended (and currently
required for building the
x86_64 ISO): subscribe/pull from the Nixpkgs
channel to speed up building, i.e.,
$ nix-channel --add http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable $ nix-channel --update
Check out NixOS from https://svn.nixos.org/repos/nix/nixos/trunk as
nixos.
If you don’t already have Nixpkgs checkout, Check
out Nixpkgs from https://svn.nixos.org/repos/nix/nixos/trunk as
nixpkgs.
In the directory nixos, make a
symbolic link pkgs to the pkgs
directory of the Nixpkgs tree, e.g.,
$ ln -s nixpkgs/pkgs nixos/
Build the ISO image:
$ nix-build configuration/rescue-cd.nix -A rescueCD
If everything goes well, you’ll end up with an ISO image in
./result/iso/nixos-
that you can burn onto a CD or attach to a virtual CD-ROM drive in
your favourite virtual machine software.version-platform.iso
Boot from the CD.
The CD contains a basic NixOS installation. (It also contain Memtest86+, useful if you want to test new hardware.) When it’s finished booting, it should have detected most of your hardware and brought up networking (check ifconfig). Networking is necessary for the installer, since it will download lots of stuff (such as source tarballs or Nixpkgs channel binaries). It’s best if you have a DHCP server on your network. Otherwise configure manually.
The NixOS manual is available on virtual console 7 (press Alt+F7 to access).
Login as root, empty
password.
The NixOS installer doesn’t do any partitioning or formatting yet, so you need to that yourself. Use the following commands:
For partitioning: fdisk.
For initialising Ext2/Ext3 partitions:
mke2fs. Ext3 is recommended; use the
-j to create a journalled file system. It is
also recommended that you assign a unique symbolic label to the
file system using the option -L
. This will make the
file system configuration independent from device
changes.label
For creating swap partitions:
mkswap. Again it’s recommended to assign a
label to the swap partition: -L
.label
For creating LVM volumes, the LVM commands, e.g.,
$ pvcreate /dev/sda1 /dev/sdb1 $ vgcreate MyVolGroup /dev/sda1 /dev/sdb1 $ lvcreate --size 2G --name bigdisk MyVolGroup $ lvcreate --size 1G --name smalldisk MyVolGroup
Possibly you’ll need to do initctl start
lvm after this (TODO: check whether this is
needed).
For creating software RAID devices: mdadm.
Mount the target file system on
/mnt.
The installation is declarative; you need to write a
description of the configuration that you want to be built and
activated. The configuration is specified in a Nix expression and
must be stored on the target file system in
/mnt/etc/nixos/configuration.nix. See
/etc/nixos/nixos/doc/config-examples for
example machine configurations. You can copy and edit one of
those (e.g., copy
/etc/nixos/nixos/doc/config-examples/basic.nix
to /mnt/etc/nixos/configuration.nix). See
Chapter 5, List of Options for a list of the available
configuration options. The text editors nano
and vim are available.
In particular you need to specify a root file system in
fileSystems and the target device for the Grub
boot loader in boot.grubDevice.
The command nixos-hardware-scan can generate an initial configuration file for you, i.e.,
$ mkdir -p /mnt/etc/nixos $ nixos-hardware-scan > /mnt/etc/nixos/configuration.nix
It tries to figure out the modules necessary for mounting the root
device, as well as various other hardware characteristics.
However, it doesn’t try to figure out the
fileSystems option yet.
More examples of NixOS configurations for some actual machines can be found at https://svn.nixos.org/repos/nix/configurations/trunk/.
It is very important that you specify in the option
boot.initrd.kernelModules all kernel modules that
are necessary for mounting the root file system, otherwise the
installed system will not be able to boot. (If this happens, boot
from CD again, mount the target file system on
/mnt, fix
/mnt/etc/nixos/configuration.nix and rerun
nixos-install.)
nixos-hardware-scan should figure out the
required modules in most cases.
If your machine has a limited amount of memory, you
may want to activate swap devices now (swapon
device). The installer (or
rather, the build actions that it may spawn) may need quite a bit of
RAM, depending on your configuration.
Optionally, you can run
$ nixos-checkout
to make the installer use the latest NixOS/Nixpkgs sources from the Subversion repository, rather than the sources on CD.
Do the installation:
$ nixos-install
Cross fingers.
If everything went well:
$ reboot
You should now be able to boot into the installed NixOS. The Grub boot menu shows a list of available configurations (initially just one). Every time you change the NixOS configuration (see Section 1.3, “Changing the configuration”), a new item appears in the menu. This allows you to go back easily to another configuration if something goes wrong.
You should log in and change the root
password with passwd.
You’ll probably want to create some user accounts as well, which can be done with useradd:
$ useradd -c 'Eelco Dolstra' -m eelco $ passwd eelco
You may also want to install some software. For instance,
$ nix-env -qa \*
shows what packages are available, and
$ nix-env -i w3m
install the w3m browser.
Example 1.1, “Commands for installing NixOS on /dev/sda” shows a typical sequence
of commands for installing NixOS on an empty hard drive (here
/dev/sda). Example 1.2, “NixOS configuration” shows a
corresponding configuration Nix expression.
Example 1.1. Commands for installing NixOS on /dev/sda
$ fdisk /dev/sda (or whatever device you want to install on) $ mke2fs -j -L nixos /dev/sda1 (idem) $ mkswap -L swap /dev/sda2 (idem) $ mount LABEL=nixos /mnt $ mkdir -p /mnt/etc/nixos $ nixos-hardware-scan > /mnt/etc/nixos/configuration.nix $ nano /mnt/etc/nixos/configuration.nix (in particular, set the fileSystems and swapDevices options) $ nixos-install $ reboot
Example 1.2. NixOS configuration
{
boot.initrd.kernelModules = [ "ata_piix" ];
boot.grubDevice = "/dev/sda";
fileSystems = [
{ mountPoint = "/";
label = "nixos";
}
];
swapDevices = [
{ label = "swap"; }
];
services.sshd.enable = true;
}The file /etc/nixos/configuration.nix
contains the current configuration of your machine. Whenever you’ve
changed something to that file, or to the NixOS/Nixpkgs sources in
/etc/nixos/nixos and
/etc/nixos/nixpkgs, respectively, you should do
$ nixos-rebuild switch
to build the new configuration, make it the default configuration for booting, and try to effect the configuration in the running system (e.g., by restarting system services).
You can also do
$ nixos-rebuild test
to build the configuration and switch the running system to it, but without making it the boot default. So if (say) the configuration locks up your machine, you can just reboot to get back to a working configuration.
There is also
$ nixos-rebuild boot
to build the configuration and make it the boot default, but not switch to it now (so it will only take effect after the next reboot).
Finally, you can do
$ nixos-rebuild build
to build the configuration but nothing more. This is useful to see whether everything compiles cleanly.
The currently best way to keep your NixOS installation up to date is to track the NixOS Subversion repository. The program nixos-checkout does that for you. It will check if the NixOS/NixPkgs sources are present and if they are under a version control system (VCS) before updating them to the latest version. If your sources are not under a VCS, then you can rename them before running nixos-checkout which will checkout the sources.
To build the latest and greatest, do
$ nixos-checkout $ nixos-rebuild switch
(Or instead of switch, use any of the alternatives
shown in Section 1.3, “Changing the configuration”.)
To customize your VCS or to handle more repositories with
nixos-checkout, you can have a look at the
options installer.repos.nixos
and installer.repos.nixpkgs.
Table of Contents
Compiz Fusion is just a set of plugins fr Compiz. Your best interest is to have them found both by Compiz and by Compiz Configuration Settings (also in Compiz Fusion distribution). By default they look in Compiz installation path and in home directory. You do not need to track /nix/store manually - everything is already in /var/run/current-system/sw/share.
$HOME/.compiz/plugins
should contain plugins you want to load. All the installed
plugins are available in
/var/run/current-system/sw/share/compiz-plugins/compiz/,
so you can use symlinks to this directory.
$HOME/.compiz/metadata
should contain metadata (definition of configuration options) for plugins
you want to load. All the installed metadata is available in
/var/run/current-system/sw/share/compiz/,
so you can use symlinks to this directory.
Probably a way to load GConf configuration backend by default
should be found, but if you run Compiz with
GConf configuration (default for X server job
for now), you have to link
/var/run/current-system/sw/share/compizconfig/backends/
into $HOME/.compizconfig/backends directory.
To summarize the above, these are the commands you have to execute
ln -s /var/run/current-system/sw/share/compiz/ $HOME/.compiz/metadata
ln -s /var/run/current-system/sw/share/compiz-plugins/compiz/ $HOME/.compiz/plugins
ln -s /var/run/current-system/sw/share/compizconfig/backends/ $HOME/.compizconfig/backends
Now you can launch ccsm and configure everything. You should select
GConf as a backend in the preferences menu of ccsm
To have pidgin-latex plugin working after installation, you need the following:
Symlink /var/run/current-system/sw/share/pidgin-latex/pidgin-latex.so
to $HOME/.purple/plugins/pidgin-latex.so
Enable smileys. If you do not want to, you can create
$HOME/.purple/smileys/empty/theme with the following contents:
Name=Empty Description=No predefined smileys Author=Nobody
Enabling this theme will enable smileys, but define none.
Enable the plugin.
Table of Contents
To get a Stage 1 shell (i.e., a shell in the initial ramdisk),
add debug1 to the kernel command line. The shell
gets started before anything useful has been done. That is, no
modules have been loaded and no file systems have been mounted, except
for /proc and /sys.
To get a Stage 2 shell (i.e., a shell in the actual root file
system), add debug2 to the kernel command
line. This shell is started right after stage 1 calls the stage 2
init script, so the root file system is there but
no services have been started.
If the hardware autodetection (in
upstart-jobs/hardware-scan) causes problems, add
safemode to the kernel command line. This will
disable auto-loading of modules for your PCI devices. However, you
will probably need to explicitly add modules to
boot.kernelModules to get network support etc.
Table of Contents
This chapter has some random notes on hacking on NixOS.
A unique syntax is used to express all system, hardware, computer and service configurations. This syntax helps for reading and writing new configuration files. It is coming with some extra strategies defined in NixPkgs which are used to merge and evaluate all configuration files.
A configuration file is the same as your own computer configuration.
Example 4.1. Usual configuration file
{config, modulesPath, pkgs, ...}:
let
inherit (pkgs.lib) mkOption mkIf mkThenElse types;
cfg = config.services.locate;
locatedb = "/var/cache/locatedb";
logfile = "/var/log/updatedb";
cmd = "root updatedb --localuser=nobody --output=${locatedb} > ${logfile}";
in
{
imports = [
(modulesPath + /services/scheduling/cron.nix)
];
options = {
services.locate = {
enable = mkOption {
default = false;
example = true;
type = types.bool;
description = ''
If enabled, NixOS will periodically update the database of
files used by the locate command.
'';
};
period = mkOption {
default = "15 02 * * *";
type = types.uniq type.string;
description = ''
This option defines (in the format used by cron) when the
locate database is updated.
The default is to update at 02:15 (at night) every day.
'';
};
};
};
config = mkIf cfg.enable {
services.cron = {
systemCronJobs = mkThenElse {
thenPart = "${cfg.period} root ${cmd}";
elsePart = "";
};
};
};
}Example 4.1, “Usual configuration file” shows the configuration
file for the locate service which uses cron to update the
database at some dates which can be defined by the user. This nix
expression is coming
from upstart-jobs/cron/locate.nix. It shows a simple
example of a service that can be either distributed on many computer that
are using the same configuration or to shared with the community. This
file is divided in two with the interface and the implementation. Both
the interface and the implementation declare a configuration
set.
This line declares the arguments of the configuration file. You
can omit this line if there is no reference to The argument The argument | |
This line is used to import a functions that are useful for writing this configuration file. | |
The variable The The | |
This line is a common trick used to reduce the amount of
writing. In this case | |
This line is used to declare a special IF
statement. If you had put a usual IF statement
here, with the same condition, then you will get an infinite loop. The
reason is that your condition ask for the value of the
option To remove this extra complexity, | |
The attribute When a dependence on a NixOS module has to be made, then you
should use the argument | |
The attribute As To avoid a lot of If your then part
and else part are identical, then you should use
the function If you need to add another condition, then you can add |
$ nix-build /etc/nixos/nixos -A attr
where attr is an attribute in
/etc/nixos/nixos/default.nix. Attributes of interest include:
configThe computer configuration generated from
the NIXOS_CONFIG environment variable (default
is /etc/nixos/configuration.nix) with the NixOS
default set of modules.
systemThe derivation which build your computer system. It is built by the command nixos-rebuild build
vmThe derivation which build your computer system inside a virtual machine. It is built by the command nixos-rebuild build-vm
Most parts of NixOS can be build through the config
attribute set. This attribute set allows you to have a view of the merged
option definitions and all its derivations. Important derivations are store
inside the option system.build and can be listed with the
command nix-instantiate --xml --eval-only /etc/nixos/nixos -A
config.system.build
Building a NixOS CD is as easy as configuring your own computer. The
idea is to use another module which will replace
your configuration.nix to configure the system that
would be install on the CD.
Default CD/DVD configurations are available
inside nixos/modules/installer/cd-dvd. To build them
you have to set NIXOS_CONFIG before
running nix-build to build the ISO.
$ export NIXOS_CONFIG=/etc/nixos/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix $ nix-build /etc/nixos/nixos -A config.system.build.isoImage
Before burning your CD/DVD, you can check the content of the image by mounting anywhere like suggested by the following command:
$ mount -o loop -t iso9660 ./result/iso/cd.iso /mnt/iso
Building, burning, and booting from an installation CD is rather tedious, so here is a quick way to see if the installer works properly:
$ export NIXOS_CONFIG=/etc/nixos/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix $ nix-build /etc/nixos/nixos -A config.system.build.nixosInstall $ dd if=/dev/zero of=diskimage seek=2G count=0 bs=1 $ yes | mke2fs -j diskimage $ mount -o loop diskimage /mnt $ ./result/bin/nixos-install
A quick way to test whether the kernel and the initial ramdisk
boot correctly is to use QEMU’s -kernel and
-initrd options:
$ nix-build /etc/nixos/nixos -A config.system.build.initialRamdisk -o initrd $ nix-build /etc/nixos/nixos -A config.system.build.kernel -o kernel $ qemu-system-x86_64 -kernel ./kernel/bzImage -initrd ./initrd/initrd -hda /dev/null
assertionsThis option allows modules to express conditions that must hold for the evaluation of the system configuration to succeed, along with associated error messages for the user.
Default:
[
]
Example:
[
{
assertion = false; msg = "you can't enable this for that reason";
}
]
Declared by:
/etc/nixos/nixos/modules/misc/assertions.nix |
Defined by:
boot.blacklistedKernelModulesList of names of kernel modules that should not be loaded automatically by the hardware probing code.
Default:
[
]
Example:
[
"cirrusfb" "i2c_piix4"
]
Declared by:
/etc/nixos/nixos/modules/system/boot/modprobe.nix |
Defined by:
/etc/nixos/nixos/modules/system/boot/modprobe.nix |
boot.bootMountObsolete name of boot.loader.grub.bootDevice.
Default: none
Declared by:
/etc/nixos/nixos/modules/rename.nix |
boot.copyKernelsObsolete name of boot.loader.grub.copyKernels.
Default: none
Declared by:
/etc/nixos/nixos/modules/rename.nix |
boot.extraGrubEntriesObsolete name of boot.loader.grub.extraEntries.
Default: none
Declared by:
/etc/nixos/nixos/modules/rename.nix |
boot.extraGrubEntriesBeforeNixosObsolete name of boot.loader.grub.extraEntriesBeforeNixOS.
Default: none
Declared by:
/etc/nixos/nixos/modules/rename.nix |
boot.extraKernelParamsAdditional user-defined kernel parameters.
Default:
[
]
Example:
[
"debugtrace"
]
Declared by:
/etc/nixos/nixos/modules/system/boot/kernel.nix |
boot.extraModprobeConfigAny additional configuration to be appended to the generated
modprobe.conf. This is typically used to
specify module options. See
modprobe.conf(5) for details.
Default:
""
Example:
"options parport_pc io=0x378 irq=7 dma=1\n"
Declared by:
/etc/nixos/nixos/modules/system/boot/modprobe.nix |
boot.extraModulePackagesA list of additional packages supplying kernel modules.
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/system/boot/kernel.nix |
Defined by:
/etc/nixos/nixos/modules/services/x11/xserver.nix |
boot.extraTTYsTty (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
boot.extraTTYs to ["tty7"].
Default:
[
]
Example:
[
"tty8" "tty9"
]
Declared by:
/etc/nixos/nixos/modules/tasks/kbd.nix |
Defined by:
/etc/nixos/nixos/modules/services/misc/rogue.nix |
/etc/nixos/nixos/modules/services/misc/nixos-manual.nix |
boot.grubDeviceObsolete name of boot.loader.grub.device.
Default: none
Declared by:
/etc/nixos/nixos/modules/rename.nix |
boot.grubSplashImageObsolete name of boot.loader.grub.splashImage.
Default: none
Declared by:
/etc/nixos/nixos/modules/rename.nix |
boot.hardwareScanWhether 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 safemode
parameter to the kernel command line.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/hardware/udev.nix |
boot.initrd.availableKernelModulesThe 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. The modules listed here are available in the
initrd, but are only loaded on demand (e.g., the ext3 module is
loaded automatically when an ext3 filesystem is mounted, and
modules for PCI devices are loaded when they match the PCI ID
of a device in your system). To force a module to be loaded,
include it in boot.initrd.kernelModules.
Default:
[
]
Example:
[
"sata_nv" "ext3"
]
Declared by:
/etc/nixos/nixos/modules/system/boot/kernel.nix |
Defined by:
/etc/nixos/nixos/modules/system/boot/kernel.nix |
boot.initrd.checkJournalingFSWhether to run fsck on journaling filesystems such as ext3.
Default:
true
Declared by:
/etc/nixos/nixos/modules/system/boot/stage-1.nix |
boot.initrd.enableSplashScreenWhether to show a nice splash screen while booting.
Default:
true
Declared by:
/etc/nixos/nixos/modules/system/boot/stage-1.nix |
boot.initrd.extraKernelModulesObsolete name of boot.initrd.kernelModules.
Default: none
Declared by:
/etc/nixos/nixos/modules/rename.nix |
boot.initrd.extraUtilsCommandsShell commands to be executed in the builder of the extra-utils derivation. This can be used to provide additional utilities in the initial ramdisk.
Default:
""
Declared by:
/etc/nixos/nixos/modules/system/boot/stage-1.nix |
boot.initrd.kernelModulesList of modules that are always loaded by the initrd.
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/system/boot/kernel.nix |
/etc/nixos/nixos/modules/rename.nix |
Defined by:
/etc/nixos/nixos/modules/system/boot/kernel.nix |
boot.initrd.postDeviceCommandsShell commands to be executed immediately after stage 1 of the boot has loaded kernel modules and created device nodes in /dev.
Default:
""
Declared by:
/etc/nixos/nixos/modules/system/boot/stage-1.nix |
boot.initrd.postMountCommandsShell commands to be executed immediately after the stage 1 filesystems have been mounted.
Default:
""
Declared by:
/etc/nixos/nixos/modules/system/boot/stage-1.nix |
boot.kernelModulesThe set of kernel modules to be loaded in the second stage of
the boot process. Note that modules that are needed to
mount the root file system should be added to
boot.initrd.availableKernelModules or
boot.initrd.kernelModules.
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/system/boot/kernel.nix |
Defined by:
/etc/nixos/nixos/modules/system/boot/kernel.nix |
/etc/nixos/nixos/modules/hardware/pcmcia.nix |
boot.kernelPackagesThis 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 kernel.
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
nvidia_x11.
Default:
{
atheros = (build of atheros-0.9.4); aufs = (build of aufs-20090414-2.6.32.10); aufs2 = (build of aufs2-a5883982f82ce927b3cbd8fc9c8d05865fc43bd9-2.6.32.10); aufs2Utils = ; exmap = (build of exmap-0.10); ext3cowtools = (build of ext3cow-tools); iwlwifi = (build of iwlwifi-1.2.25-2.6.32.10); iwlwifi4965ucode = (build of iwlwifi-4965-ucode-228.57.2.21); kernel = (build of ); kqemu = (build of kqemu-1.4.0pre1); ndiswrapper = (build of ndiswrapper-1.53-stable); nvidia_x11 = (build of nvidia-x11-190.53-2.6.32.10); nvidia_x11_legacy = (build of nvidia-x11-96.43.14-2.6.32.10); openafsClient = (build of openafs-1.4.11-2.6.32.10); ov511 = (build of ov511-2.30); snix = (build of snix-0.12rev10946); splashutils = (build of splashutils-1.5.4.3); sysprof = (build of sysprof-1.0.10-2.6.32.10); virtualbox = (build of virtualbox-3.1.4-2.6.32.10); virtualboxGuestAdditions = (build of VirtualBox-GuestAdditions-3.1.4); wis_go7007 = (build of wis-go7007-0.9.8-2.6.32.10);
}
Example:
"pkgs.linuxPackages_2_6_25"
Declared by:
/etc/nixos/nixos/modules/system/boot/kernel.nix |
boot.kernelParamsThe kernel parameters. If you want to add additional
parameters, it's best to set
boot.extraKernelParams.
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/system/boot/kernel.nix |
Defined by:
/etc/nixos/nixos/modules/system/boot/kernel.nix |
boot.loader.generationsDir.copyKernelsWhether copy the necessary boot files into /boot, so /nix/store is not needed by the boot loadear.
Default:
false
Declared by:
/etc/nixos/nixos/modules/installer/generations-dir/generations-dir.nix |
boot.loader.generationsDir.enableWhether to enable the simple preparation of symlinks to the system generations in /boot.
Default:
false
Declared by:
/etc/nixos/nixos/modules/installer/generations-dir/generations-dir.nix |
boot.loader.grub.bootDeviceObsolete.
Default:
""
Declared by:
/etc/nixos/nixos/modules/rename.nix |
/etc/nixos/nixos/modules/installer/grub/grub.nix |
boot.loader.grub.configurationLimitMaximum of configurations in boot menu. GRUB has problems when there are too many entries.
Default:
100
Example:
120
Declared by:
/etc/nixos/nixos/modules/installer/grub/grub.nix |
boot.loader.grub.configurationNameGRUB entry name instead of default.
Default:
""
Example:
"Stable 2.6.21"
Declared by:
/etc/nixos/nixos/modules/installer/grub/grub.nix |
boot.loader.grub.copyKernelsWhether the GRUB menu builder should copy kernels and initial ramdisks to /boot. This is done automatically if /boot is on a different partition than /.
Default:
false
Declared by:
/etc/nixos/nixos/modules/rename.nix |
/etc/nixos/nixos/modules/installer/grub/grub.nix |
boot.loader.grub.defaultIndex of the default menu item to be booted.
Default:
0
Declared by:
/etc/nixos/nixos/modules/installer/grub/grub.nix |
boot.loader.grub.deviceThe 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.
Default:
""
Example:
"/dev/hda"
Declared by:
/etc/nixos/nixos/modules/rename.nix |
/etc/nixos/nixos/modules/installer/grub/grub.nix |
boot.loader.grub.enableWhether to enable the GNU GRUB boot loader.
Default:
true
Declared by:
/etc/nixos/nixos/modules/installer/grub/grub.nix |
Defined by:
/etc/nixos/nixos/modules/config/gnu.nix |
boot.loader.grub.extraEntriesAny additional entries you want added to the GRUB boot menu.
Default:
""
Example:
"title Windows\n chainloader (hd0,1)+1\n"
Declared by:
/etc/nixos/nixos/modules/rename.nix |
/etc/nixos/nixos/modules/installer/grub/grub.nix |
boot.loader.grub.extraEntriesBeforeNixOSWhether extraEntries are included before the default option.
Default:
false
Declared by:
/etc/nixos/nixos/modules/rename.nix |
/etc/nixos/nixos/modules/installer/grub/grub.nix |
boot.loader.grub.splashImageBackground image used for GRUB. It must be a 640x480,
14-colour image in XPM format, optionally compressed with
gzip or bzip2. Set to
null to run GRUB in text mode.
Default:
(build of 36909-soft-tux.xpm.gz)
Example:
Declared by:
/etc/nixos/nixos/modules/rename.nix |
/etc/nixos/nixos/modules/installer/grub/grub.nix |
boot.loader.grub.timeoutTimeout (in seconds) until GRUB boots the default menu item.
Default:
5
Declared by:
/etc/nixos/nixos/modules/installer/grub/grub.nix |
boot.loader.grub.versionThe version of GRUB to use: 1 for GRUB Legacy
(versions 0.9x), or 2 for GRUB 2.
Default:
1
Example:
2
Declared by:
/etc/nixos/nixos/modules/installer/grub/grub.nix |
Defined by:
/etc/nixos/nixos/modules/config/gnu.nix |
boot.loader.initScript.enableSome systems require a /sbin/init script which is started. Or having it makes starting NixOS easier. This applies to some kind of hosting services and user mode linux. Additionaly this script will create /boot/init-other-configurations-contents.txt containing contents of remaining configurations. You can copy paste them into /sbin/init manually running a recue system or such.
Default:
false
Declared by:
/etc/nixos/nixos/modules/installer/init-script/init-script.nix |
boot.postBootCommandsShell commands to be executed just before Upstart is started.
Default:
""
Example:
"rm -f /var/log/messages"
Declared by:
/etc/nixos/nixos/modules/system/boot/stage-2.nix |
boot.resumeDeviceDevice for manual resume attempt during boot. Looks like major:minor. ls -l /dev/SWAP_PARTION shows them.
Default:
""
Example:
"0:0"
Declared by:
/etc/nixos/nixos/modules/system/boot/stage-1.nix |
boot.vesaWhether to activate VESA video mode on boot
Default:
true
Example:
false
Declared by:
/etc/nixos/nixos/modules/system/boot/kernel.nix |
environment.checkConfigurationOptionsWhether to check the validity of the entire configuration.
Default:
true
Example:
false
Declared by:
/etc/nixos/nixos/modules/misc/check-config.nix |
environment.etcList of files that have to be linked in /etc.
Default:
[
]
Example:
[
{
mode = "0440"; source = "/nix/store/.../etc/dir/file.conf.example"; target = "dir/file.conf";
}
]
Declared by:
/etc/nixos/nixos/modules/system/etc/etc.nix |
Defined by:
environment.extraPackagesObsolete name of environment.systemPackages.
Default: none
Declared by:
/etc/nixos/nixos/modules/rename.nix |
environment.kdePackagesAdditional KDE packages to be used when you use KDE as a desktop manager. By default, you only get the KDE base packages.
Default:
[
]
Example:
[
(build of kdegames-4.4.1)
]
Declared by:
/etc/nixos/nixos/modules/services/x11/desktop-managers/kde-environment.nix |
/etc/nixos/nixos/modules/rename.nix |
Defined by:
/etc/nixos/nixos/modules/services/x11/desktop-managers/kde4.nix |
/etc/nixos/nixos/modules/services/x11/desktop-managers/kde.nix |
environment.nixThis option specifies the Nix package instance to use throughout the system.
Default:
(build of nix-0.15)
Example:
Declared by:
/etc/nixos/nixos/modules/services/misc/nix-daemon.nix |
environment.noXlibsSwitch off the options in the default configuration that require X libraries. Currently this includes: sshd.forwardX11, dbus, hal, fonts.enableCoreFonts, fonts.enableFontConfig
Default:
false
Example:
true
Declared by:
/etc/nixos/nixos/modules/config/no-x-libs.nix |
environment.pathsToLinkLists directories to be symlinked in `/var/run/current-system/sw'.
Default:
[
"/bin" "/sbin" "/lib" "/share/man" "/share/info" "/man" "/info"
]
Example:
[
"/"
]
Declared by:
/etc/nixos/nixos/modules/config/system-path.nix |
environment.shellInitScript used to initialized user shell environments.
Default:
""
Example:
"export PATH=/godi/bin/:$PATH"
Declared by:
/etc/nixos/nixos/modules/programs/bash/bash.nix |
Defined by:
environment.systemPackagesThe set of packages that appear in
/var/run/current-system/sw. These packages are
automatically available to all users, and are
automatically updated every time you rebuild the system
configuration. (The latter is the main difference with
installing them in the default profile,
/nix/var/nix/profiles/default.
Default:
[
]
Example:
[
(build of firefox-3.5.8) (build of thunderbird-2.0.0.22)
]
Declared by:
/etc/nixos/nixos/modules/rename.nix |
/etc/nixos/nixos/modules/config/system-path.nix |
Defined by:
environment.unixODBCDriversspecifies unix odbc drivers to be registered at /etc/odbcinst.ini. Maybe you also want to add pkgs.unixODBC to the system path to get a command line client t connnect to odbc databases.
Default:
[
]
Example:
"map (x : x.ini) (with pkgs.unixODBCDrivers; [ mysql psql psqlng ] )"
Declared by:
/etc/nixos/nixos/modules/config/unix-odbc-drivers.nix |
environment.x11PackagesList of packages added to the system when the X server is
activated (services.xserver.enable).
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/services/x11/xserver.nix |
Defined by:
fileSystems
The file systems to be mounted. It must include an entry for
the root directory (mountPoint = "/"). Each
entry in the list is an attribute set with the following fields:
mountPoint, device,
fsType (a file system type recognised by
mount; defaults to
"auto"), and options
(the mount options passed to mount using the
-o flag; defaults to "defaults").
Instead of specifying device, you can also
specify a volume label (label) for file
systems that support it, such as ext2/ext3 (see mke2fs
-L).
autocreate forces mountPoint to be created with
mkdir -p .
Default: none
Example:
[
{
device = "/dev/hda1"; mountPoint = "/";
}
{
device = "/dev/hda2"; fsType = "ext3"; mountPoint = "/data"; options = "data=journal";
}
{
label = "bigdisk"; mountPoint = "/bigdisk";
}
]
Declared by:
/etc/nixos/nixos/modules/tasks/filesystems.nix |
/etc/nixos/nixos/modules/system/boot/stage-1.nix |
fileSystems.*.autocreate
Automatically create the mount point defined in
fileSystems.*.mountPoint.
Default:
false
Declared by:
/etc/nixos/nixos/modules/tasks/filesystems.nix |
fileSystems.*.deviceLocation of the device.
Default:
Example:
"/dev/sda"
Declared by:
/etc/nixos/nixos/modules/tasks/filesystems.nix |
fileSystems.*.fsTypeType of the file system.
Default:
"auto"
Example:
"ext3"
Declared by:
/etc/nixos/nixos/modules/tasks/filesystems.nix |
fileSystems.*.labelLabel of the device (if any).
Default:
Example:
"root-partition"
Declared by:
/etc/nixos/nixos/modules/tasks/filesystems.nix |
fileSystems.*.mountPointLocation of the mounted the file system.
Default: none
Example:
"/mnt/usb"
Declared by:
/etc/nixos/nixos/modules/tasks/filesystems.nix |
fileSystems.*.neededForBootMount this file system to boot on NixOS.
Default:
false
Declared by:
/etc/nixos/nixos/modules/system/boot/stage-1.nix |
fileSystems.*.optionsOption used to mount the file system.
Default:
"defaults,relatime"
Example:
"data=journal"
Declared by:
/etc/nixos/nixos/modules/tasks/filesystems.nix |
fonts.enableCoreFontsWhether to include Microsoft's proprietary Core Fonts. These fonts are redistributable, but only verbatim, among other restrictions. See http://corefonts.sourceforge.net/eula.htm for details.
Default:
false
Declared by:
/etc/nixos/nixos/modules/config/fonts.nix |
Defined by:
/etc/nixos/nixos/modules/config/no-x-libs.nix |
fonts.enableFontConfigIf 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.
Default:
true
Declared by:
/etc/nixos/nixos/modules/config/fonts.nix |
Defined by:
/etc/nixos/nixos/modules/config/no-x-libs.nix |
fonts.enableFontDirWhether 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).
Default:
false
Declared by:
/etc/nixos/nixos/modules/config/fonts.nix |
fonts.enableGhostscriptFontsWhether to add the fonts provided by Ghostscript (such as various URW fonts and the ``Base-14'' Postscript fonts) to the list of system fonts, making them available to X11 applications.
Default:
false
Declared by:
/etc/nixos/nixos/modules/config/fonts.nix |
fonts.extraFontsList of additional fonts.
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/config/fonts.nix |
fonts.fontsList of primary font paths.
Default:
[
"~/.fonts" "~/.nix-profile/lib/X11/fonts" "~/.nix-profile/share/fonts" "/nix/var/nix/profiles/default/lib/X11/fonts" "/nix/var/nix/profiles/default/share/fonts"
]
Declared by:
/etc/nixos/nixos/modules/config/fonts.nix |
gnuWhen enable, GNU software is chosent by default whenever a there is a choice between GNU and non-GNU software (e.g., GNU lsh vs. OpenSSH).
Default:
false
Declared by:
/etc/nixos/nixos/modules/config/gnu.nix |
hardware.firmwareList of directories containing firmware files. Such files will be loaded automatically if the kernel asks for them (i.e., when it has detected specific hardware that requires firmware to function).
Default:
[
]
Example:
[
"/root/my-firmware"
]
Declared by:
/etc/nixos/nixos/modules/services/hardware/udev.nix |
Defined by:
hardware.pcmcia.configPath to the configuration file which map the memory, irq and ports used by the PCMCIA hardware.
Default:
Declared by:
/etc/nixos/nixos/modules/hardware/pcmcia.nix |
hardware.pcmcia.enableEnable this option to support PCMCIA card.
Default:
false
Declared by:
/etc/nixos/nixos/modules/hardware/pcmcia.nix |
hardware.pcmcia.firmwareList of firmware used to handle specific PCMCIA card.
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/hardware/pcmcia.nix |
i18n.consoleFontThe font used for the virtual consoles. Leave empty to use whatever the setfont program considers the default font.
Default:
"lat9w-16"
Example:
"LatArCyrHeb-16"
Declared by:
/etc/nixos/nixos/modules/config/i18n.nix |
i18n.consoleKeyMapThe keyboard mapping table for the virtual consoles.
Default:
"us"
Example:
"fr"
Declared by:
/etc/nixos/nixos/modules/config/i18n.nix |
i18n.defaultLocaleThe 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.
Default:
"en_US.UTF-8"
Example:
"nl_NL.UTF-8"
Declared by:
/etc/nixos/nixos/modules/config/i18n.nix |
i18n.supportedLocalesList of locales that the system should support. The value
"all" means that all locales supported by
Glibc will be installed. A full list of supported locales
can be found at http://sourceware.org/cgi-bin/cvsweb.cgi/libc/localedata/SUPPORTED?cvsroot=glibc.
Default:
[
"all"
]
Example:
[
"en_US.UTF-8/UTF-8" "nl_NL.UTF-8/UTF-8" "nl_NL/ISO-8859-1"
]
Declared by:
/etc/nixos/nixos/modules/config/i18n.nix |
ids.gidsThe group IDs used in NixOS.
Default: none
Declared by:
/etc/nixos/nixos/modules/misc/ids.nix |
Defined by:
/etc/nixos/nixos/modules/misc/ids.nix |
ids.uidsThe user IDs used in NixOS.
Default: none
Declared by:
/etc/nixos/nixos/modules/misc/ids.nix |
Defined by:
/etc/nixos/nixos/modules/misc/ids.nix |
installer.manifestsURLs of manifests to be downloaded when you run nixos-rebuild to speed up builds.
Default:
[
"http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable/MANIFEST"
]
Example:
[
"http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable/MANIFEST" "http://nixos.org/releases/nixpkgs/channels/nixpkgs-stable/MANIFEST"
]
Declared by:
/etc/nixos/nixos/modules/installer/tools/tools.nix |
installer.nixpkgsURLURL of the Nixpkgs distribution to use when building the installation CD.
Default:
""
Example:
"http://nixos.org/releases/nix/nixpkgs-0.11pre7577"
Declared by:
/etc/nixos/nixos/modules/installer/tools/tools.nix |
installer.repoTypesDefines, for each supported version control system
(e.g. git), the dependencies for the
mechanism, as well as a test used to determine whether a
directory is a checkout created by that version control
system.
Default:
{
git =
{
env =
[
(build of ) (build of ) (build of )
]
; valid = "[ -d .git ]";
}
; svn =
{
env =
[
(build of ) (build of subversion-1.6.9)
]
; valid = "[ -d .svn ]";
}
;
}
Declared by:
/etc/nixos/nixos/modules/installer/tools/nixos-checkout.nix |
installer.repos.nixosThe NixOS repository from which the system will be built.
nixos-checkout will update all working
copies of the given repositories,
nixos-rebuild will use the first item
which has the attribute default = true
falling back to the first item. The type defines the
repository tool added 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
.
For svn the default target and repositories are
dir-date/etc/nixos/nixos and
https://svn.nixos.org/repos/nix/nixos/trunk.
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
. For
the executables used see dirrepoTypes.
Default:
[
{
type = "svn";
}
]
Example:
[
{
target = "/etc/nixos/nixos-stdenv-updates"; type = "svn"; url = "https://svn.nixos.org/repos/nix/nixos/branches/stdenv-updates";
}
{
initialize = "git clone git://mawercer.de/nixos $target"; target = "/etc/nixos/nixos-git"; type = "git"; update = "git pull origin";
}
]
Declared by:
/etc/nixos/nixos/modules/installer/tools/nixos-checkout.nix |
installer.repos.nixpkgssame as repos.nixos
Default:
[
{
type = "svn";
}
]
Declared by:
/etc/nixos/nixos/modules/installer/tools/nixos-checkout.nix |
jobsThis option defines the system jobs started and managed by the Upstart daemon.
Default:
{
}
Declared by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
Defined by:
jobs.<name>.buildHookCommand run while building the Upstart job. Can be used
to perform simple regression tests (e.g., the Apache
Upstart job uses it to check the syntax of the generated
httpd.conf.
Default:
"true"
Declared by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
jobs.<name>.daemonTypeDetermines how Upstart detects when a daemon should be
considered “running”. The value none means
that the daemon is considered ready immediately. The value
fork means that the daemon will fork once.
The value daemon means that the daemon will
fork twice. The value stop means that the
daemon will raise the SIGSTOP signal to indicate readiness.
Default:
"none"
Declared by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
jobs.<name>.descriptionA short description of this job.
Default:
"(no description given)"
Declared by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
jobs.<name>.environmentEnvironment variables passed to the job's processes.
Default:
{
}
Example:
{
LANG = "nl_NL.UTF-8"; PATH = "/foo/bar/bin";
}
Declared by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
jobs.<name>.execCommand to start the job's main process. If empty, the job has no main process, but can still have pre/post-start and pre/post-stop scripts, and is considered “running” until it is stopped.
Default:
""
Declared by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
jobs.<name>.extraConfigAdditional Upstart stanzas not otherwise supported.
Default:
""
Example:
"limit nofile 4096 4096"
Declared by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
jobs.<name>.jobDrvDerivation that builds the Upstart job file. The default value is generated from other options.
Default:
(build of upstart-_name_.conf)
Declared by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
jobs.<name>.nameName of the Upstart job.
Default: none
Example:
"sshd"
Declared by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
Defined by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
jobs.<name>.postStartShell commands executed after the job is started (i.e. after the job's main process is started), but before the job is considered “running”.
Default:
""
Declared by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
jobs.<name>.postStopShell commands executed after the job has stopped (i.e. after the job's main process has terminated).
Default:
""
Declared by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
jobs.<name>.preStartShell commands executed before the job is started (i.e. before the job's main process is started).
Default:
""
Declared by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
jobs.<name>.preStopShell commands executed before the job is stopped (i.e. before Upstart kills the job's main process). This can be used to cleanly shut down a daemon.
Default:
""
Declared by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
jobs.<name>.respawnWhether to restart the job automatically if its process ends unexpectedly.
Default:
true
Declared by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
jobs.<name>.scriptShell commands executed as the job's main process. Can be
specified instead of the exec attribute.
Default:
""
Declared by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
jobs.<name>.startOnThe Upstart event that triggers this job to be started. If empty, the job will not start automatically.
Default:
""
Declared by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
jobs.<name>.stopOnThe Upstart event that triggers this job to be stopped.
Default:
"shutdown"
Declared by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
jobs.<name>.taskWhether this job is a task rather than a service. Tasks are executed only once, while services are restarted when they exit.
Default:
false
Declared by:
/etc/nixos/nixos/modules/system/upstart/upstart.nix |
kde.extraPackagesDeprecated name of environment.kdePackages.
Default: none
Declared by:
/etc/nixos/nixos/modules/rename.nix |
krb5.defaultRealmDefault realm.
Default:
"ATENA.MIT.EDU"
Declared by:
/etc/nixos/nixos/modules/config/krb5.nix |
krb5.enableWhether to enable Kerberos V.
Default:
false
Declared by:
/etc/nixos/nixos/modules/config/krb5.nix |
krb5.kdcKerberos Domain Controller
Default:
"kerberos.mit.edu"
Declared by:
/etc/nixos/nixos/modules/config/krb5.nix |
krb5.kerberosAdminServerKerberos Admin Server
Default:
"kerberos.mit.edu"
Declared by:
/etc/nixos/nixos/modules/config/krb5.nix |
nesting.childrenAdditional configurations to build.
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/system/activation/top-level.nix |
networking.WLANInterfaceThe interface wpa_supplicant will use, if enableWLAN is enabled.
Default:
"wlan0"
Declared by:
/etc/nixos/nixos/modules/services/networking/wpa_supplicant.nix |
networking.defaultGatewayThe default gateway. It can be left empty if it is auto-detected through DHCP.
Default:
""
Example:
"131.211.84.1"
Declared by:
/etc/nixos/nixos/modules/tasks/network-interfaces.nix |
networking.defaultMailServer.directDelivery
Use the trivial Mail Transfer Agent (MTA)
ssmtp package to allow programs to send
e-mail. If you don't want to run a ``real'' MTA like
sendmail or postfix on
your machine, set this option to true, and
set the option
networking.defaultMailServer.hostName to the
host name of your preferred mail server.
Default:
false
Example:
true
Declared by:
/etc/nixos/nixos/modules/programs/ssmtp.nix |
networking.defaultMailServer.domainThe domain from which mail will appear to be sent.
Default:
""
Example:
"example.org"
Declared by:
/etc/nixos/nixos/modules/programs/ssmtp.nix |
networking.defaultMailServer.hostNameThe host name of the default mail server to use to deliver e-mail.
Default: none
Example:
"mail.example.org"
Declared by:
/etc/nixos/nixos/modules/programs/ssmtp.nix |
networking.defaultMailServer.useSTARTTLSWhether 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.)
Default:
false
Example:
true
Declared by:
/etc/nixos/nixos/modules/programs/ssmtp.nix |
networking.defaultMailServer.useTLSWhether TLS should be used to connect to the default mail server.
Default:
false
Example:
true
Declared by:
/etc/nixos/nixos/modules/programs/ssmtp.nix |
networking.domainThe domain. It can be left empty if it is auto-detected through DHCP.
Default:
""
Example:
"home"
Declared by:
/etc/nixos/nixos/modules/tasks/network-interfaces.nix |
networking.enableIntel2200BGFirmwareTurn 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 http://ipw2200.sourceforge.net/firmware.php?fid=7.
Default:
false
Declared by:
/etc/nixos/nixos/modules/hardware/network/intel-2200bg.nix |
networking.enableIntel3945ABGFirmwareThis option enables automatic loading of the firmware for the Intel PRO/Wireless 3945ABG.
Default:
false
Declared by:
/etc/nixos/nixos/modules/hardware/network/intel-3945abg.nix |
networking.enableRT73FirmwareTurn on this option if you want firmware for the RT73 NIC
Default:
false
Declared by:
/etc/nixos/nixos/modules/hardware/network/rt73.nix |
networking.enableWLANWhether to start wpa_supplicant to scan for
and associate with wireless networks. Note: NixOS currently
does not generate wpa_supplicant's
configuration file, /etc/wpa_supplicant.conf. You
should edit this file yourself to define wireless networks,
WPA keys and so on (see
wpa_supplicant.conf(5)).
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/wpa_supplicant.nix |
networking.extraHostsAdditional entries to be appended to /etc/hosts.
Default:
""
Example:
"192.168.0.1 lanlocalhost"
Declared by:
/etc/nixos/nixos/modules/config/networking.nix |
networking.firewall.allowedTCPPortsList of TCP ports on which incoming connections are accepted.
Default:
[
]
Example:
[
22 80
]
Declared by:
/etc/nixos/nixos/modules/services/networking/firewall.nix |
Defined by:
/etc/nixos/nixos/modules/services/networking/ssh/sshd.nix |
networking.firewall.enableWhether to enable the firewall.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/firewall.nix |
networking.firewall.logRefusedConnectionsWhether to log rejected or dropped incoming connections.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/networking/firewall.nix |
networking.firewall.logRefusedPacketsWhether to log all rejected or dropped incoming packets. This tends to give a lot of log messages, so it's mostly useful for debugging.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/firewall.nix |
networking.firewall.rejectPacketsIf set, forbidden packets are rejected rather than dropped (ignored). This means that a ICMP "port unreachable" error message is sent back to the client. Rejecting packets makes port scanning somewhat easier.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/firewall.nix |
networking.hostNameThe name of the machine. Leave it empty if you want to obtain it from a DHCP server (if using DHCP).
Default:
"nixos"
Declared by:
/etc/nixos/nixos/modules/tasks/network-interfaces.nix |
networking.interfaceMonitor.beep
If true, beep when an Ethernet cable is
plugged in or unplugged.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/ifplugd.nix |
networking.interfaceMonitor.enable
If true, monitor Ethernet interfaces for
cables being plugged in or unplugged. When this occurs, the
dhclient service is restarted to
automatically obtain a new IP address. This is useful for
roaming users (laptops).
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/ifplugd.nix |
networking.interfacesThe configuration for each network interface. If
networking.useDHCP is true, then every
interface not listed here will be configured using DHCP.
Default:
[
]
Example:
[
{
ipAddress = "131.211.84.78"; name = "eth0"; subnetMask = "255.255.255.128";
}
]
Declared by:
/etc/nixos/nixos/modules/tasks/network-interfaces.nix |
networking.interfaces.*.ipAddressIP address of the interface. Leave empty to configure the interface using DHCP.
Default:
""
Example:
"10.0.0.1"
Declared by:
/etc/nixos/nixos/modules/tasks/network-interfaces.nix |
networking.interfaces.*.nameName of the interface.
Default: none
Example:
"eth0"
Declared by:
/etc/nixos/nixos/modules/tasks/network-interfaces.nix |
networking.interfaces.*.subnetMaskSubnet mask of the interface. Leave empty to use the default subnet mask.
Default:
""
Example:
"255.255.255.0"
Declared by:
/etc/nixos/nixos/modules/tasks/network-interfaces.nix |
networking.localCommandsShell commands to be executed at the end of the
network-interfaces Upstart job. Note that if
you are using DHCP to obtain the network configuration,
interfaces may not be fully configured yet.
Default:
""
Example:
"text=anything; echo You can put $text here."
Declared by:
/etc/nixos/nixos/modules/tasks/network-interfaces.nix |
networking.nameserversThe list of nameservers. It can be left empty if it is auto-detected through DHCP.
Default:
[
]
Example:
[
"130.161.158.4" "130.161.33.17"
]
Declared by:
/etc/nixos/nixos/modules/tasks/network-interfaces.nix |
networking.nativeIPv6Whether to use IPv6 even though gw6c is not used. For example, for Postfix.
Default:
false
Declared by:
/etc/nixos/nixos/modules/tasks/network-interfaces.nix |
networking.useDHCPWhether to use DHCP to obtain an IP adress and other configuration for all network interfaces that are not manually configured.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/networking/dhclient.nix |
networking.wicd.enableWhether to start wicd. Wired and wireless network configurations can then be managed by wicd-client.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/wicd.nix |
nix.buildMachines
This option lists the machines to be used if distributed
builds are enabled (see
nix.distributedBuilds). 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 (hostname), the user
name to be used for the SSH connection
(sshUser), the Nix system type
(system, e.g.,
"i686-linux"), the maximum number of jobs
to be run in parallel on that machine
(maxJobs), and the path to the SSH private
key to be used to connect (sshKey). The
SSH private key should not have a passphrase, and the
corresponding public key should be added to
~
on the remote machine.
sshUser/authorized_keys
Default: none
Example:
[
{
hostName = "voila.labs.cs.uu.nl"; maxJobs = 1; sshKey = "/root/.ssh/id_buildfarm"; sshUser = "nix"; system = "powerpc-darwin";
}
{
hostName = "linux64.example.org"; maxJobs = 2; sshKey = "/root/.ssh/id_buildfarm"; sshUser = "buildfarm"; system = "x86_64-linux";
}
]
Declared by:
/etc/nixos/nixos/modules/services/misc/nix-daemon.nix |
nix.daemonIONiceLevelNix daemon process I/O priority. This priority propagates to build processes. 0 is the default Unix process I/O priority, 7 is the lowest.
Default:
7
Declared by:
/etc/nixos/nixos/modules/services/misc/nix-daemon.nix |
nix.daemonNiceLevelNix daemon process priority. This priority propagates to build processes. 0 is the default Unix process priority, 20 is the lowest.
Default:
10
Declared by:
/etc/nixos/nixos/modules/services/misc/nix-daemon.nix |
nix.distributedBuilds
Whether to distribute builds to the machines listed in
nix.buildMachines.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/misc/nix-daemon.nix |
nix.envVarsEnvironment variables used by Nix.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/misc/nix-daemon.nix |
Defined by:
/etc/nixos/nixos/modules/services/misc/nix-daemon.nix |
nix.extraOptionsThis option allows to append lines to nix.conf.
Default:
""
Example:
"\n gc-keep-outputs = true\n gc-keep-derivations = true\n "
Declared by:
/etc/nixos/nixos/modules/services/misc/nix-daemon.nix |
nix.gc.automaticAutomatically run the garbage collector at specified dates.
Default:
false
Example:
true
Declared by:
/etc/nixos/nixos/modules/services/misc/nix-gc.nix |
nix.gc.datesRun the garbage collector at specified dates to avoid full hard-drives.
Default:
"15 03 * * *"
Declared by:
/etc/nixos/nixos/modules/services/misc/nix-gc.nix |
nix.gc.options
Options given to nix-collect-garbage when the
garbage collector is run automatically.
Default:
""
Example:
"--max-freed $((64 * 1024**3))"
Declared by:
/etc/nixos/nixos/modules/services/misc/nix-gc.nix |
nix.manualNixMachinesWhether to manually manage the list of buildmachines used in distributed builds in /etc/nix.machines.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/misc/nix-daemon.nix |
nix.maxJobsThis 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).
Default:
1
Example:
2
Declared by:
/etc/nixos/nixos/modules/services/misc/nix-daemon.nix |
nix.nrBuildUsersNumber of nixbld user accounts created to
perform secure concurrent builds. If you receive an error
message saying that “all build users are currently in use”,
you should increase this value.
Default:
10
Declared by:
/etc/nixos/nixos/modules/services/misc/nix-daemon.nix |
nix.proxyThis option specifies the proxy to use for fetchurl. The real effect is just exporting http_proxy, https_proxy and ftp_proxy with that value.
Default:
""
Example:
"http://127.0.0.1:3128"
Declared by:
/etc/nixos/nixos/modules/services/misc/nix-daemon.nix |
nix.useChrootIf 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.
Default:
false
Example:
true
Declared by:
/etc/nixos/nixos/modules/services/misc/nix-daemon.nix |
nixpkgs.configThe configuration of the Nix Packages collection.
Default:
{
}
Example:
{
firefox =
{
enableGeckoMediaPlayer = true;
}
;
}
Declared by:
/etc/nixos/nixos/modules/misc/nixpkgs.nix |
nixpkgs.platformThe platform for the Nix Packages collection.
Default:
{
kernelArch = "i386"; kernelAutoModules = true; kernelBaseConfig = "defconfig"; kernelExtraConfig = "# Virtualisation (KVM, Xen...).\nPARAVIRT_GUEST y\nKVM_CLOCK y\nKVM_GUEST y\nXEN y\nKSM y\n\n# We need 64 GB (PAE) support for Xen guest support.\nHIGHMEM64G? y\n"; kernelHeadersBaseConfig = "defconfig"; kernelTarget = "bzImage"; name = "pc"; uboot = ;
}
Declared by:
/etc/nixos/nixos/modules/misc/nixpkgs.nix |
passthruThis attribute set will be exported as a system attribute. You can put whatever you want here.
Default: none
Declared by:
/etc/nixos/nixos/modules/misc/passthru.nix |
powerManagement.enableWhether to enable power management. This includes support for suspend-to-RAM and powersave features on laptops.
Default:
false
Declared by:
/etc/nixos/nixos/modules/config/power-management.nix |
powerManagement.powerUpCommandsCommands executed when the machine powers up. That is, they're executed both when the system first boots and when it resumes from suspend or hibernation.
Default:
""
Example:
"/nix/store/sa5p827x18z9r6pszxgxzzcmq1ksaskh-hdparm-8.7/sbin/hdparm -B 255 /dev/sda"
Declared by:
/etc/nixos/nixos/modules/config/power-management.nix |
powerManagement.resumeCommandsCommands executed after the system resumes from suspend-to-RAM.
Default:
""
Declared by:
/etc/nixos/nixos/modules/config/power-management.nix |
Defined by:
/etc/nixos/nixos/modules/services/networking/dhclient.nix |
requiredTTYsFIXME: find another place for this option. FIXME: find a good description.
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/tasks/kbd.nix |
Defined by:
/etc/nixos/nixos/modules/tasks/kbd.nix |
security.extraSetuidProgramsThis option lists additional programs that must be made setuid root.
Default:
[
]
Example:
[
"fusermount"
]
Declared by:
/etc/nixos/nixos/modules/security/setuid-wrappers.nix |
Defined by:
/etc/nixos/nixos/modules/services/x11/desktop-managers/kde.nix |
/etc/nixos/nixos/modules/security/sudo.nix |
security.pam.loginLimitsDefine resource limits that should apply to users or groups for the
login service. Each item in the list should be
an attribute set with a domain,
type, item, and
value attribute. The syntax and semantics of
these attributes must be that described in the limits.conf(5) man
page.
Default:
[
]
Example:
[
{
domain = "ftp"; item = "nproc"; type = "hard"; value = "0";
}
{
domain = "@student"; item = "maxlogins"; type = "-"; value = "4";
}
]
Declared by:
/etc/nixos/nixos/modules/security/pam.nix |
security.pam.servicesThis option defines the PAM services. A service typically
corresponds to a program that uses PAM,
e.g. login or passwd.
Each element of this list is an attribute set describing a
service. The attribute name specifies
the name of the service. The attribute
rootOK specifies whether the root user is
allowed to use this service without authentication. The
attribute ownDevices specifies whether
ConsoleKit's PAM connector module should be used to give the
user ownership of devices such as audio and CD-ROM drives.
The attribute forwardXAuth specifies
whether X authentication keys should be passed from the
calling user to the target user (e.g. for
su).
The attribute limits defines resource limits
that should apply to users or groups for the service. Each item in
the list should be an attribute set with a
domain, type,
item, and value attribute.
The syntax and semantics of these attributes must be that described
in the limits.conf(5) man page.
Default:
[
]
Example:
[
{
name = "chsh"; rootOK = true;
}
{
allowNullPassword = true; limits =
[
{
domain = "ftp"; item = "nproc"; type = "hard"; value = "0";
}
]
; name = "login"; ownDevices = true;
}
]
Declared by:
/etc/nixos/nixos/modules/security/pam.nix |
Defined by:
security.pam.usb.enableEnable USB login for all login system unless the service disabled it. For more information, visit http://pamusb.org/doc/quickstart#setting_up.
Default:
false
Declared by:
/etc/nixos/nixos/modules/security/pam_usb.nix |
security.seccureKeys.privatePrivate key. Make it string argument, so it is not copied into store.
Default:
"/var/elliptic-keys/private"
Declared by:
/etc/nixos/nixos/modules/services/networking/gw6c.nix |
security.seccureKeys.publicPublic key. Make it path argument, so it is copied into store and hashed. 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.
Default:
Declared by:
/etc/nixos/nixos/modules/services/networking/gw6c.nix |
security.setuidOwnersThis option allows the ownership and permissions on the setuid wrappers for specific programs to be overriden from the default (setuid root, but not setgid root).
Default:
[
]
Example:
[
{
group = "postdrop"; owner = "nobody"; program = "sendmail"; setgid = true; setuid = false;
}
]
Declared by:
/etc/nixos/nixos/modules/security/setuid-wrappers.nix |
Defined by:
/etc/nixos/nixos/modules/services/system/dbus.nix |
/etc/nixos/nixos/modules/services/scheduling/atd.nix |
security.setuidProgramsOnly the programs from system path listed here will be made setuid root (through a wrapper program).
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/security/setuid-wrappers.nix |
Defined by:
/etc/nixos/nixos/modules/services/x11/desktop-managers/kde4.nix |
/etc/nixos/nixos/modules/security/setuid-wrappers.nix |
/etc/nixos/nixos/modules/security/pam_usb.nix |
security.sudo.configFileThis string contains the contents of the
sudoers file.
Default:
"# Don't edit this file. Set nixos option security.sudo.configFile instead\n\n# \"root\" is allowed to do anything.\nroot ALL=(ALL) SETENV: ALL\n\n# Users in the \"wheel\" group can do anything.\n%wheel ALL=(ALL) SETENV: ALL\n"
Declared by:
/etc/nixos/nixos/modules/security/sudo.nix |
security.sudo.enableWhether to enable the sudo command, which allows non-root users to execute commands as root.
Default:
true
Declared by:
/etc/nixos/nixos/modules/security/sudo.nix |
security.wrapperDirThis option defines the path to the setuid wrappers. It should generally not be overriden.
Default:
"/var/setuid-wrappers"
Declared by:
/etc/nixos/nixos/modules/security/setuid-wrappers.nix |
services.acpid.enableWhether to enable the ACPI daemon.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/hardware/acpid.nix |
Defined by:
/etc/nixos/nixos/modules/config/power-management.nix |
services.atd.allowEveryoneWhether to make /var/spool/at{jobs,spool} writeable by everyone (and sticky). This is normally not needed since the `at' commands are setuid/setgid `atd'.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/scheduling/atd.nix |
services.atd.enableWhether to enable the `at' daemon, a command scheduler.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/scheduling/atd.nix |
services.autofs.autoMasterfile contents of /etc/auto.master. See man auto.master See man 5 auto.master and man 5 autofs.
Default: none
Example:
"autoMaster = let\n mapConf = pkgs.writeText \"auto\" ''\n kernel -ro,soft,intr ftp.kernel.org:/pub/linux\n boot -fstype=ext2 :/dev/hda1\n windoze -fstype=smbfs ://windoze/c\n removable -fstype=ext2 :/dev/hdd\n cd -fstype=iso9660,ro :/dev/hdc\n floppy -fstype=auto :/dev/fd0\n server -rw,hard,intr / -ro myserver.me.org:/ \\\n /usr myserver.me.org:/usr \\\n /home myserver.me.org:/home\n '';\nin ''\n /auto file:${mapConf}\n''\n"
Declared by:
/etc/nixos/nixos/modules/services/misc/autofs.nix |
services.autofs.debugpass -d and -7 to automount and write log to /var/log/autofs
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/misc/autofs.nix |
services.autofs.enableMount filesystems on demand. Unmount them automatically. You may also be interested in afuese.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/misc/autofs.nix |
services.autofs.kernelModuleskernel modules to load
Default:
[
"fuse"
]
Declared by:
/etc/nixos/nixos/modules/services/misc/autofs.nix |
services.autofs.timeoutSet the global minimum timeout, in seconds, until directories are unmounted
Default:
600
Declared by:
/etc/nixos/nixos/modules/services/misc/autofs.nix |
services.avahi.browseDomainsList of non-local DNS domains to be browsed.
Default:
[
"0pointer.de" "zeroconf.org"
]
Declared by:
/etc/nixos/nixos/modules/services/networking/avahi-daemon.nix |
services.avahi.enableWhether 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').
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/avahi-daemon.nix |
services.avahi.hostNameHost name advertised on the LAN.
Default:
"nixos"
Declared by:
/etc/nixos/nixos/modules/services/networking/avahi-daemon.nix |
services.avahi.ipv4Whether to use IPv4
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/networking/avahi-daemon.nix |
services.avahi.ipv6Whether to use IPv6
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/avahi-daemon.nix |
services.avahi.nssmdnsWhether 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.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/avahi-daemon.nix |
services.avahi.publishingWhether to allow publishing.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/networking/avahi-daemon.nix |
services.avahi.wideAreaWhether to enable wide-area service discovery.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/networking/avahi-daemon.nix |
services.bind.blockedNetworksWhat networks are just blocked.
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/services/networking/bind.nix |
services.bind.cacheNetworksWhat networks are allowed to use us as a resolver.
Default:
[
"127.0.0.0/24"
]
Declared by:
/etc/nixos/nixos/modules/services/networking/bind.nix |
services.bind.enableWhether to enable BIND domain name server.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/bind.nix |
services.bind.zonesList of zones we claim authority over. master=false means slave server; slaves means addresses who may request zone transfer.
Default:
[
]
Example:
[
{
file = "/var/dns/example.com"; master = false; masters =
[
"192.168.0.1"
]
; name = "example.com"; slaves =
[
]
;
}
]
Declared by:
/etc/nixos/nixos/modules/services/networking/bind.nix |
services.bitlbee.enableWhether to run the BitlBee IRC to other chat network gateway. Running it allows you to access the MSN, Jabber, Yahoo! and ICQ chat networks via an IRC client.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/bitlbee.nix |
services.bitlbee.interfaceThe 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.
Default:
"127.0.0.1"
Declared by:
/etc/nixos/nixos/modules/services/networking/bitlbee.nix |
services.bitlbee.portNumberNumber of the port BitlBee will be listening to.
Default:
6667
Declared by:
/etc/nixos/nixos/modules/services/networking/bitlbee.nix |
services.cron.mailtoThe job output will be mailed to this email address.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/scheduling/cron.nix |
services.cron.systemCronJobsA list of Cron jobs to be appended to the system-wide
crontab. See the manual page for crontab for the expected
format. If you want to get the results mailed you must setuid
sendmail. See security.setuidOwners
If neither /var/cron/cron.deny nor /var/cron/cron.allow exist only root
will is allowed to have its own crontab file. The /var/cron/cron.deny file
is created automatically for you. So every user can use a crontab.
Default:
[
]
Example:
[
"* * * * * test ls -l / > /tmp/cronout 2>&1" "* * * * * eelco echo Hello World > /home/eelco/cronout"
]
Declared by:
/etc/nixos/nixos/modules/services/scheduling/cron.nix |
Defined by:
services.dbus.enableWhether to start the D-Bus message bus daemon, which is required by many other system services and applications.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/system/dbus.nix |
Defined by:
services.dbus.packagesPackages whose D-Bus configuration files should be included in
the configuration of the D-Bus system-wide message bus.
Specifically, every file in
is included.
pkg/etc/dbus-1/system.d
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/services/system/dbus.nix |
Defined by:
services.ddclient.domainDomain name to synchronize.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/networking/ddclient.nix |
services.ddclient.enableWhether to synchronise your machine's IP address with a dynamic DNS provider (e.g. dyndns.org).
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/ddclient.nix |
services.ddclient.extraConfigExtra configuration. Contents will be added verbatim to the configuration file.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/networking/ddclient.nix |
services.ddclient.passwordPassword.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/networking/ddclient.nix |
services.ddclient.protocolProtocol to use with dynamic DNS provider. (see also, http://sourceforge.net/apps/trac/ddclient/wiki/Protocols)
Default:
"dyndns2"
Declared by:
/etc/nixos/nixos/modules/services/networking/ddclient.nix |
services.ddclient.serverServer
Default:
"members.dyndns.org"
Declared by:
/etc/nixos/nixos/modules/services/networking/ddclient.nix |
services.ddclient.usernameUsername.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/networking/ddclient.nix |
services.ddclient.webDefault:
"web, web=checkip.dyndns.com/, web-skip='IP Address'"
Declared by:
/etc/nixos/nixos/modules/services/networking/ddclient.nix |
services.dhcpd.configFileThe path of the DHCP server configuration file. If no file is specified, a file is generated using the other options.
Default:
Declared by:
/etc/nixos/nixos/modules/services/networking/dhcpd.nix |
services.dhcpd.enableWhether to enable the DHCP server.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/dhcpd.nix |
services.dhcpd.extraConfigExtra 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.
Default:
""
Example:
"\n option subnet-mask 255.255.255.0;\n option broadcast-address 192.168.1.255;\n option routers 192.168.1.5;\n option domain-name-servers 130.161.158.4, 130.161.33.17, 130.161.180.1;\n option domain-name \"example.org\";\n subnet 192.168.1.0 netmask 255.255.255.0 {\n range 192.168.1.100 192.168.1.200;\n }\n "
Declared by:
/etc/nixos/nixos/modules/services/networking/dhcpd.nix |
services.dhcpd.interfacesThe interfaces on which the DHCP server should listen.
Default:
[
"eth0"
]
Declared by:
/etc/nixos/nixos/modules/services/networking/dhcpd.nix |
services.dhcpd.machinesA list mapping ethernet addresses to IP addresses for the DHCP server.
Default:
[
]
Example:
[
{
ethernetAddress = "00:16:76:9a:32:1d"; hostName = "foo"; ipAddress = "192.168.1.10";
}
{
ethernetAddress = "00:19:d1:1d:c4:9a"; hostName = "bar"; ipAddress = "192.168.1.11";
}
]
Declared by:
/etc/nixos/nixos/modules/services/networking/dhcpd.nix |
services.disnix.enableWhether to enable Disnix
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/misc/disnix.nix |
services.dovecot.enableWhether to enable the Dovecot POP3/IMAP server.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/mail/dovecot.nix |
services.dovecot.groupDovecot group name.
Default:
"dovecot"
Declared by:
/etc/nixos/nixos/modules/services/mail/dovecot.nix |
services.dovecot.sslCACertCA certificate used by the server certificate.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/mail/dovecot.nix |
services.dovecot.sslServerCertServer certificate
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/mail/dovecot.nix |
services.dovecot.sslServerKeyServer key.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/mail/dovecot.nix |
services.dovecot.userDovecot user name.
Default:
"dovecot"
Declared by:
/etc/nixos/nixos/modules/services/mail/dovecot.nix |
services.ejabberd.confDirLocation of the config directory of ejabberd
Default:
"/var/ejabberd"
Declared by:
/etc/nixos/nixos/modules/services/networking/ejabberd.nix |
services.ejabberd.enableWhether to enable ejabberd server
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/ejabberd.nix |
services.ejabberd.loadDumpsConfiguration dump that should be loaded on the first startup
Default:
[
]
Example:
[
]
Declared by:
/etc/nixos/nixos/modules/services/networking/ejabberd.nix |
services.ejabberd.logsDirLocation of the logfile directory of ejabberd
Default:
"/var/log/ejabberd"
Declared by:
/etc/nixos/nixos/modules/services/networking/ejabberd.nix |
services.ejabberd.spoolDirLocation of the spooldir of ejabberd
Default:
"/var/lib/ejabberd"
Declared by:
/etc/nixos/nixos/modules/services/networking/ejabberd.nix |
services.ejabberd.virtualHostsVirtualhosts that ejabberd should host. Hostnames are surrounded with doublequotes and separated by commas
Default:
"\"localhost\""
Declared by:
/etc/nixos/nixos/modules/services/networking/ejabberd.nix |
services.fcron.allowUsers allowed to use fcrontab and fcrondyn (one name per line, "all" for everyone).
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/services/scheduling/fcron.nix |
services.fcron.denyUsers forbidden from using fcron.
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/services/scheduling/fcron.nix |
services.fcron.enableWhether to enable the `fcron' daemon.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/scheduling/fcron.nix |
services.fcron.maxSerialJobsMaximum number of serial jobs which can run simultaneously.
Default:
1
Declared by:
/etc/nixos/nixos/modules/services/scheduling/fcron.nix |
services.fcron.queuelenNumber of jobs the serial queue and the lavg queue can contain - empty to net set this number (-q)
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/scheduling/fcron.nix |
services.fcron.systabThe "system" crontab contents.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/scheduling/fcron.nix |
services.gnunet.applicationsList of GNUnet applications supported by the daemon. Note that `fs', which means "file sharing", is probably the one you want.
Default:
[
"advertising" "getoption" "fs" "stats" "traffic"
]
Example:
[
"chat" "fs"
]
Declared by:
/etc/nixos/nixos/modules/services/networking/gnunet.nix |
services.gnunet.debugWhen true, run in debug mode; gnunetd will not daemonize and error messages will be written to stderr instead of a logfile.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/gnunet.nix |
services.gnunet.enableWhether to run the GNUnet daemon. GNUnet is GNU's anonymous peer-to-peer communication and file sharing framework.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/gnunet.nix |
services.gnunet.extraOptionsAdditional options that will be copied verbatim in `gnunetd.conf'. See `gnunetd.conf(5)' for details.
Default:
""
Example:
"[NETWORK]\nINTERFACE = eth3\n"
Declared by:
/etc/nixos/nixos/modules/services/networking/gnunet.nix |
services.gnunet.fileSharing.activeMigrationWhether to allow active migration of content originating from other nodes.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/gnunet.nix |
services.gnunet.fileSharing.quotaMaximum file system usage (in MiB) for file sharing.
Default:
1024
Declared by:
/etc/nixos/nixos/modules/services/networking/gnunet.nix |
services.gnunet.homeDirectory where the GNUnet daemon will store its data.
Default:
"/var/lib/gnunet"
Declared by:
/etc/nixos/nixos/modules/services/networking/gnunet.nix |
services.gnunet.hostListsURLs of host lists.
Default:
[
"http://gnunet.org/hostlist.php" "http://gnunet.mine.nu:8081/hostlist" "http://vserver1236.vserver-on.de/hostlist-074"
]
Declared by:
/etc/nixos/nixos/modules/services/networking/gnunet.nix |
services.gnunet.load.hardNetUpBandwidthHard bandwidth limit (in bits per second) when uploading data.
Default:
0
Declared by:
/etc/nixos/nixos/modules/services/networking/gnunet.nix |
services.gnunet.load.interfacesList of network interfaces to use.
Default:
[
"eth0"
]
Example:
[
"wlan0" "eth1"
]
Declared by:
/etc/nixos/nixos/modules/services/networking/gnunet.nix |
services.gnunet.load.maxCPULoadMaximum CPU load (percentage) authorized for the GNUnet daemon.
Default:
100
Declared by:
/etc/nixos/nixos/modules/services/networking/gnunet.nix |
services.gnunet.load.maxNetDownBandwidthMaximum bandwidth usage (in bits per second) for GNUnet when downloading data.
Default:
50000
Declared by:
/etc/nixos/nixos/modules/services/networking/gnunet.nix |
services.gnunet.load.maxNetUpBandwidthMaximum bandwidth usage (in bits per second) for GNUnet when downloading data.
Default:
50000
Declared by:
/etc/nixos/nixos/modules/services/networking/gnunet.nix |
services.gnunet.logLevelLog level of the deamon (see `gnunetd(1)' for details).
Default:
"ERROR"
Example:
"INFO"
Declared by:
/etc/nixos/nixos/modules/services/networking/gnunet.nix |
services.gnunet.tcp.portThe TCP port for use by GNUnet.
Default:
2086
Declared by:
/etc/nixos/nixos/modules/services/networking/gnunet.nix |
services.gnunet.transportsList of transport methods used by the server.
Default:
[
"udp" "tcp" "http" "nat"
]
Example:
[
"smtp" "http"
]
Declared by:
/etc/nixos/nixos/modules/services/networking/gnunet.nix |
services.gnunet.udp.portThe UDP port for use by GNUnet.
Default:
2086
Declared by:
/etc/nixos/nixos/modules/services/networking/gnunet.nix |
services.gpm.enableWhether to enable GPM, the General Purpose Mouse daemon, which enables mouse support in virtual consoles.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/ttys/gpm.nix |
services.gpm.protocolMouse protocol to use.
Default:
"ps/2"
Declared by:
/etc/nixos/nixos/modules/services/ttys/gpm.nix |
services.gpsd.debugLevelThe debugging level.
Default:
0
Declared by:
/etc/nixos/nixos/modules/services/misc/gpsd.nix |
services.gpsd.deviceA device may be a local serial device for GPS input, or a URL of the form:
[{dgpsip|ntrip}://][user:passwd@]host[:port][/stream]
in which case it specifies an input source for DGPS or ntrip data.
Default:
"/dev/ttyUSB0"
Declared by:
/etc/nixos/nixos/modules/services/misc/gpsd.nix |
services.gpsd.enableWhether to enable `gpsd', a GPS service daemon.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/misc/gpsd.nix |
services.gpsd.portThe port where to listen for TCP connections.
Default:
2947
Declared by:
/etc/nixos/nixos/modules/services/misc/gpsd.nix |
services.gpsd.readonlyWhether to enable the broken-device-safety, otherwise known as read-only mode. Some popular bluetooth and USB receivers lock up or become totally inaccessible when probed or reconfigured. This switch prevents gpsd from writing to a receiver. This means that gpsd cannot configure the receiver for optimal performance, but it also means that gpsd cannot break the receiver. A better solution would be for Bluetooth to not be so fragile. A platform independent method to identify serial-over-Bluetooth devices would also be nice.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/misc/gpsd.nix |
services.gvpe.configFileGVPE config file, if already present
Default:
Example:
"/root/my-gvpe-conf"
Declared by:
/etc/nixos/nixos/modules/services/networking/gvpe.nix |
services.gvpe.configTextGVPE config contents
Default:
Example:
"tcp-port = 655\nudp-port = 655\nmtu = 1480\nifname = vpn0\n\nnode = alpha\nhostname = alpha.example.org\nconnect = always\nenable-udp = true\nenable-tcp = true\non alpha if-up = if-up-0\non alpha pid-file = /var/gvpe/gvpe.pid\n"
Declared by:
/etc/nixos/nixos/modules/services/networking/gvpe.nix |
services.gvpe.customIFSetupAdditional commands to apply in ifup script
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/networking/gvpe.nix |
services.gvpe.enableWhether to run gvpe
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/gvpe.nix |
services.gvpe.ipAddressIP address to assign to GVPE interface
Default:
Declared by:
/etc/nixos/nixos/modules/services/networking/gvpe.nix |
services.gvpe.nodenameGVPE node name
Default:
Declared by:
/etc/nixos/nixos/modules/services/networking/gvpe.nix |
services.gvpe.startOnCondition to start GVPE
Default:
"started network-interfaces"
Declared by:
/etc/nixos/nixos/modules/services/networking/gvpe.nix |
services.gvpe.stopOnCondition to stop GVPE
Default:
"stopping network-interfaces"
Declared by:
/etc/nixos/nixos/modules/services/networking/gvpe.nix |
services.gvpe.subnetIP subnet assigned to GVPE network
Default:
Example:
"10.0.0.0/8"
Declared by:
/etc/nixos/nixos/modules/services/networking/gvpe.nix |
services.gw6c.autorunSwitch to false to create upstart-job and configuration, but not run it automatically
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/networking/gw6c.nix |
services.gw6c.enableWhether to enable Gateway6 client (IPv6 tunnel).
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/gw6c.nix |
services.gw6c.everPingGateway6 manual ping period.
Default:
"1000000"
Example:
"2"
Declared by:
/etc/nixos/nixos/modules/services/networking/gw6c.nix |
services.gw6c.keepAliveGateway6 keep-alive period.
Default:
"30"
Example:
"2"
Declared by:
/etc/nixos/nixos/modules/services/networking/gw6c.nix |
services.gw6c.passwordYour Gateway6 password, if any.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/networking/gw6c.nix |
services.gw6c.serverUsed Gateway6 server.
Default:
"anon.freenet6.net"
Example:
"broker.freenet6.net"
Declared by:
/etc/nixos/nixos/modules/services/networking/gw6c.nix |
services.gw6c.usernameYour Gateway6 login name, if any.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/networking/gw6c.nix |
services.gw6c.waitPingableBrokerWhether to wait until tunnel broker returns ICMP echo.
Default:
true
Example:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/gw6c.nix |
services.hal.enableWhether to start the HAL daemon.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/hardware/hal.nix |
Defined by:
/etc/nixos/nixos/modules/config/no-x-libs.nix |
services.hal.packagesPackages containing additional HAL configuration data.
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/services/hardware/hal.nix |
Defined by:
/etc/nixos/nixos/modules/services/x11/xserver.nix |
/etc/nixos/nixos/modules/services/hardware/hal.nix |
services.httpd.adminAddrE-mail address of the server administrator.
Default: none
Example:
"admin@example.org"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.documentRootThe path of Apache's document root directory. If left undefined, an empty directory in the Nix store will be used as root.
Default:
Example:
"/data/webserver/docs"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.enableWhether to enable the Apache httpd server.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.enableSSLWhether to enable SSL (https) support.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.enableUserDir
Whether to enable serving ~/public_html as
/~.
username
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.extraConfigThese lines go to httpd.conf verbatim. They will go after directories and directory aliases defined by default.
Default:
""
Example:
"<Directory /home>\n Options FollowSymlinks\n AllowOverride All\n</Directory>\n"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
Defined by:
/etc/nixos/nixos/modules/services/monitoring/nagios/default.nix |
services.httpd.extraModulesSpecifies additional Apache modules. These can be specified
as a string in the case of modules distributed with Apache,
or as an attribute set specifying the
name and path of the
module.
Default:
[
]
Example:
[
"proxy_connect"
{
name = "php5"; path = "/nix/store/kp93hvk0x6ld5f136l1ymnwyb3xwr2n7-php_configurable-5.2.11/modules/libphp5.so";
}
]
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.extraSubservicesExtra subservices to enable in the webserver.
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
Defined by:
/etc/nixos/nixos/modules/services/monitoring/systemhealth.nix |
services.httpd.globalRedirectIf set, all requests for this host are redirected permanently to the given URL.
Default:
""
Example:
"http://newserver.example.org/"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.groupGroup under which httpd runs. The account is created automatically if it doesn't exist.
Default:
"wwwrun"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.hostNameCanonical hostname for the server.
Default:
"localhost"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.logDirDirectory for Apache's log files. It is created automatically.
Default:
"/var/log/httpd"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.logFormatLog format for Apache's log files. Possible values are: combined, common, referer, agent.
Default:
"common"
Example:
"combined"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.logPerVirtualHost
If enabled, each virtual host gets its own
access_log and
error_log, namely suffixed by the
hostName of the virtual host.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.phpOptionsOptions appended to the PHP configuration file php.ini.
Default:
""
Example:
"date.timezone = \"CET\"\n"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
Defined by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.portPort for the server. 0 means use the default port: 80 for http and 443 for https (i.e. when enableSSL is set).
Default:
0
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.servedDirsThis option provides a simple way to serve static directories.
Default:
[
]
Example:
[
{
dir = "/home/eelco/Dev/nix-homepage"; urlPath = "/nix";
}
]
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.servedFilesThis option provides a simple way to serve individual, static files.
Default:
[
]
Example:
[
{
dir = "/home/eelco/some-file.png"; urlPath = "/foo/bar.png";
}
]
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.serverAliasesAdditional names of virtual hosts served by this virtual host configuration.
Default:
[
]
Example:
[
"www.example.org" "www.example.org:8080" "example.org"
]
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.sslServerCertPath to server SSL certificate.
Default:
""
Example:
"/var/host.cert"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.sslServerKeyPath to server SSL certificate key.
Default:
""
Example:
"/var/host.key"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.stateDir
Directory for Apache's transient runtime state (such as PID
files). It is created automatically. Note that the default,
/var/run/httpd, is deleted at boot time.
Default:
"/var/run/httpd"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.userUser account under which httpd runs. The account is created automatically if it doesn't exist.
Default:
"wwwrun"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.httpd.virtualHostsSpecification 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.
Default:
[
]
Example:
[
{
documentRoot = "/data/webroot-foo"; hostName = "foo";
}
{
documentRoot = "/data/webroot-bar"; hostName = "bar";
}
]
Declared by:
/etc/nixos/nixos/modules/services/web-servers/apache-httpd/default.nix |
services.ircdHybrid.adminEmailIRCD server administrator e-mail.
Default:
"<bit-bucket@example.com>"
Example:
"<name@domain.tld>"
Declared by:
/etc/nixos/nixos/modules/services/networking/ircd-hybrid.nix |
services.ircdHybrid.certificateIRCD server SSL certificate. There are some limitations - read manual.
Default:
Example:
Declared by:
/etc/nixos/nixos/modules/services/networking/ircd-hybrid.nix |
services.ircdHybrid.descriptionIRCD server description.
Default:
"Hybrid-7 IRC server."
Declared by:
/etc/nixos/nixos/modules/services/networking/ircd-hybrid.nix |
services.ircdHybrid.enableEnable IRCD.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/ircd-hybrid.nix |
services.ircdHybrid.extraIPsExtra IP's to bind.
Default:
[
]
Example:
[
"127.0.0.1"
]
Declared by:
/etc/nixos/nixos/modules/services/networking/ircd-hybrid.nix |
services.ircdHybrid.extraPortExtra port to avoid filtering.
Default:
"7117"
Declared by:
/etc/nixos/nixos/modules/services/networking/ircd-hybrid.nix |
services.ircdHybrid.rsaKeyIRCD server RSA key.
Default:
Example:
Declared by:
/etc/nixos/nixos/modules/services/networking/ircd-hybrid.nix |
services.ircdHybrid.serverNameIRCD server name.
Default:
"hades.arpa"
Declared by:
/etc/nixos/nixos/modules/services/networking/ircd-hybrid.nix |
services.ircdHybrid.sidIRCD server unique ID in a net of servers.
Default:
"0NL"
Declared by:
/etc/nixos/nixos/modules/services/networking/ircd-hybrid.nix |
services.jboss.deployDirLocation of the deployment files
Default:
"/nix/var/nix/profiles/default/server/default/deploy/"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/jboss.nix |
services.jboss.enableWhether to enable jboss
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/web-servers/jboss.nix |
services.jboss.libUrlLocation where the shared library JARs are stored
Default:
"file:///nix/var/nix/profiles/default/server/default/lib"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/jboss.nix |
services.jboss.logDirLocation of the logfile directory of JBoss
Default:
"/var/log/jboss"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/jboss.nix |
services.jboss.serverDirLocation of the server instance files
Default:
"/var/jboss/server"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/jboss.nix |
services.jboss.tempDirLocation where JBoss stores its temp files
Default:
"/tmp"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/jboss.nix |
services.jboss.useJKWhether to use to connector to the Apache HTTP server
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/web-servers/jboss.nix |
services.jboss.userUser account under which jboss runs.
Default:
"nobody"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/jboss.nix |
services.locate.enableIf enabled, NixOS will periodically update the database of files used by the locate command.
Default:
false
Example:
true
Declared by:
/etc/nixos/nixos/modules/misc/locate.nix |
services.locate.periodThis option defines (in the format used by cron) when the locate database is updated. The default is to update at 02:15 (at night) every day.
Default:
"15 02 * * *"
Declared by:
/etc/nixos/nixos/modules/misc/locate.nix |
services.lshd.enableWhether to enable the GNU lshd SSH2 daemon, which allows secure remote login.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/lshd.nix |
Defined by:
/etc/nixos/nixos/modules/config/gnu.nix |
services.lshd.hostKeyPath to the server's private key. Note that this key must have been created, e.g., using "lsh-keygen --server | lsh-writekey --server", so that you can run lshd.
Default:
"/etc/lsh/host-key"
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/lshd.nix |
services.lshd.interfacesList of network interfaces where listening for connections. When providing the empty list, `[]', lshd listens on all network interfaces.
Default:
[
]
Example:
[
"localhost" "1.2.3.4:443"
]
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/lshd.nix |
services.lshd.loginShellIf non-null, override the default login shell with the specified value.
Default:
Example:
"/nix/store/xyz-bash-10.0/bin/bash10"
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/lshd.nix |
services.lshd.passwordAuthenticationWhether to enable password authentication.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/lshd.nix |
services.lshd.portNumberThe port on which to listen for connections.
Default:
22
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/lshd.nix |
services.lshd.publicKeyAuthenticationWhether to enable public key authentication.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/lshd.nix |
services.lshd.rootLoginWhether to enable remote root login.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/lshd.nix |
services.lshd.srpKeyExchangeWhether to enable SRP key exchange and user authentication.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/lshd.nix |
services.lshd.subsystemsList of subsystem-path pairs, where the head of the pair denotes the subsystem name, and the tail denotes the path to an executable implementing it.
Default:
[
[
"sftp" "/nix/store/9bwcw0vsnfqh366qp434xq4822c1izms-lsh-2.0.4/sbin/sftp-server"
]
]
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/lshd.nix |
services.lshd.syslogWhether to enable syslog output.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/lshd.nix |
services.lshd.tcpForwardingWhether to enable TCP/IP forwarding.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/lshd.nix |
services.lshd.x11ForwardingWhether to enable X11 forwarding.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/lshd.nix |
services.mingetty.greetingLineWelcome line printed by mingetty.
Default:
"<<< Welcome to NixOS (\\m) - Kernel \\r (\\l) >>>"
Declared by:
/etc/nixos/nixos/modules/services/ttys/mingetty.nix |
services.mingetty.helpLineHelp line printed by mingetty below the welcome line. Used by the installation CD to give some hints on how to proceed.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/ttys/mingetty.nix |
Defined by:
/etc/nixos/nixos/modules/services/misc/nixos-manual.nix |
services.mingetty.ttysThe list of tty devices on which to start a login prompt.
Default:
[
"tty1" "tty2" "tty3" "tty4" "tty5" "tty6"
]
Declared by:
/etc/nixos/nixos/modules/services/ttys/mingetty.nix |
services.mingetty.waitOnMountsWhether 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.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/ttys/mingetty.nix |
services.monit.configmonit.conf content
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/monitoring/monit.nix |
services.monit.enableWhether to run Monit system watcher.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/monitoring/monit.nix |
services.monit.startOnWhat Monit supposes to be already present
Default:
"network-interfaces/started"
Declared by:
/etc/nixos/nixos/modules/services/monitoring/monit.nix |
services.mysql.dataDirLocation where MySQL stores its table files
Default:
"/var/mysql"
Declared by:
/etc/nixos/nixos/modules/services/databases/mysql.nix |
services.mysql.enableWhether to enable the MySQL server.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/databases/mysql.nix |
services.mysql.initialDatabasesList of database names and their initial schemas that should be used to create databases on the first startup of MySQL
Default:
[
]
Example:
[
{
name = "foodatabase"; schema = ;
}
{
name = "bardatabase"; schema = ;
}
]
Declared by:
/etc/nixos/nixos/modules/services/databases/mysql.nix |
services.mysql.logErrorLocation of the MySQL error logfile
Default:
"/var/log/mysql_err.log"
Declared by:
/etc/nixos/nixos/modules/services/databases/mysql.nix |
services.mysql.packageWhich MySQL derivation to use.
Default:
(build of )
Declared by:
/etc/nixos/nixos/modules/services/databases/mysql.nix |
services.mysql.pidDirLocation of the file which stores the PID of the MySQL server
Default:
"/var/run/mysql"
Declared by:
/etc/nixos/nixos/modules/services/databases/mysql.nix |
services.mysql.portPort of MySQL
Default:
"3306"
Declared by:
/etc/nixos/nixos/modules/services/databases/mysql.nix |
services.mysql.userUser account under which MySQL runs
Default:
"mysql"
Declared by:
/etc/nixos/nixos/modules/services/databases/mysql.nix |
services.mysqlBackup.databasesList of database names to dump.
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/services/backup/mysql-backup.nix |
services.mysqlBackup.enableWhether to enable MySQL backups.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/backup/mysql-backup.nix |
services.mysqlBackup.locationLocation to put the gzipped MySQL database dumps.
Default:
"/var/backup/mysql"
Declared by:
/etc/nixos/nixos/modules/services/backup/mysql-backup.nix |
services.mysqlBackup.periodThis option defines (in the format used by cron) when the databases should be dumped. The default is to update at 01:15 (at night) every day.
Default:
"15 01 * * *"
Declared by:
/etc/nixos/nixos/modules/services/backup/mysql-backup.nix |
services.mysqlBackup.userUser to be used to perform backup.
Default:
"mysql"
Declared by:
/etc/nixos/nixos/modules/services/backup/mysql-backup.nix |
services.nagios.enableWhether to use Nagios to monitor your system or network.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/monitoring/nagios/default.nix |
services.nagios.enableWebInterface
Whether to enable the Nagios web interface. You should also
enable Apache (services.httpd.enable).
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/monitoring/nagios/default.nix |
services.nagios.objectDefsA list of Nagios object configuration files that must define the hosts, host groups, services and contacts for the network that you want Nagios to monitor.
Default: none
Declared by:
/etc/nixos/nixos/modules/services/monitoring/nagios/default.nix |
services.nagios.plugins
Packages to be added to the Nagios PATH.
Typically used to add plugins, but can be anything.
Default:
[
(build of nagios-plugins-1.4.10) (build of ssmtp-2.61-12)
]
Declared by:
/etc/nixos/nixos/modules/services/monitoring/nagios/default.nix |
services.nagios.urlPath
The URL path under which the Nagios web interface appears.
That is, you can access the Nagios web interface through
http://.
server/urlPath
Default:
"/nagios"
Declared by:
/etc/nixos/nixos/modules/services/monitoring/nagios/default.nix |
services.nfsKernel.client.enableWhether to enable the kernel's NFS client daemons.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/network-filesystems/nfs-kernel.nix |
services.nfsKernel.server.createMountPointsWhether to create the mount points in the exports file at startup time.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/network-filesystems/nfs-kernel.nix |
services.nfsKernel.server.enableWhether to enable the kernel's NFS server.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/network-filesystems/nfs-kernel.nix |
services.nfsKernel.server.exportsContents of the /etc/exports file. See exports(5) for the format.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/network-filesystems/nfs-kernel.nix |
services.nfsKernel.server.hostNameHostname or address on which NFS requests will be accepted.
Default is all. See the -H option in
nfsd(8).
Default:
Declared by:
/etc/nixos/nixos/modules/services/network-filesystems/nfs-kernel.nix |
services.nfsKernel.server.nprocNumber of NFS server threads. Defaults to the recommended value of 8.
Default:
8
Declared by:
/etc/nixos/nixos/modules/services/network-filesystems/nfs-kernel.nix |
services.nixosManual.browserBrowser used to show the manual.
Default:
"/nix/store/gddprbzy1bic5wjc9rfqrwvbzkw6zp6f-w3m-0.5.2/bin/w3m"
Declared by:
/etc/nixos/nixos/modules/services/misc/nixos-manual.nix |
services.nixosManual.enableWhether to build the NixOS manual pages.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/misc/nixos-manual.nix |
services.nixosManual.revisionRevision of the targeted source file. This value can either be
"local", "HEAD" or any
revision number embedded in a string.
Default:
"local"
Declared by:
/etc/nixos/nixos/modules/services/misc/nixos-manual.nix |
services.nixosManual.showManualWhether to show the NixOS manual on one of the virtual consoles.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/misc/nixos-manual.nix |
services.nixosManual.ttyNumberVirtual console on which to show the manual.
Default:
"8"
Declared by:
/etc/nixos/nixos/modules/services/misc/nixos-manual.nix |
services.nscd.enableWhether to enable the Name Service Cache Daemon.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/system/nscd.nix |
services.ntp.enableWhether to synchronise your machine's time using the NTP protocol.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/networking/ntpd.nix |
services.ntp.serversThe set of NTP servers from which to synchronise.
Default:
[
"0.pool.ntp.org" "1.pool.ntp.org" "2.pool.ntp.org"
]
Declared by:
/etc/nixos/nixos/modules/services/networking/ntpd.nix |
services.openafsClient.cacheDirectoryCache directory.
Default:
"/var/cache/openafs"
Declared by:
/etc/nixos/nixos/modules/services/network-filesystems/openafs-client/default.nix |
services.openafsClient.cacheSizeCache size.
Default:
"100000"
Declared by:
/etc/nixos/nixos/modules/services/network-filesystems/openafs-client/default.nix |
services.openafsClient.cellNameCell name.
Default:
"grand.central.org"
Declared by:
/etc/nixos/nixos/modules/services/network-filesystems/openafs-client/default.nix |
services.openafsClient.enableWhether to enable the OpenAFS client.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/network-filesystems/openafs-client/default.nix |
services.openfire.enableWhether to enable OpenFire XMPP server.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/openfire.nix |
services.openfire.usePostgreSQLWhether you use PostgreSQL service for your storage back-end.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/networking/openfire.nix |
services.openssh.allowSFTPWhether to enable the SFTP subsystem in the SSH daemon. This enables the use of commands such as sftp and sshfs.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/sshd.nix |
/etc/nixos/nixos/modules/rename.nix |
services.openssh.enableWhether to enable the OpenSSH secure shell daemon, which allows secure remote logins.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/sshd.nix |
/etc/nixos/nixos/modules/rename.nix |
Defined by:
/etc/nixos/nixos/modules/config/gnu.nix |
services.openssh.forwardX11Whether to allow X11 connections to be forwarded.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/sshd.nix |
/etc/nixos/nixos/modules/rename.nix |
services.openssh.gatewayPortsSpecifies whether remote hosts are allowed to connect to ports forwarded for the client. See sshd_config(5).
Default:
"no"
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/sshd.nix |
/etc/nixos/nixos/modules/rename.nix |
services.openssh.permitRootLoginWhether the root user can login using ssh. Valid values are
yes, without-password,
forced-commands-only or
no.
If without-password doesn't work try yes.
Default:
"yes"
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/sshd.nix |
/etc/nixos/nixos/modules/rename.nix |
services.openssh.portsSpecifies on which ports the SSH daemon listens.
Default:
[
22
]
Declared by:
/etc/nixos/nixos/modules/services/networking/ssh/sshd.nix |
/etc/nixos/nixos/modules/rename.nix |
services.openvpn.enableWhether to enable OpenVPN.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/openvpn.nix |
services.openvpn.serversYou can define multiple openvpn instances. The id of an instance is given by the attribute name. Each instance will result in a new job file. Additionally you can specify the up/ down scripts by setting the up down properties. Config lines up=/nix/store/xxx-up-script down=... will be appended to your configuration file automatically If you define at least one of up/down "script-security 2" will be prepended to your config otherwise you scripts aren't run by openvpn Don't forget to check that the all package sizes can be sent. For examlpe if scp hangs you should set --fragment XXX --mssfix YYY.
Default:
{
}
Example:
{
clientMostSimple =
{
config = "#client:\n#remote myremote.mydomain\n#dev tun\n#ifconfig 10.8.0.2 10.8.0.1\n#secret static.key\n";
}
; mostSimple =
{
config = "# Most simple configuration: http://openvpn.net/index.php/documentation/miscellaneous/static-key-mini-howto.html.\n# server : \ndev tun\nifconfig 10.8.0.1 10.8.0.2\nsecret static.key\n"; down = "ip route add ..!"; up = "ip route add ..!";
}
; serverScalable =
{
config = "multiple clienst\nsee example file found in http://openvpn.net/index.php/documentation/howto.html\n";
}
;
}
Declared by:
/etc/nixos/nixos/modules/services/networking/openvpn.nix |
services.openvpn.servers.<name>.configconfig of this openvpn instance
Default: none
Declared by:
/etc/nixos/nixos/modules/services/networking/openvpn.nix |
services.openvpn.servers.<name>.downscript which is run when server instance shuts down Usually this reverts what up has done
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/networking/openvpn.nix |
services.openvpn.servers.<name>.upscript which is run when server instance starts up succesfully. Use it to setup firewall and routing
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/networking/openvpn.nix |
services.pcscd.enableWhether to enable the PCSC-Lite daemon.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/hardware/pcscd.nix |
services.portmap.chrootIf non-empty, a path to change root to.
Default:
"/var/empty"
Declared by:
/etc/nixos/nixos/modules/services/networking/portmap.nix |
services.portmap.enableWhether to enable `portmap', an ONC RPC directory service notably used by NFS and NIS, and which can be queried using the rpcinfo(1) command.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/portmap.nix |
Defined by:
/etc/nixos/nixos/modules/services/network-filesystems/nfs-kernel.nix |
services.portmap.verboseWhether to enable verbose output.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/portmap.nix |
services.postfix.destinationFull (!) list of domains we deliver locally. Leave blank for acceptable Postfix default.
Default:
Example:
[
"localhost"
]
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.domainDomain to use. Leave blank to use hostname minus first component.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.enableWhether to run the Postfix mail server.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.extraAliasesAdditional entries to put verbatim into aliases file.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.groupWhat to call the Postfix group (must be used only for postfix).
Default:
"postfix"
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.hostnameHostname to use. Leave blank to use just the hostname of machine. It should be FQDN.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.lookupMXWhether relay specified is just domain whose MX must be used.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.networksNet masks for trusted - allowed to relay mail to third parties - hosts. Leave empty to use mynetworks_style configuration or use default (localhost-only).
Default:
Example:
[
"192.168.0.1/24"
]
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.networksStyleName 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).
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.originOrigin to use in outgoing e-mail. Leave blank to use hostname.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.postmasterAliasWho should receive postmaster e-mail.
Default:
"root"
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.recipientDelimiterDelimiter for address extension: so mail to user+test can be handled by ~user/.forward+test
Default:
""
Example:
"+"
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.relayDomainsList of domains we agree to relay to. Default is the same as destination.
Default:
Example:
[
"localdomain"
]
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.relayHostMail relay for outbound mail.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.rootAliasWho should receive root e-mail. Blank for no redirection.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.setgidGroupHow to call postfix setgid group (for postdrop). Should be uniquely used group.
Default:
"postdrop"
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.sslCACertSSL certificate of CA.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.sslCertSSL certificate to use.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.sslKeySSL key to use.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postfix.userWhat to call the Postfix user (must be used only for postfix).
Default:
"postfix"
Declared by:
/etc/nixos/nixos/modules/services/mail/postfix.nix |
services.postgresql.authMethodHow to authorize users. Note: ident needs absolute trust to all allowed client hosts.
Default:
" ident sameuser "
Declared by:
/etc/nixos/nixos/modules/services/databases/postgresql.nix |
services.postgresql.authenticationDefines how users authenticate themselves to the server.
Default:
"# Generated file; do not edit!\nlocal all mediawiki ident mediawiki-users\nlocal all all ident sameuser\nhost all all 127.0.0.1/32 md5\nhost all all ::1/128 md5\n"
Declared by:
/etc/nixos/nixos/modules/services/databases/postgresql.nix |
services.postgresql.dataDirData directory for PostgreSQL.
Default:
"/var/db/postgresql"
Declared by:
/etc/nixos/nixos/modules/services/databases/postgresql.nix |
services.postgresql.enableWhether to run PostgreSQL.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/databases/postgresql.nix |
Defined by:
/etc/nixos/nixos/modules/services/monitoring/zabbix-server.nix |
services.postgresql.enableTCPIPWhether to run PostgreSQL with -i flag to enable TCP/IP connections.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/databases/postgresql.nix |
services.postgresql.identMapDefines the mapping from system users to database users.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/databases/postgresql.nix |
Defined by:
/etc/nixos/nixos/modules/services/databases/postgresql.nix |
services.postgresql.logDirLog directory for PostgreSQL.
Default:
"/var/log/postgresql"
Declared by:
/etc/nixos/nixos/modules/services/databases/postgresql.nix |
services.postgresql.portPort for PostgreSQL.
Default:
"5432"
Declared by:
/etc/nixos/nixos/modules/services/databases/postgresql.nix |
services.postgresqlBackup.databasesList of database names to dump.
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/services/backup/postgresql-backup.nix |
services.postgresqlBackup.enableWhether to enable PostgreSQL dumps.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/backup/postgresql-backup.nix |
services.postgresqlBackup.locationLocation to put the gzipped PostgreSQL database dumps.
Default:
"/var/backup/postgresql"
Declared by:
/etc/nixos/nixos/modules/services/backup/postgresql-backup.nix |
services.postgresqlBackup.periodThis option defines (in the format used by cron) when the databases should be dumped. The default is to update at 01:15 (at night) every day.
Default:
"15 01 * * *"
Declared by:
/etc/nixos/nixos/modules/services/backup/postgresql-backup.nix |
services.printing.bindirCmdsAdditional commands executed while creating the directory containing the CUPS server binaries.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/printing/cupsd.nix |
services.printing.enableWhether to enable printing support through the CUPS daemon.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/printing/cupsd.nix |
services.privoxy.enableWhether to run the machine as a HTTP proxy server.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/privoxy.nix |
services.privoxy.extraConfigExtra configuration. Contents will be added verbatim to the configuration file.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/networking/privoxy.nix |
services.privoxy.listenAddressAddress the proxy server is listening to.
Default:
"127.0.0.1:8118"
Declared by:
/etc/nixos/nixos/modules/services/networking/privoxy.nix |
services.privoxy.logDirLocation for privoxy log files.
Default:
"/var/log/privoxy"
Declared by:
/etc/nixos/nixos/modules/services/networking/privoxy.nix |
services.pulseaudio.enableWhether to enable the PulseAudio system-wide audio server. Note that the documentation recommends running PulseAudio daemons per-user rather than system-wide on desktop machines.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/audio/pulseaudio.nix |
services.pulseaudio.logLevelA string denoting the log level: one of
error, warn,
notice, info,
or debug.
Default:
"notice"
Example:
"debug"
Declared by:
/etc/nixos/nixos/modules/services/audio/pulseaudio.nix |
services.rogue.enableWhether to enable the Rogue game on one of the virtual consoles.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/misc/rogue.nix |
services.rogue.ttyVirtual console on which to run Rogue.
Default:
"tty9"
Declared by:
/etc/nixos/nixos/modules/services/misc/rogue.nix |
services.samba.configFileinternal use to pass filepath to samba pam module
Default: none
Declared by:
/etc/nixos/nixos/modules/services/network-filesystems/samba.nix |
services.samba.defaultShare.enableWhether to share /home/smbd as 'default'
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/network-filesystems/samba.nix |
services.samba.defaultShare.guestWhether to allow guest access to default share
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/network-filesystems/samba.nix |
services.samba.defaultShare.writeableWhether to allow write access to default share
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/network-filesystems/samba.nix |
services.samba.enableWhether to enable the samba server. (to communicate with, and provide windows shares) use start / stop samba-control to start/stop all daemons. smbd and nmbd are not shutdown correctly yet. so just pkill them and restart those jobs.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/network-filesystems/samba.nix |
services.samba.extraConfigadditional global section and extra section lines go in here.
Default:
"# [global] continuing global section here, section is started by nix to set pids etc\n\n smb passwd file = /etc/samba/passwd\n\n # is this useful ?\n domain master = auto\n\n encrypt passwords = Yes\n client plaintext auth = No\n\n # yes: if you use this you probably also want to enable syncPasswordsByPam\n # no: You can still use the pam password database. However\n # passwords will be sent plain text on network (discouraged)\n\n workgroup = Users\n server string = %h\n comment = Samba\n log file = /var/log/samba/log.%m\n log level = 10\n max log size = 50000\n security = user\n\n client lanman auth = Yes\n dns proxy = no\n invalid users = root\n passdb backend = tdbsam\n passwd program = /usr/bin/passwd %u\n"
Declared by:
/etc/nixos/nixos/modules/services/network-filesystems/samba.nix |
services.samba.securityTypeSamba security type
Default:
"user"
Example:
"share"
Declared by:
/etc/nixos/nixos/modules/services/network-filesystems/samba.nix |
services.samba.syncPasswordsByPamenabling this will add a line directly after pam_unix.so. Whenever a password is changed the samba password will be updated as well. However you still yave to add the samba password once using smbpasswd -a user If you don't want to maintain an extra pwd database you still can send plain text passwords which is not secure.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/network-filesystems/samba.nix |
services.sitecopy.backupsList of attributesets describing the backups.
Username/password are extracted from /var/spool/sitecopy/sitecopy.secrets at activation
time. The secrets file lines should have the following structure:
server username password
Default:
[
]
Example:
[
{
https = true; local = "/tmp/backup"; name = "test"; protocol = "webdav"; remote = "/staff-groups/ewi/st/strategoxt/backup/test"; server = "webdata.tudelft.nl"; symlinks = "maintain";
}
]
Declared by:
/etc/nixos/nixos/modules/services/backup/sitecopy-backup.nix |
services.sitecopy.enableWhether to enable sitecopy backups of specified directories.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/backup/sitecopy-backup.nix |
services.sitecopy.periodThis option defines (in the format used by cron) when the sitecopy backup are being run. The default is to update at 04:15 (at night) every day.
Default:
"15 04 * * *"
Declared by:
/etc/nixos/nixos/modules/services/backup/sitecopy-backup.nix |
services.sshd.allowSFTPObsolete name of services.openssh.allowSFTP.
Default: none
Declared by:
/etc/nixos/nixos/modules/rename.nix |
services.sshd.enableObsolete name of services.openssh.enable.
Default: none
Declared by:
/etc/nixos/nixos/modules/rename.nix |
services.sshd.forwardX11Obsolete name of services.openssh.forwardX11.
Default: none
Declared by:
/etc/nixos/nixos/modules/rename.nix |
Defined by:
/etc/nixos/nixos/modules/config/no-x-libs.nix |
services.sshd.gatewayPortsObsolete name of services.openssh.gatewayPorts.
Default: none
Declared by:
/etc/nixos/nixos/modules/rename.nix |
services.sshd.permitRootLoginObsolete name of services.openssh.permitRootLogin.
Default: none
Declared by:
/etc/nixos/nixos/modules/rename.nix |
services.sshd.portsObsolete name of services.openssh.ports.
Default: none
Declared by:
/etc/nixos/nixos/modules/rename.nix |
services.synergy.client.enableWhether to enable the synergy client (receive keyboard and mouse events from a synergy server)
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/misc/synergy.nix |
services.synergy.client.screenNameuse screen-name instead the hostname to identify ourselfs to the server.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/misc/synergy.nix |
services.synergy.client.serverAddressThe server address is of the form: [hostname][:port]. The hostname must be the address or hostname of the server. The port overrides the default port, 24800.
Default: none
Declared by:
/etc/nixos/nixos/modules/services/misc/synergy.nix |
services.synergy.server.addresslisten for clients on the given address
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/misc/synergy.nix |
services.synergy.server.configFileThe synergy server configuration file. open upstart-jobs/synergy.nix to see an example
Default:
"/etc/synergy-server.conf"
Declared by:
/etc/nixos/nixos/modules/services/misc/synergy.nix |
services.synergy.server.enableWhether to enable the synergy server (send keyboard and mouse events)
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/misc/synergy.nix |
services.synergy.server.screenNameuse screen-name instead the hostname to identify this screen in the configuration.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/misc/synergy.nix |
services.syslogd.extraConfigAdditional text appended to syslog.conf.
Default:
""
Example:
"news.* -/var/log/news"
Declared by:
/etc/nixos/nixos/modules/services/logging/syslogd.nix |
services.syslogd.ttyThe tty device on which syslogd will print important log messages.
Default:
"tty10"
Declared by:
/etc/nixos/nixos/modules/services/logging/syslogd.nix |
services.systemhealth.drivesDrives to monitor.
Default:
[
]
Example:
[
{
name = "root"; path = "/";
}
]
Declared by:
/etc/nixos/nixos/modules/services/monitoring/systemhealth.nix |
services.systemhealth.enableEnable the system health monitor and its generation of graphs.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/monitoring/systemhealth.nix |
services.systemhealth.interfacesInterfaces to monitor (minimum one).
Default:
[
"lo"
]
Example:
[
"lo" "eth0" "eth1"
]
Declared by:
/etc/nixos/nixos/modules/services/monitoring/systemhealth.nix |
services.systemhealth.urlPrefixThe URL prefix under which the System Health web pages appear in httpd.
Default:
"/health"
Declared by:
/etc/nixos/nixos/modules/services/monitoring/systemhealth.nix |
services.tftpd.enableWhether to enable the anonymous FTP user.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/tftpd.nix |
services.tftpd.pathWhere the tftp server files are stored
Default:
"/home/tftp"
Declared by:
/etc/nixos/nixos/modules/services/networking/tftpd.nix |
services.tomcat.axis2.enableWhether to enable an Apache Axis2 container
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/web-servers/tomcat.nix |
services.tomcat.axis2.servicesList containing AAR files or directories with AAR files which are web services to be deployed on Axis2
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/services/web-servers/tomcat.nix |
services.tomcat.baseDirLocation where Tomcat stores configuration files, webapplications and logfiles
Default:
"/var/tomcat"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/tomcat.nix |
services.tomcat.catalinaOptsParameters to pass to the Java Virtual Machine which spawns the Catalina servlet container
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/web-servers/tomcat.nix |
services.tomcat.commonLibsList containing JAR files or directories with JAR files which are libraries shared by the web applications and the servlet container
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/services/web-servers/tomcat.nix |
services.tomcat.enableWhether to enable Apache Tomcat
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/web-servers/tomcat.nix |
services.tomcat.groupGroup account under which Apache Tomcat runs.
Default:
"tomcat"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/tomcat.nix |
services.tomcat.javaOptsParameters to pass to the Java Virtual Machine which spawns Apache Tomcat
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/web-servers/tomcat.nix |
services.tomcat.logPerVirtualHostWhether to enable logging per virtual host.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/web-servers/tomcat.nix |
services.tomcat.sharedLibsList containing JAR files or directories with JAR files which are libraries shared by the web applications
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/services/web-servers/tomcat.nix |
services.tomcat.userUser account under which Apache Tomcat runs.
Default:
"tomcat"
Declared by:
/etc/nixos/nixos/modules/services/web-servers/tomcat.nix |
services.tomcat.virtualHostsList consisting of a virtual host name and a list of web applications to deploy on each virtual host
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/services/web-servers/tomcat.nix |
services.tomcat.webappsList containing WAR files or directories with WAR files which are web applications to be deployed on Tomcat
Default:
[
(build of apache-tomcat-6.0.26)
]
Declared by:
/etc/nixos/nixos/modules/services/web-servers/tomcat.nix |
services.ttyBackgrounds.defaultThemeThe default theme for the virtual consoles. Themes can be found at http://www.bootsplash.de/.
Default:
(build of Theme-BabyTux.tar.bz2)
Declared by:
/etc/nixos/nixos/modules/tasks/tty-backgrounds.nix |
services.ttyBackgrounds.enableWhether to enable graphical backgrounds for the virtual consoles.
Default:
true
Declared by:
/etc/nixos/nixos/modules/tasks/tty-backgrounds.nix |
services.ttyBackgrounds.specificThemesThis option overrides the theme for specific virtual consoles.
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/tasks/tty-backgrounds.nix |
Defined by:
/etc/nixos/nixos/modules/tasks/tty-backgrounds.nix |
/etc/nixos/nixos/modules/services/misc/rogue.nix |
/etc/nixos/nixos/modules/services/misc/nixos-manual.nix |
services.udev.extraRulesAdditional udev rules. They'll be written
into file 10-local.rules. Thus they are
read before all other rules.
Default:
""
Example:
"KERNEL==\"eth*\", ATTR{address}==\"00:1D:60:B9:6D:4F\", NAME=\"my_fast_network_card\"\n"
Declared by:
/etc/nixos/nixos/modules/services/hardware/udev.nix |
Defined by:
/etc/nixos/nixos/modules/services/hardware/udev.nix |
services.udev.packagesList of packages containing udev rules.
All files found in
and
pkg/etc/udev/rules.d
will be included.
pkg/lib/udev/rules.d
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/services/hardware/udev.nix |
Defined by:
services.uptimed.enableUptimed allows you to track your highest uptimes.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/system/uptimed.nix |
services.vsftpd.anonymousMkdirEnableWhether mkdir is permitted to anonymous users.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/vsftpd.nix |
services.vsftpd.anonymousUploadEnableWhether any uploads are permitted to anonymous users.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/vsftpd.nix |
services.vsftpd.anonymousUserWhether to enable the anonymous FTP user.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/vsftpd.nix |
services.vsftpd.anonymousUserHomePath to anonymous user data.
Default:
"/home/ftp"
Declared by:
/etc/nixos/nixos/modules/services/networking/vsftpd.nix |
services.vsftpd.chrootlocalUserWhether local users are confined to their home directory.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/vsftpd.nix |
services.vsftpd.enableWhether to enable the vsftpd FTP server.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/vsftpd.nix |
services.vsftpd.localUsersWhether to enable FTP for local users.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/vsftpd.nix |
services.vsftpd.userlistDenyWhether users are excluded.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/vsftpd.nix |
services.vsftpd.userlistEnableWhether users are included.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/vsftpd.nix |
services.vsftpd.writeEnableWhether any write activity is permitted to users.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/vsftpd.nix |
services.xfs.enableWhether to enable the X Font Server.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/x11/xfs.nix |
services.xinetd.enableWhether to enable the xinetd super-server daemon.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/xinetd.nix |
Defined by:
/etc/nixos/nixos/modules/services/networking/tftpd.nix |
services.xinetd.servicesA list of services provided by xinetd.
Default:
[
]
Declared by:
/etc/nixos/nixos/modules/services/networking/xinetd.nix |
Defined by:
/etc/nixos/nixos/modules/services/networking/tftpd.nix |
services.xinetd.services.*.nameName of the service.
Default: none
Example:
"login"
Declared by:
/etc/nixos/nixos/modules/services/networking/xinetd.nix |
services.xinetd.services.*.portPort number of the service.
Default:
0
Example:
123
Declared by:
/etc/nixos/nixos/modules/services/networking/xinetd.nix |
services.xinetd.services.*.protocolProtocol of the service. Usually tcp or udp.
Default:
"tcp"
Declared by:
/etc/nixos/nixos/modules/services/networking/xinetd.nix |
services.xinetd.services.*.serverPath of the program that implements the service.
Default: none
Example:
"/foo/bin/ftpd"
Declared by:
/etc/nixos/nixos/modules/services/networking/xinetd.nix |
services.xinetd.services.*.serverArgsCommand-line arguments for the server program.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/networking/xinetd.nix |
services.xinetd.services.*.unlistedWhether this server is listed in
/etc/services. If so, the port
number can be omitted.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/networking/xinetd.nix |
services.xinetd.services.*.userUser account for the service
Default:
"nobody"
Declared by:
/etc/nixos/nixos/modules/services/networking/xinetd.nix |
services.xserver.autorunWhether to start the X server automatically.
Default:
true
Declared by:
/etc/nixos/nixos/modules/services/x11/xserver.nix |
services.xserver.configThe contents of the configuration file of the X server
(xorg.conf).
Default: none
Declared by:
/etc/nixos/nixos/modules/services/x11/xserver.nix |
Defined by:
/etc/nixos/nixos/modules/services/x11/xserver.nix |
/etc/nixos/nixos/modules/services/x11/hardware/wacom.nix |
/etc/nixos/nixos/modules/services/x11/hardware/synaptics.nix |
services.xserver.defaultDepthDefault colour depth.
Default:
0
Example:
8
Declared by:
/etc/nixos/nixos/modules/services/x11/xserver.nix |
services.xserver.desktopManager.defaultDefault desktop manager loaded if none have been chosen.
Default:
"xterm"
Example:
"none"
Declared by:
/etc/nixos/nixos/modules/services/x11/desktop-managers/default.nix |
services.xserver.desktopManager.gnome.enableEnable a gnome terminal as a desktop manager.
Default:
false
Example:
true
Declared by:
/etc/nixos/nixos/modules/services/x11/desktop-managers/gnome.nix |
services.xserver.desktopManager.kde.enableEnable the kde desktop manager.
Default:
false
Example:
true
Declared by:
/etc/nixos/nixos/modules/services/x11/desktop-managers/kde.nix |
services.xserver.desktopManager.kde4.enableEnable the KDE 4 desktop environment.
Default:
false
Example:
true
Declared by:
/etc/nixos/nixos/modules/services/x11/desktop-managers/kde4.nix |
services.xserver.desktopManager.session
Internal option used to add some common line to desktop manager
scripts before forwarding the value to the
displayManager.
Default:
[
]
Example:
[
{
bgSupport = true; name = "kde"; start = "...";
}
]
Declared by:
/etc/nixos/nixos/modules/services/x11/desktop-managers/default.nix |
Defined by:
services.xserver.desktopManager.xterm.enableEnable a xterm terminal as a desktop manager.
Default:
true
Example:
false
Declared by:
/etc/nixos/nixos/modules/services/x11/desktop-managers/xterm.nix |
services.xserver.deviceSectionContents of the first Device section of the X server configuration file.
Default:
""
Example:
"VideoRAM 131072"
Declared by:
/etc/nixos/nixos/modules/services/x11/xserver.nix |
services.xserver.displayDisplay number for the X server.
Default:
0
Example:
1
Declared by:
/etc/nixos/nixos/modules/services/x11/xserver.nix |
services.xserver.displayManager.auto.enableWhether to enable the fake "auto" display manager, which
automatically logs in the user specified in the
user option. This is mostly useful for
automated tests.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/x11/display-managers/auto.nix |
services.xserver.displayManager.auto.userThe user account to login automatically.
Default:
"root"
Declared by:
/etc/nixos/nixos/modules/services/x11/display-managers/auto.nix |
services.xserver.displayManager.jobThis option defines how to start the display manager.
Default:
{
}
Declared by:
/etc/nixos/nixos/modules/services/x11/display-managers/default.nix |
Defined by:
/etc/nixos/nixos/modules/services/x11/display-managers/slim.nix |
/etc/nixos/nixos/modules/services/x11/display-managers/kdm.nix |
/etc/nixos/nixos/modules/services/x11/display-managers/auto.nix |
services.xserver.displayManager.job.environmentAdditional environment variables needed by the display manager.
Default:
{
}
Example:
{
SLIM_CFGFILE = ;
}
Declared by:
/etc/nixos/nixos/modules/services/x11/display-managers/default.nix |
services.xserver.displayManager.job.execCmdCommand to start the display manager.
Default: none
Example:
"/nix/store/vhyjiqa219r0zsvsbjyw1klj2y5f5sl0-slim-1.3.1/bin/slim"
Declared by:
/etc/nixos/nixos/modules/services/x11/display-managers/default.nix |
services.xserver.displayManager.job.logsXsessionWhether the display manager redirects the
output of the session script to
~/.xsession-errors.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/x11/display-managers/default.nix |
services.xserver.displayManager.job.preStartScript executed before the display manager is started.
Default:
""
Example:
"rm -f /var/log/my-display-manager.log"
Declared by:
/etc/nixos/nixos/modules/services/x11/display-managers/default.nix |
services.xserver.displayManager.kdm.enableWhether to enable the KDE display manager.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/x11/display-managers/kdm.nix |
services.xserver.displayManager.kdm.enableXDMCPWhether to enable XDMCP, which allows remote logins.
Default:
false
Declared by:
/etc/nixos/nixos/modules/services/x11/display-managers/kdm.nix |
services.xserver.displayManager.kdm.extraConfigOptions appended to kdmrc, the
configuration file of KDM.
Default:
""
Declared by:
/etc/nixos/nixos/modules/services/x11/display-managers/kdm.nix |
services.xserver.displayManager.sessionList of sessions supported with the command used to start each
session. Each session script can set the
waitPID shell variable to make this script
wait until the end of the user session. Each script is used
to define either a windows manager or a desktop manager. These
can be differentiated by setting the attribute
manage either to "window"
or "desktop".
The list of desktop manager and window manager should appear
inside the display manager with the desktop manager name
followed by the window manager name.
Default:
[
]
Example:
[
{
manage = "desktop"; name = "xterm"; start = "\n /nix/store/r8wrqglglmwdxj87fharv5jgqrbxvnja-xterm-231/bin/xterm -ls &\n waitPID=$!\n ";
}
]
Declared by:
/etc/nixos/nixos/modules/services/x11/display-managers/default.nix |
Defined by:
/etc/nixos/nixos/modules/services/x11/window-managers/default.nix |
/etc/nixos/nixos/modules/services/x11/desktop-managers/default.nix |
services.xserver.displayManager.slim.defaultUserThe 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.
Default:
""
Example:
"login"
Declared by:
/etc/nixos/nixos/modules/services/x11/display-managers/slim.nix |
services.xserver.displayManager.slim.enableWhether to enable SLiM as the display manager.
Default:
true
Declared by:
|