Configuration Options¶
appstream.enable¶
Whether to install files to support the AppStream metadata specification.
Type: boolean
Default:
trueDeclared by:
boot.enableContainers¶
Whether to enable support for NixOS containers.
Type: boolean
Default:
trueDeclared by:
boot.binfmt.emulatedSystems¶
List of systems to emulate. Will also configure Nix to support your new systems.
Type: list of strings
Default: ``[
]``
Example:
[ "wasm32-wasi" "x86_64-windows" "aarch64-linux" ]Declared by:
boot.binfmt.registrations¶
Extra binary formats to register with the kernel. See https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html for more details.
Type: attribute set of submodules
Default: ``{
}``
Declared by:
boot.binfmt.registrations.<name>.fixBinary¶
Whether to open the interpreter file as soon as the registration is loaded, rather than waiting for a relevant file to be invoked.
See the description of the ‘F’ flag in the kernel docs for more details.
Type: boolean
Default:
falseDeclared by:
boot.binfmt.registrations.<name>.interpreter¶
The interpreter to invoke to run the program.
Note that the actual registration will point to /run/binfmt/${name}, so the kernel interpreter length limit doesn’t apply.
Type: path
Declared by:
boot.binfmt.registrations.<name>.magicOrExtension¶
The magic number or extension to match on.
Type: string
Declared by:
boot.binfmt.registrations.<name>.mask¶
A mask to be ANDed with the byte sequence of the file before matching
Type: null or string
Default:
nullDeclared by:
boot.binfmt.registrations.<name>.matchCredentials¶
Whether to launch with the credentials and security token of the binary, not the interpreter (e.g. setuid bit).
See the description of the ‘C’ flag in the kernel docs for more details.
Implies/requires openBinary = true.
Type: boolean
Default:
falseDeclared by:
boot.binfmt.registrations.<name>.offset¶
The byte offset of the magic number used for recognition.
Type: null or signed integer
Default:
nullDeclared by:
boot.binfmt.registrations.<name>.openBinary¶
Whether to pass the binary to the interpreter as an open file descriptor, instead of a path.
Type: boolean
Default:
falseDeclared by:
boot.binfmt.registrations.<name>.preserveArgvZero¶
Whether to pass the original argv[0] to the interpreter.
See the description of the ‘P’ flag in the kernel docs for more details;
Type: boolean
Default:
falseDeclared by:
boot.binfmt.registrations.<name>.recognitionType¶
Whether to recognize executables by magic number or extension.
Type: one of “magic”, “extension”
Default:
"magic"Declared by:
boot.binfmtMiscRegistrations.<name>.fixBinary¶
Whether to open the interpreter file as soon as the registration is loaded, rather than waiting for a relevant file to be invoked.
See the description of the ‘F’ flag in the kernel docs for more details.
Type: boolean
Default:
falseDeclared by:
boot.binfmtMiscRegistrations.<name>.interpreter¶
The interpreter to invoke to run the program.
Note that the actual registration will point to /run/binfmt/${name}, so the kernel interpreter length limit doesn’t apply.
Type: path
Declared by:
boot.binfmtMiscRegistrations.<name>.magicOrExtension¶
The magic number or extension to match on.
Type: string
Declared by:
boot.binfmtMiscRegistrations.<name>.mask¶
A mask to be ANDed with the byte sequence of the file before matching
Type: null or string
Default:
nullDeclared by:
boot.binfmtMiscRegistrations.<name>.matchCredentials¶
Whether to launch with the credentials and security token of the binary, not the interpreter (e.g. setuid bit).
See the description of the ‘C’ flag in the kernel docs for more details.
Implies/requires openBinary = true.
Type: boolean
Default:
falseDeclared by:
boot.binfmtMiscRegistrations.<name>.offset¶
The byte offset of the magic number used for recognition.
Type: null or signed integer
Default:
nullDeclared by:
boot.binfmtMiscRegistrations.<name>.openBinary¶
Whether to pass the binary to the interpreter as an open file descriptor, instead of a path.
Type: boolean
Default:
falseDeclared by:
boot.binfmtMiscRegistrations.<name>.preserveArgvZero¶
Whether to pass the original argv[0] to the interpreter.
See the description of the ‘P’ flag in the kernel docs for more details;
Type: boolean
Default:
falseDeclared by:
boot.binfmtMiscRegistrations.<name>.recognitionType¶
Whether to recognize executables by magic number or extension.
Type: one of “magic”, “extension”
Default:
"magic"Declared by:
boot.blacklistedKernelModules¶
List of names of kernel modules that should not be loaded automatically by the hardware probing code.
Type: list of strings
Default: ``[
]``
Example:
[ "cirrusfb" "i2c_piix4" ]Declared by:
boot.cleanTmpDir¶
Whether to delete all files in
/tmpduring boot.Type: boolean
Default:
falseDeclared by:
boot.consoleLogLevel¶
The kernel console
loglevel. All Kernel Messages with a log level smaller than this setting will be printed to the console.Type: signed integer
Default:
4Declared by:
boot.crashDump.enable¶
If enabled, NixOS will set up a kernel that will boot on crash, and leave the user in systemd rescue to be able to save the crashed kernel dump at /proc/vmcore. It also activates the NMI watchdog.
Type: boolean
Default:
falseDeclared by:
boot.crashDump.kernelParams¶
Parameters that will be passed to the kernel kexec-ed on crash.
Type: list of strings
Default:
[ "1" "boot.shell_on_fail" ]Declared by:
boot.crashDump.reservedMemory¶
The amount of memory reserved for the crashdump kernel. If you choose a too high value, dmesg will mention “crashkernel reservation failed”.
Type: unspecified
Default:
"128M"Declared by:
boot.devShmSize¶
Size limit for the /dev/shm tmpfs. Look at mount(8), tmpfs size option, for the accepted syntax.
Type: string
Default:
"50%"Example:
"256m"Declared by:
boot.devSize¶
Size limit for the /dev tmpfs. Look at mount(8), tmpfs size option, for the accepted syntax.
Type: string
Default:
"5%"Example:
"32m"Declared by:
boot.extraModprobeConfig¶
Any additional configuration to be appended to the generated:file:modprobe.conf. This is typically used to specify module options. Seemodprobe.conf5 for details.
Type: strings concatenated with “\n”
Default:
""Example:
'' options parport_pc io=0x378 irq=7 dma=1 ''Declared by:
boot.extraModulePackages¶
A list of additional packages supplying kernel modules.
Type: list of packages
Default: ``[
]``
Example:
[ config.boot.kernelPackages.nvidia_x11 ]Declared by:
boot.growPartition¶
Whether to enable grow the root partition on boot.
Type: boolean
Default:
falseExample:
trueDeclared by:
boot.hardwareScan¶
Whether to try to load kernel modules for all detected hardware. Usually this does a good job of providing you with the modules you need, but sometimes it can crash the system or cause other nasty effects.
Type: boolean
Default:
trueDeclared by:
boot.initrd.availableKernelModules¶
The set of kernel modules in the initial ramdisk used during the boot process. This set must include all modules necessary for mounting the root device. That is, it should include modules for the physical device (e.g., SCSI drivers) and for the file system (e.g., ext3). The set specified here is automatically closed under the module dependency relation, i.e., all dependencies of the modules list here are included automatically. 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 .
Type: list of strings
Default: ``[
]``
Example:
[ "sata_nv" "ext3" ]Declared by:
boot.initrd.checkJournalingFS¶
Whether to run fsck on journaling filesystems such as ext3.
Type: boolean
Default:
trueDeclared by:
boot.initrd.kernelModules¶
List of modules that are always loaded by the initrd.
Type: list of strings
Default: ``[
]``
Declared by:
boot.initrd.luks.cryptoModules¶
A list of cryptographic kernel modules needed to decrypt the root device(s). The default includes all common modules.
Type: list of strings
Default:
[ "aes" "aes_generic" "blowfish" "twofish" "serpent" "cbc" "xts" "lrw" "sha1" "sha256" "sha512" "af_alg" "algif_skcipher" "aes_x86_64" ]Declared by:
boot.initrd.luks.devices¶
The encrypted disk that should be opened before the root filesystem is mounted. Both LVM-over-LUKS and LUKS-over-LVM setups are supported. The unencrypted devices can be accessed as:file:/dev/mapper/.
Type: list or attribute set of submodules
Default: ``{
}``
Example:
{ luksroot = { device = "/dev/disk/by-uuid/430e9eff-d852-4f68-aa3b-2fa3599ebe08"; } ; }Declared by:
boot.initrd.luks.devices.<name?>.allowDiscards¶
Whether to allow TRIM requests to the underlying device. This option has security implications; please read the LUKS documentation before activating it.
Type: boolean
Default:
falseDeclared by:
boot.initrd.luks.devices.<name?>.device¶
Path of the underlying encrypted block device.
Type: string
Example:
"/dev/disk/by-uuid/430e9eff-d852-4f68-aa3b-2fa3599ebe08"Declared by:
boot.initrd.luks.devices.<name?>.fallbackToPassword¶
Whether to fallback to interactive passphrase prompt if the keyfile cannot be found. This will prevent unattended boot should the keyfile go missing.
Type: boolean
Default:
falseDeclared by:
boot.initrd.luks.devices.<name?>.fido2.credential¶
The FIDO2 credential ID.
Type: string
Default:
nullExample:
"f1d00200d8dc783f7fb1e10ace8da27f8312d72692abfca2f7e4960a73f48e82e1f7571f6ebfcee9fb434f9886ccc8fcc52a6614d8d2"Declared by:
boot.initrd.luks.devices.<name?>.fido2.gracePeriod¶
Time in seconds to wait for the FIDO2 key.
Type: signed integer
Default:
10Declared by:
boot.initrd.luks.devices.<name?>.fido2.passwordLess¶
Defines whatever to use an empty string as a default salt.
Enable only when your device is PIN protected, such as Trezor.
Type: boolean
Default:
falseDeclared by:
boot.initrd.luks.devices.<name?>.gpgCard¶
The option to use this LUKS device with a GPG encrypted luks password by the GPG Smartcard. If null (the default), GPG-Smartcard will be disabled for this device.
Type: null or submodule
Default:
nullDeclared by:
boot.initrd.luks.devices.<name?>.gpgCard.encryptedPass¶
Path to the GPG encrypted passphrase.
Type: path
Default:
""Declared by:
boot.initrd.luks.devices.<name?>.gpgCard.gracePeriod¶
Time in seconds to wait for the GPG Smartcard.
Type: signed integer
Default:
10Declared by:
boot.initrd.luks.devices.<name?>.gpgCard.publicKey¶
Path to the Public Key.
Type: path
Default:
""Declared by:
boot.initrd.luks.devices.<name?>.header¶
The name of the file or block device that should be used as header for the encrypted device.
Type: null or string
Default:
nullExample:
"/root/header.img"Declared by:
boot.initrd.luks.devices.<name?>.keyFile¶
The name of the file (can be a raw device or a partition) that should be used as the decryption key for the encrypted device. If not specified, you will be prompted for a passphrase instead.
Type: null or string
Default:
nullExample:
"/dev/sdb1"Declared by:
boot.initrd.luks.devices.<name?>.keyFileOffset¶
The offset of the key file. Use this in combination with``keyFileSize`` to use part of a file as key file (often the case if a raw device or partition is used as a key file). If not specified, the key begins at the first byte of``keyFile``.
Type: null or signed integer
Default:
nullExample:
4096Declared by:
boot.initrd.luks.devices.<name?>.keyFileSize¶
The size of the key file. Use this if only the beginning of the key file should be used as a key (often the case if a raw device or partition is used as key file). If not specified, the whole``keyFile`` will be used decryption, instead of just the first
keyFileSizebytes.Type: null or signed integer
Default:
nullExample:
4096Declared by:
boot.initrd.luks.devices.<name?>.preLVM¶
Whether the luksOpen will be attempted before LVM scan or after it.
Type: boolean
Default:
trueDeclared by:
boot.initrd.luks.devices.<name?>.yubikey¶
The options to use for this LUKS device in Yubikey-PBA. If null (the default), Yubikey-PBA will be disabled for this device.
Type: null or submodule
Default:
nullDeclared by:
boot.initrd.luks.devices.<name?>.yubikey.gracePeriod¶
Time in seconds to wait for the Yubikey.
Type: signed integer
Default:
10Declared by:
boot.initrd.luks.devices.<name?>.yubikey.iterationStep¶
How much the iteration count for PBKDF2 is increased at each successful authentication.
Type: signed integer
Default:
0Declared by:
boot.initrd.luks.devices.<name?>.yubikey.keyLength¶
Length of the LUKS slot key derived with PBKDF2 in byte.
Type: signed integer
Default:
64Declared by:
boot.initrd.luks.devices.<name?>.yubikey.saltLength¶
Length of the new salt in byte (64 is the effective maximum).
Type: signed integer
Default:
16Declared by:
boot.initrd.luks.devices.<name?>.yubikey.slot¶
Which slot on the Yubikey to challenge.
Type: signed integer
Default:
2Declared by:
boot.initrd.luks.devices.<name?>.yubikey.storage.device¶
An unencrypted device that will temporarily be mounted in stage-1. Must contain the current salt to create the challenge for this LUKS device.
Type: path
Default:
"/dev/sda1"Declared by:
boot.initrd.luks.devices.<name?>.yubikey.storage.fsType¶
The filesystem of the unencrypted device.
Type: string
Default:
"vfat"Declared by:
boot.initrd.luks.devices.<name?>.yubikey.storage.path¶
Absolute path of the salt on the unencrypted device with that device’s root directory as “/”.
Type: string
Default:
"/crypt-storage/default"Declared by:
boot.initrd.luks.devices.<name?>.yubikey.twoFactor¶
Whether to use a passphrase and a Yubikey (true), or only a Yubikey (false).
Type: boolean
Default:
trueDeclared by:
boot.initrd.luks.fido2Support¶
Enables support for authenticating with FIDO2 devices.
Type: boolean
Default:
falseDeclared by:
boot.initrd.luks.gpgSupport¶
Enables support for authenticating with a GPG encrypted password.
Type: boolean
Default:
falseDeclared by:
boot.initrd.luks.mitigateDMAAttacks¶
Unless enabled, encryption keys can be easily recovered by an attacker with physical access to any machine with PCMCIA, ExpressCard, ThunderBolt or FireWire port. More information is available at ` <http://en.wikipedia.org/wiki/DMA_attack>`_.
This option blacklists FireWire drivers, but doesn’t remove them. You can manually load the drivers if you need to use a FireWire device, but don’t forget to unload them!
Type: boolean
Default:
trueDeclared by:
boot.initrd.luks.reusePassphrases¶
When opening a new LUKS device try reusing last successful passphrase.
Useful for mounting a number of devices that use the same passphrase without retyping it several times.
Such setup can be useful if you use cryptsetup luksSuspend. Different LUKS devices will still have different master keys even when using the same passphrase.
Type: boolean
Default:
trueDeclared by:
boot.initrd.luks.yubikeySupport¶
Enables support for authenticating with a Yubikey on LUKS devices. See the NixOS wiki for information on how to properly setup a LUKS device and a Yubikey to work with this feature.
Type: boolean
Default:
falseDeclared by:
boot.initrd.mdadmConf¶
Contents of
/etc/mdadm.confin stage 1.Type: strings concatenated with “\n”
Default:
""Declared by:
boot.initrd.network.enable¶
Add network connectivity support to initrd. The network may be configured using the
ipkernel parameter, as described in the kernel documentation. Otherwise, if is enabled, an IP address is acquired using DHCP.You should add the module(s) required for your network card to boot.initrd.availableKernelModules.``lspci -v | grep -iA8 ‘network\|ethernet’`` will tell you which.
Type: boolean
Default:
falseDeclared by:
boot.initrd.network.postCommands¶
Shell commands to be executed after stage 1 of the boot has initialised the network.
Type: strings concatenated with “\n”
Default:
""Declared by:
boot.initrd.network.ssh.enable¶
Start SSH service during initrd boot. It can be used to debug failing boot on a remote server, enter pasphrase for an encrypted partition etc. Service is killed when stage-1 boot is finished.
Type: boolean
Default:
falseDeclared by:
boot.initrd.network.ssh.authorizedKeys¶
Authorized keys for the root user on initrd. Note that Dropbear doesn’t support OpenSSH’s Ed25519 key type.
Type: list of strings
Default: ``[
]``
Declared by:
boot.initrd.network.ssh.hostDSSKey¶
DSS SSH private key file in the Dropbear format.
WARNING: Unless your bootloader supports initrd secrets, this key is contained insecurely in the global Nix store. Do NOT use your regular SSH host private keys for this purpose or you’ll expose them to regular users!
Type: null or path
Default:
nullDeclared by:
boot.initrd.network.ssh.hostECDSAKey¶
ECDSA SSH private key file in the Dropbear format.
WARNING: Unless your bootloader supports initrd secrets, this key is contained insecurely in the global Nix store. Do NOT use your regular SSH host private keys for this purpose or you’ll expose them to regular users!
Type: null or path
Default:
nullDeclared by:
boot.initrd.network.ssh.hostRSAKey¶
RSA SSH private key file in the Dropbear format.
WARNING: Unless your bootloader supports initrd secrets, this key is contained insecurely in the global Nix store. Do NOT use your regular SSH host private keys for this purpose or you’ll expose them to regular users!
Type: null or path
Default:
nullDeclared by:
boot.initrd.network.ssh.port¶
Port on which SSH initrd service should listen.
Type: signed integer
Default:
22Declared by:
boot.initrd.network.ssh.shell¶
Login shell of the remote user. Can be used to limit actions user can do.
Type: string
Default:
"/bin/ash"Declared by:
boot.initrd.network.udhcpc.extraArgs¶
Additional command-line arguments passed verbatim to udhcpc if and are enabled.
Type: list of strings
Default: ``[
]``
Declared by:
boot.initrd.postDeviceCommands¶
Shell commands to be executed immediately after stage 1 of the boot has loaded kernel modules and created device nodes in:file:/dev.
Type: strings concatenated with “\n”
Default:
""Declared by:
boot.initrd.postMountCommands¶
Shell commands to be executed immediately after the stage 1 filesystems have been mounted.
Type: strings concatenated with “\n”
Default:
""Declared by:
boot.initrd.preDeviceCommands¶
Shell commands to be executed before udev is started to create device nodes.
Type: strings concatenated with “\n”
Default:
""Declared by:
boot.initrd.preFailCommands¶
Shell commands to be executed before the failure prompt is shown.
Type: strings concatenated with “\n”
Default:
""Declared by:
boot.initrd.preLVMCommands¶
Shell commands to be executed immediately before LVM discovery.
Type: strings concatenated with “\n”
Default:
""Declared by:
boot.initrd.prepend¶
Other initrd files to prepend to the final initrd we are building.
Type: list of strings
Default: ``[
]``
Declared by:
boot.initrd.supportedFilesystems¶
Names of supported filesystem types in the initial ramdisk.
Type: list of strings
Default: ``[
]``
Example:
[ "btrfs" ]Declared by:
boot.isContainer¶
Whether this NixOS machine is a lightweight container running in another NixOS system.
Type: boolean
Default:
falseDeclared by:
boot.kernel.randstructSeed¶
Provides a custom seed for the
RANDSTRUCTsecurity option of the Linux kernel. Note thatRANDSTRUCTis only enabled in NixOS hardened kernels. Using a custom seed requires building the kernel and dependent packages locally, since this customization happens at build time.Type: string
Default:
""Example:
"my secret seed"Declared by:
boot.kernel.sysctl¶
Runtime parameters of the Linux kernel, as set bysysctl8. Note that sysctl parameters names must be enclosed in quotes (e.g.
"vm.swappiness"instead of``vm.swappiness``). The value of each parameter may be a string, integer, boolean, or null (signifying the option will not appear at all).Type: attribute set of sysctl option values
Default: ``{
}``
Example:
{ "net.ipv4.tcp_syncookies" = false; "vm.swappiness" = 60; }Declared by:
boot.kernelModules¶
The 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 or.
Type: list of strings
Default: ``[
]``
Declared by:
boot.kernelPackages¶
This option allows you to override the Linux kernel used by NixOS. Since things like external kernel module packages are tied to the kernel you’re using, it also overrides those. This option is a function that takes Nixpkgs as an argument (as a convenience), and returns an attribute set containing at the very least an attribute
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``.Type: unspecified
Default:
"pkgs.linuxPackages"Example:
pkgs.linuxPackages_2_6_25Declared by:
boot.kernelParams¶
boot.kernelPatches¶
A list of additional patches to apply to the kernel.
Type: list of attribute sets
Default: ``[
]``
Example:
[ pkgs.kernelPatches.ubuntu_fan_4_4 ]Declared by:
boot.loader.efi.canTouchEfiVariables¶
Whether the installation process is allowed to modify EFI boot variables.
Type: boolean
Default:
falseDeclared by:
boot.loader.efi.efiSysMountPoint¶
Where the EFI System Partition is mounted.
Type: string
Default:
"/boot"Declared by:
boot.loader.generationsDir.enable¶
Whether to create symlinks to the system generations under``/boot``. When enabled,``/boot/default/kernel``,``/boot/default/initrd``, etc., are updated to point to the current generation’s kernel image, initial RAM disk, and other bootstrap files.
This optional is not necessary with boot loaders such as GNU GRUB for which the menu is updated to point to the latest bootstrap files. However, it is needed for U-Boot on platforms where the boot command line is stored in flash memory rather than in a menu file.
Type: boolean
Default:
falseDeclared by:
boot.loader.generationsDir.copyKernels¶
Whether copy the necessary boot files into /boot, so /nix/store is not needed by the boot loader.
Type: boolean
Default:
falseDeclared by:
boot.loader.generic-extlinux-compatible.enable¶
Whether to generate an extlinux-compatible configuration file under
/boot/extlinux.conf. For instance, U-Boot’s generic distro boot support uses this file format.See U-boot’s documentation for more information.
Type: boolean
Default:
falseDeclared by:
boot.loader.generic-extlinux-compatible.configurationLimit¶
Maximum number of configurations in the boot menu.
Type: signed integer
Default:
20Example:
10Declared by:
boot.loader.grub.enable¶
Whether to enable the GNU GRUB boot loader.
Type: boolean
Default:
trueDeclared by:
boot.loader.grub.enableCryptodisk¶
Enable support for encrypted partitions. GRUB should automatically unlock the correct encrypted partition and look for filesystems.
Type: boolean
Default:
falseDeclared by:
boot.loader.grub.backgroundColor¶
Background color to be used for GRUB to fill the areas the image isn’t filling.
Note
This options has no effect for GRUB 1.
Type: null or string
Default:
nullExample:
"#7EBAE4"Declared by:
boot.loader.grub.configurationLimit¶
Maximum of configurations in boot menu. GRUB has problems when there are too many entries.
Type: signed integer
Default:
100Example:
120Declared by:
boot.loader.grub.configurationName¶
GRUB entry name instead of default.
Type: string
Default:
""Example:
"Stable 2.6.21"Declared by:
boot.loader.grub.copyKernels¶
Whether the GRUB menu builder should copy kernels and initial ramdisks to /boot. This is done automatically if /boot is on a different partition than /.
Type: boolean
Default:
falseDeclared by:
boot.loader.grub.default¶
Index of the default menu item to be booted.
Type: signed integer or string
Default:
"0"Declared by:
boot.loader.grub.device¶
The device on which the GRUB boot loader will be installed. The special value
nodevmeans that a GRUB boot menu will be generated, but GRUB itself will not actually be installed. To install GRUB on multiple devices, useboot.loader.grub.devices.Type: string
Default:
""Example:
"/dev/disk/by-id/wwn-0x500001234567890a"Declared by:
boot.loader.grub.devices¶
The devices on which the boot loader, GRUB, will be installed. Can be used instead of
deviceto install GRUB onto multiple devices.Type: list of strings
Default: ``[
]``
Example:
[ "/dev/disk/by-id/wwn-0x500001234567890a" ]Declared by:
boot.loader.grub.efiInstallAsRemovable¶
Whether to invoke
grub-installwith``–removable``.Unless you turn this on, GRUB will install itself somewhere in``boot.loader.efi.efiSysMountPoint`` (exactly where depends on other config variables). If you’ve set``boot.loader.efi.canTouchEfiVariables`` AND you are currently booted in UEFI mode, then GRUB will use``efibootmgr`` to modify the boot order in the EFI variables of your firmware to include this location. If you are *not* booted in UEFI mode at the time GRUB is being installed, the NVRAM will not be modified, and your system will not find GRUB at boot time. However, GRUB will still return success so you may miss the warning that gets printed (“
efibootmgr: EFI variables are not supported on this system.”).If you turn this feature on, GRUB will install itself in a special location within
efiSysMountPoint(namely``EFI/boot/boot$arch.efi``) which the firmwares are hardcoded to try first, regardless of NVRAM EFI variables.To summarize, turn this on if:
- You are installing NixOS and want it to boot in UEFI mode, but you are currently booted in legacy mode
- You want to make a drive that will boot regardless of the NVRAM state of the computer (like a USB “removable” drive)
- You simply dislike the idea of depending on NVRAM state to make your drive bootable
Type: boolean
Default:
falseDeclared by:
boot.loader.grub.efiSupport¶
Whether GRUB should be built with EFI support. EFI support is only available for GRUB v2. This option is ignored for GRUB v1.
Type: boolean
Default:
falseDeclared by:
boot.loader.grub.extraConfig¶
Additional GRUB commands inserted in the configuration file just before the menu entries.
Type: strings concatenated with “\n”
Default:
""Example:
'' serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 terminal_input --append serial terminal_output --append serial ''Declared by:
boot.loader.grub.extraEntries¶
Any additional entries you want added to the GRUB boot menu.
Type: strings concatenated with “\n”
Default:
""Example:
'' # GRUB 1 example (not GRUB 2 compatible) title Windows chainloader (hd0,1)+1 # GRUB 2 example menuentry "Windows 7" { chainloader (hd0,4)+1 } # GRUB 2 with UEFI example, chainloading another distro menuentry "Fedora" { set root=(hd1,1) chainloader /efi/fedora/grubx64.efi } ''Declared by:
boot.loader.grub.extraEntriesBeforeNixOS¶
Whether extraEntries are included before the default option.
Type: boolean
Default:
falseDeclared by:
boot.loader.grub.extraFiles¶
A set of files to be copied to
/boot. Each attribute name denotes the destination file name in:file:/boot, while the corresponding attribute value specifies the source file.Type: attribute set of paths
Default: ``{
}``
Example:
{ "memtest.bin" = "${pkgs.memtest86plus}/memtest.bin"; }Declared by:
boot.loader.grub.extraInitrd¶
The path to a second initramfs to be supplied to the kernel. This ramfs will not be copied to the store, so that it can contain secrets such as LUKS keyfiles or ssh keys. This implies that rolling back to a previous configuration won’t rollback the state of this file.
Type: null or path
Default:
nullExample:
"/boot/extra_initramfs.gz"Declared by:
boot.loader.grub.extraPerEntryConfig¶
Additional GRUB commands inserted in the configuration file at the start of each NixOS menu entry.
Type: strings concatenated with “\n”
Default:
""Example:
"root (hd0)"Declared by:
boot.loader.grub.extraPrepareConfig¶
Additional bash commands to be run at the script that prepares the GRUB menu entries.
Type: strings concatenated with “\n”
Default:
""Declared by:
boot.loader.grub.font¶
Path to a TrueType, OpenType, or pf2 font to be used by Grub.
Type: null or path
Default:
''"''${pkgs.grub2}/share/grub/unicode.pf2"''Declared by:
boot.loader.grub.fontSize¶
Font size for the grub menu. Ignored unless
fontis set to a ttf or otf font.Type: null or signed integer
Default:
nullExample:
*Declared by:*
boot.loader.grub.forceInstall¶
Whether to try and forcibly install GRUB even if problems are detected. It is not recommended to enable this unless you know what you are doing.
Type: boolean
Default:
falseDeclared by:
boot.loader.grub.forcei686¶
Whether to force the use of a ia32 boot loader on x64 systems. Required to install and run NixOS on 64bit x86 systems with 32bit (U)EFI.
Type: boolean
Default:
falseDeclared by:
boot.loader.grub.fsIdentifier¶
Determines how GRUB will identify devices when generating the configuration file. A value of uuid / label signifies that grub will always resolve the uuid or label of the device before using it in the configuration. A value of provided means that GRUB will use the device name as show in df or:command:mount. Note, zfs zpools / datasets are ignored and will always be mounted using their labels.
Type: one of “uuid”, “label”, “provided”
Default:
"uuid"Declared by:
boot.loader.grub.gfxmodeBios¶
The gfxmode to pass to GRUB when loading a graphical boot interface under BIOS.
Type: string
Default:
"1024x768"Example:
"auto"Declared by:
boot.loader.grub.gfxmodeEfi¶
The gfxmode to pass to GRUB when loading a graphical boot interface under EFI.
Type: string
Default:
"auto"Example:
"1024x768"Declared by:
boot.loader.grub.gfxpayloadBios¶
The gfxpayload to pass to GRUB when loading a graphical boot interface under BIOS.
Type: string
Default:
"text"Example:
"keep"Declared by:
boot.loader.grub.gfxpayloadEfi¶
The gfxpayload to pass to GRUB when loading a graphical boot interface under EFI.
Type: string
Default:
"keep"Example:
"text"Declared by:
boot.loader.grub.ipxe¶
Set of iPXE scripts available for booting from the GRUB boot menu.
Type: attribute set of path or strings
Default: ``{
}``
Example:
{ demo = '' #!ipxe dhcp chain http://boot.ipxe.org/demo/boot.php ''; }Declared by:
boot.loader.grub.memtest86.enable¶
Make Memtest86+ (or MemTest86 if EFI support is enabled), a memory testing program, available from the GRUB boot menu. MemTest86 is an unfree program, so this requires
allowUnfreeto be set to``true``.Type: boolean
Default:
falseDeclared by:
boot.loader.grub.memtest86.params¶
Parameters added to the Memtest86+ command line. As of memtest86+ 5.01 the following list of (apparently undocumented) parameters are accepted:
console=..., set up a serial console. Examples:console=ttyS0,console=ttyS0,9600orconsole=ttyS0,115200n8.btrace, enable boot trace.maxcpus=N, limit number of CPUs.onepass, run one pass and exit if there are no errors.tstlist=..., list of tests to run. Example:0,1,2.cpumask=..., set a CPU mask, to select CPUs to use for testing.This list of command line options was obtained by reading the Memtest86+ source code.
Type: list of strings
Default: ``[
]``
Example:
[ "console=ttyS0,115200" ]Declared by:
boot.loader.grub.mirroredBoots¶
Mirror the boot configuration to multiple partitions and install grub to the respective devices corresponding to those partitions.
Type: list of submodules
Default: ``[
]``
Example: ``[
{ devices = [ “/dev/disk/by-id/wwn-0x500001234567890a” ] ; path = “/boot1”; }
{ devices = [ “/dev/disk/by-id/wwn-0x500009876543210a” ] ; path = “/boot2”; }
]``
Declared by:
boot.loader.grub.mirroredBoots.*.devices¶
The path to the devices which will have the GRUB MBR written. Note these are typically device paths and not paths to partitions.
Type: list of strings
Default: ``[
]``
Example:
[ "/dev/disk/by-id/wwn-0x500001234567890a" "/dev/disk/by-id/wwn-0x500009876543210a" ]Declared by:
boot.loader.grub.mirroredBoots.*.efiBootloaderId¶
The id of the bootloader to store in efi nvram. The default is to name it NixOS and append the path or efiSysMountPoint. This is only used if
boot.loader.efi.canTouchEfiVariablesis true.Type: null or string
Default:
nullExample:
"NixOS-fsid"Declared by:
boot.loader.grub.mirroredBoots.*.efiSysMountPoint¶
The path to the efi system mount point. Usually this is the same partition as the above path and can be left as null.
Type: null or string
Default:
nullExample:
"/boot1/efi"Declared by:
boot.loader.grub.mirroredBoots.*.path¶
The path to the boot directory where GRUB will be written. Generally this boot path should double as an EFI path.
Type: string
Example:
"/boot1"Declared by:
boot.loader.grub.splashImage¶
Background image used for GRUB. Set to
nullto run GRUB in text mode.Note
For grub 1: It must be a 640x480, 14-colour image in XPM format, optionally compressed with:command:gzip or bzip2.
Note
For grub 2: File must be one of .png, .tga, .jpg, or .jpeg. JPEG images must not be progressive. The image will be scaled if necessary to fit the screen.
Type: null or path
Example:
./my-background.pngDeclared by:
boot.loader.grub.splashMode¶
Whether to stretch the image or show the image in the top-left corner unstretched.
Note
This options has no effect for GRUB 1.
Type: one of “normal”, “stretch”
Default:
"stretch"Declared by:
boot.loader.grub.storePath¶
Path to the Nix store when looking for kernels at boot. Only makes sense when copyKernels is false.
Type: string
Default:
"/nix/store"Declared by:
boot.loader.grub.trustedBoot.enable¶
Enable trusted boot. GRUB will measure all critical components during the boot process to offer TCG (TPM) support.
Type: boolean
Default:
falseDeclared by:
boot.loader.grub.trustedBoot.isHPLaptop¶
Use a special version of TrustedGRUB that is needed by some HP laptops and works only for the HP laptops.
Type: boolean
Default:
falseDeclared by:
boot.loader.grub.trustedBoot.systemHasTPM¶
Assertion that the target system has an activated TPM. It is a safety check before allowing the activation of ‘trustedBoot.enable’. TrustedBoot WILL FAIL TO BOOT YOUR SYSTEM if no TPM is available.
Type: string
Default:
""Example:
"YES_TPM_is_activated"Declared by:
boot.loader.grub.useOSProber¶
If set to true, append entries for other OSs detected by os-prober.
Type: boolean
Default:
falseDeclared by:
boot.loader.grub.version¶
The version of GRUB to use:
1for GRUB Legacy (versions 0.9x), or2(the default) for GRUB 2.Type: signed integer
Default:
2Example:
1Declared by:
boot.loader.grub.zfsSupport¶
Whether GRUB should be built against libzfs. ZFS support is only available for GRUB v2. This option is ignored for GRUB v1.
Type: boolean
Default:
falseDeclared by:
boot.loader.initScript.enable¶
Some 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.
Additionally 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 rescue system or such.
Type: boolean
Default:
falseDeclared by:
boot.loader.raspberryPi.enable¶
Whether to create files with the system generations in``/boot``.``/boot/old`` will hold files from old generations.
Type: boolean
Default:
falseDeclared by:
boot.loader.raspberryPi.firmwareConfig¶
Extra options that will be appended to
/boot/config.txtfile. For possible values, see: https://www.raspberrypi.org/documentation/configuration/config-txt/Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
boot.loader.raspberryPi.uboot.enable¶
Enable using uboot as bootmanager for the raspberry pi.
Type: boolean
Default:
falseDeclared by:
boot.loader.raspberryPi.uboot.configurationLimit¶
Maximum number of configurations in the boot menu.
Type: signed integer
Default:
20Example:
10Declared by:
boot.loader.raspberryPi.version¶
Type: one of 0, 1, 2, 3, 4
Default:
2Declared by:
boot.loader.systemd-boot.enable¶
Whether to enable the systemd-boot (formerly gummiboot) EFI boot manager
Type: boolean
Default:
falseDeclared by:
boot.loader.systemd-boot.configurationLimit¶
Maximum number of latest generations in the boot menu. Useful to prevent boot partition running out of disk space.
nullmeans no limit i.e. all generations that were not garbage collected yet.Type: null or signed integer
Default:
nullExample:
120Declared by:
boot.loader.systemd-boot.consoleMode¶
The resolution of the console. The following values are valid:
"0": Standard UEFI 80x25 mode"1": 80x50 mode, not supported by all devices"2": The first non-standard mode provided by the device firmware, if any"auto": Pick a suitable mode automatically using heuristics"max": Pick the highest-numbered available mode"keep": Keep the mode selected by firmware (the default)Type: one of “0”, “1”, “2”, “auto”, “max”, “keep”
Default:
"keep"Declared by:
boot.loader.systemd-boot.editor¶
Whether to allow editing the kernel command-line before boot. It is recommended to set this to false, as it allows gaining root access by passing init=/bin/sh as a kernel parameter. However, it is enabled by default for backwards compatibility.
Type: boolean
Default:
trueDeclared by:
boot.loader.systemd-boot.memtest86.enable¶
Make MemTest86 available from the systemd-boot menu. MemTest86 is a program for testing memory. MemTest86 is an unfree program, so this requires
allowUnfreeto be set to``true``.Type: boolean
Default:
falseDeclared by:
boot.loader.timeout¶
Timeout (in seconds) until loader boots the default menu item. Use null if the loader menu should be displayed indefinitely.
Type: null or signed integer
Default:
5Declared by:
boot.plymouth.enable¶
Whether to enable Plymouth boot splash screen.
Type: boolean
Default:
falseExample:
trueDeclared by:
boot.plymouth.extraConfig¶
Literal string to append to
configFileand the config file generated by the plymouth module.Type: strings concatenated with “\n”
Default:
""Declared by:
boot.plymouth.logo¶
Logo which is displayed on the splash screen.
Type: path
Default:
'' pkgs.fetchurl { url = "https://nixos.org/logo/nixos-hires.png"; sha256 = "1ivzgd7iz0i06y36p8m5w48fd8pjqwxhdaavc0pxs7w1g7mcy5si"; }''Declared by:
boot.plymouth.theme¶
Splash screen theme.
Type: string
Default:
"breeze"Declared by:
boot.plymouth.themePackages¶
Extra theme packages for plymouth.
Type: list of packages
Default:
[ *(build of breeze-plymouth-5.17.5)* ]Declared by:
boot.postBootCommands¶
Shell commands to be executed just before systemd is started.
Type: strings concatenated with “\n”
Default:
""Example:
"rm -f /var/log/messages"Declared by:
boot.resumeDevice¶
Device for manual resume attempt during boot. This should be used primarily if you want to resume from file. If left empty, the swap partitions are used. Specify here the device where the file resides. You should also use
boot.kernelParamsto specify``*resume_offset*``.Type: string
Default:
""Example:
"/dev/sda3"Declared by:
boot.runSize¶
Size limit for the /run tmpfs. Look at mount(8), tmpfs size option, for the accepted syntax.
Type: string
Default:
"25%"Example:
"256m"Declared by:
boot.specialFileSystems.<name?>.device¶
Location of the device.
Type: null or string (with check: non-empty)
Default:
nullExample:
"/dev/sda"Declared by:
boot.specialFileSystems.<name?>.fsType¶
Type of the file system.
Type: string (with check: non-empty)
Default:
"auto"Example:
"ext3"Declared by:
boot.specialFileSystems.<name?>.mountPoint¶
Location of the mounted the file system.
Type: string (with check: non-empty)
Example:
"/mnt/usb"Declared by:
boot.specialFileSystems.<name?>.options¶
Options used to mount the file system.
Type: list of string (with check: non-empty)s
Default:
[ "defaults" ]Example:
[ "data=journal" ]Declared by:
boot.supportedFilesystems¶
Names of supported filesystem types.
Type: list of strings
Default: ``[
]``
Example:
[ "btrfs" ]Declared by:
boot.systemd.services.<name>.enable¶
If set to false, this unit will be a symlink to /dev/null. This is primarily useful to prevent specific template instances (e.g.
serial-getty@ttyS0) from being started. Note thatenable=truedoes not make a unit start by default at boot; if you want that, see``wantedBy``.Type: boolean
Default:
trueDeclared by:
boot.systemd.services.<name>.after¶
If the specified units are started at the same time as this unit, delay this unit until they have started.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.services.<name>.aliases¶
boot.systemd.services.<name>.before¶
If the specified units are started at the same time as this unit, delay them until this unit has started.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.services.<name>.bindsTo¶
Like ‘requires’, but in addition, if the specified units unexpectedly disappear, this unit will be stopped as well.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.services.<name>.confinement.enable¶
If set, all the required runtime store paths for this service are bind-mounted into a
tmpfs-based chroot2.Type: boolean
Default:
falseDeclared by:
boot.systemd.services.<name>.confinement.packages¶
Additional packages or strings with context to add to the closure of the chroot. By default, this includes all the packages from the, , , , and options. If you want to have all the dependencies of this systemd unit, you can use.
Note
The store paths listed in are*not* included in the closure as well as paths from other options except those listed above.
Type: list of string or packages
Default: ``[
]``
Declared by:
boot.systemd.services.<name>.confinement.binSh¶
The program to make available as
/bin/shinside the chroot. If this is set tonull, no:file:/bin/sh is provided at all.This is useful for some applications, which for example use thesystem3 library function to execute commands.
Type: null or path
Default:
"config.environment.binsh"Example:
${pkgs.dash}/bin/dashDeclared by:
boot.systemd.services.<name>.confinement.fullUnit¶
Whether to include the full closure of the systemd unit file into the chroot, instead of just the dependencies for the executables.
Warning
While it may be tempting to just enable this option to make things work quickly, please be aware that this might add paths to the closure of the chroot that you didn’t anticipate. It’s better to use to explicitly add additional store paths to the chroot.
Type: boolean
Default:
falseDeclared by:
boot.systemd.services.<name>.confinement.mode¶
The value
full-apivfs(the default) sets up private/dev,/proc,/sysand/tmpfile systems in a separate user name space.If this is set to
chroot-only, only the file system name space is set up along with the call to chroot2.Note
This doesn’t cover network namespaces and is solely for file system level isolation.
Type: one of “full-apivfs”, “chroot-only”
Default:
"full-apivfs"Declared by:
boot.systemd.services.<name>.conflicts¶
If the specified units are started, then this unit is stopped and vice versa.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.services.<name>.description¶
Description of this unit used in systemd messages and progress indicators.
Type: string
Default:
""Declared by:
boot.systemd.services.<name>.documentation¶
A list of URIs referencing documentation for this unit or its configuration.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.services.<name>.environment¶
Environment variables passed to the service’s processes.
Type: attribute set of null or string or path or packages
Default: ``{
}``
Example:
{ LANG = "nl_NL.UTF-8"; PATH = "/foo/bar/bin"; }Declared by:
boot.systemd.services.<name>.onFailure¶
A list of one or more units that are activated when this unit enters the “failed” state.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.services.<name>.partOf¶
If the specified units are stopped or restarted, then this unit is stopped or restarted as well.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.services.<name>.path¶
Packages added to the service’s PATH environment variable. Both the
binandsbinsubdirectories of each package are added.Type: unspecified
Default: ``[
]``
Declared by:
boot.systemd.services.<name>.postStart¶
Shell commands executed after the service’s main process is started.
Type: strings concatenated with “\n”
Default:
""Declared by:
boot.systemd.services.<name>.postStop¶
Shell commands executed after the service’s main process has exited.
Type: strings concatenated with “\n”
Default:
""Declared by:
boot.systemd.services.<name>.preStart¶
Shell commands executed before the service’s main process is started.
Type: strings concatenated with “\n”
Default:
""Declared by:
boot.systemd.services.<name>.preStop¶
Shell commands executed to stop the service.
Type: strings concatenated with “\n”
Default:
""Declared by:
boot.systemd.services.<name>.reload¶
Shell commands executed when the service’s main process is reloaded.
Type: strings concatenated with “\n”
Default:
""Declared by:
boot.systemd.services.<name>.reloadIfChanged¶
Whether the service should be reloaded during a NixOS configuration switch if its definition has changed. If enabled, the value of is ignored.
Type: boolean
Default:
falseDeclared by:
boot.systemd.services.<name>.requiredBy¶
Units that require (i.e. depend on and need to go down with) this unit. The discussion under
wantedByapplies here as well: inverse.requiressymlinks are established.Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.services.<name>.requires¶
Start the specified units when this unit is started, and stop this unit when the specified units are stopped or fail.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.services.<name>.requisite¶
Similar to requires. However if the units listed are not started, they will not be started and the transaction will fail.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.services.<name>.restartIfChanged¶
Whether the service should be restarted during a NixOS configuration switch if its definition has changed.
Type: boolean
Default:
trueDeclared by:
boot.systemd.services.<name>.restartTriggers¶
An arbitrary list of items such as derivations. If any item in the list changes between reconfigurations, the service will be restarted.
Type: list of unspecifieds
Default: ``[
]``
Declared by:
boot.systemd.services.<name>.script¶
Shell commands executed as the service’s main process.
Type: strings concatenated with “\n”
Default:
""Declared by:
boot.systemd.services.<name>.scriptArgs¶
Arguments passed to the main process script.
Type: string
Default:
""Declared by:
boot.systemd.services.<name>.serviceConfig¶
Each attribute in this set specifies an option in the``[Service]`` section of the unit. Seesystemd.service5 for details.
Type: attribute set of systemd options
Default: ``{
}``
Example:
{ RestartSec = 5; StartLimitInterval = 10; }Declared by:
boot.systemd.services.<name>.startAt¶
Automatically start this unit at the given date/time, which must be in the format described insystemd.time7. This is equivalent to adding a corresponding timer unit with set to the value given here.
Type: string or list of strings
Default: ``[
]``
Example:
"Sun 14:00:00"Declared by:
boot.systemd.services.<name>.startLimitIntervalSec¶
Configure unit start rate limiting. Units which are started more than burst times within an interval time interval are not permitted to start any more.
Type: signed integer
Declared by:
boot.systemd.services.<name>.stopIfChanged¶
If set, a changed unit is restarted by calling:command:systemctl stop in the old configuration, then systemctl start in the new one. Otherwise, it is restarted in a single step using:command:systemctl restart in the new configuration. The latter is less correct because it runs the``ExecStop`` commands from the new configuration.
Type: boolean
Default:
trueDeclared by:
boot.systemd.services.<name>.unitConfig¶
Each attribute in this set specifies an option in the``[Unit]`` section of the unit. Seesystemd.unit5 for details.
Type: attribute set of systemd options
Default: ``{
}``
Example:
{ RequiresMountsFor = "/data"; }Declared by:
boot.systemd.services.<name>.wantedBy¶
Units that want (i.e. depend on) this unit. The standard way to make a unit start by default at boot is to set this option to
[ "multi-user.target" ]. That’s despite the fact that the systemd.unit(5) manpage says this option goes in the[Install]section that controls the behaviour ofsystemctl enable. Since such a process is stateful and thus contrary to the design of NixOS, setting this option instead causes the equivalent inverse.wantssymlink to be present, establishing the same desired relationship in a stateless way.Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.services.<name>.wants¶
Start the specified units when this unit is started.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.sockets.<name>.enable¶
If set to false, this unit will be a symlink to /dev/null. This is primarily useful to prevent specific template instances (e.g.
serial-getty@ttyS0) from being started. Note thatenable=truedoes not make a unit start by default at boot; if you want that, see``wantedBy``.Type: boolean
Default:
trueDeclared by:
boot.systemd.sockets.<name>.after¶
If the specified units are started at the same time as this unit, delay this unit until they have started.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.sockets.<name>.aliases¶
boot.systemd.sockets.<name>.before¶
If the specified units are started at the same time as this unit, delay them until this unit has started.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.sockets.<name>.bindsTo¶
Like ‘requires’, but in addition, if the specified units unexpectedly disappear, this unit will be stopped as well.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.sockets.<name>.conflicts¶
If the specified units are started, then this unit is stopped and vice versa.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.sockets.<name>.description¶
Description of this unit used in systemd messages and progress indicators.
Type: string
Default:
""Declared by:
boot.systemd.sockets.<name>.documentation¶
A list of URIs referencing documentation for this unit or its configuration.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.sockets.<name>.listenStreams¶
For each item in this list, a
ListenStreamoption in the[Socket]section will be created.Type: list of strings
Default: ``[
]``
Example:
[ "0.0.0.0:993" "/run/my-socket" ]Declared by:
boot.systemd.sockets.<name>.onFailure¶
A list of one or more units that are activated when this unit enters the “failed” state.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.sockets.<name>.partOf¶
If the specified units are stopped or restarted, then this unit is stopped or restarted as well.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.sockets.<name>.requiredBy¶
Units that require (i.e. depend on and need to go down with) this unit. The discussion under
wantedByapplies here as well: inverse.requiressymlinks are established.Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.sockets.<name>.requires¶
Start the specified units when this unit is started, and stop this unit when the specified units are stopped or fail.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.sockets.<name>.requisite¶
Similar to requires. However if the units listed are not started, they will not be started and the transaction will fail.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.sockets.<name>.restartTriggers¶
An arbitrary list of items such as derivations. If any item in the list changes between reconfigurations, the service will be restarted.
Type: list of unspecifieds
Default: ``[
]``
Declared by:
boot.systemd.sockets.<name>.socketConfig¶
Each attribute in this set specifies an option in the``[Socket]`` section of the unit. Seesystemd.socket5 for details.
Type: attribute set of systemd options
Default: ``{
}``
Example:
{ ListenStream = "/run/my-socket"; }Declared by:
boot.systemd.sockets.<name>.startLimitIntervalSec¶
Configure unit start rate limiting. Units which are started more than burst times within an interval time interval are not permitted to start any more.
Type: signed integer
Declared by:
boot.systemd.sockets.<name>.unitConfig¶
Each attribute in this set specifies an option in the``[Unit]`` section of the unit. Seesystemd.unit5 for details.
Type: attribute set of systemd options
Default: ``{
}``
Example:
{ RequiresMountsFor = "/data"; }Declared by:
boot.systemd.sockets.<name>.wantedBy¶
Units that want (i.e. depend on) this unit. The standard way to make a unit start by default at boot is to set this option to
[ "multi-user.target" ]. That’s despite the fact that the systemd.unit(5) manpage says this option goes in the[Install]section that controls the behaviour ofsystemctl enable. Since such a process is stateful and thus contrary to the design of NixOS, setting this option instead causes the equivalent inverse.wantssymlink to be present, establishing the same desired relationship in a stateless way.Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.sockets.<name>.wants¶
Start the specified units when this unit is started.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.targets.<name>.enable¶
If set to false, this unit will be a symlink to /dev/null. This is primarily useful to prevent specific template instances (e.g.
serial-getty@ttyS0) from being started. Note thatenable=truedoes not make a unit start by default at boot; if you want that, see``wantedBy``.Type: boolean
Default:
trueDeclared by:
boot.systemd.targets.<name>.after¶
If the specified units are started at the same time as this unit, delay this unit until they have started.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.targets.<name>.aliases¶
boot.systemd.targets.<name>.before¶
If the specified units are started at the same time as this unit, delay them until this unit has started.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.targets.<name>.bindsTo¶
Like ‘requires’, but in addition, if the specified units unexpectedly disappear, this unit will be stopped as well.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.targets.<name>.conflicts¶
If the specified units are started, then this unit is stopped and vice versa.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.targets.<name>.description¶
Description of this unit used in systemd messages and progress indicators.
Type: string
Default:
""Declared by:
boot.systemd.targets.<name>.documentation¶
A list of URIs referencing documentation for this unit or its configuration.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.targets.<name>.onFailure¶
A list of one or more units that are activated when this unit enters the “failed” state.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.targets.<name>.partOf¶
If the specified units are stopped or restarted, then this unit is stopped or restarted as well.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.targets.<name>.requiredBy¶
Units that require (i.e. depend on and need to go down with) this unit. The discussion under
wantedByapplies here as well: inverse.requiressymlinks are established.Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.targets.<name>.requires¶
Start the specified units when this unit is started, and stop this unit when the specified units are stopped or fail.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.targets.<name>.requisite¶
Similar to requires. However if the units listed are not started, they will not be started and the transaction will fail.
Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.targets.<name>.restartTriggers¶
An arbitrary list of items such as derivations. If any item in the list changes between reconfigurations, the service will be restarted.
Type: list of unspecifieds
Default: ``[
]``
Declared by:
boot.systemd.targets.<name>.startLimitIntervalSec¶
Configure unit start rate limiting. Units which are started more than burst times within an interval time interval are not permitted to start any more.
Type: signed integer
Declared by:
boot.systemd.targets.<name>.unitConfig¶
Each attribute in this set specifies an option in the``[Unit]`` section of the unit. Seesystemd.unit5 for details.
Type: attribute set of systemd options
Default: ``{
}``
Example:
{ RequiresMountsFor = "/data"; }Declared by:
boot.systemd.targets.<name>.wantedBy¶
Units that want (i.e. depend on) this unit. The standard way to make a unit start by default at boot is to set this option to
[ "multi-user.target" ]. That’s despite the fact that the systemd.unit(5) manpage says this option goes in the[Install]section that controls the behaviour ofsystemctl enable. Since such a process is stateful and thus contrary to the design of NixOS, setting this option instead causes the equivalent inverse.wantssymlink to be present, establishing the same desired relationship in a stateless way.Type: list of strings
Default: ``[
]``
Declared by:
boot.systemd.targets.<name>.wants¶
Start the specified units when this unit is started.
Type: list of strings
Default: ``[
]``
Declared by:
boot.tmpOnTmpfs¶
Whether to mount a tmpfs on
/tmpduring boot.Type: boolean
Default:
falseDeclared by:
boot.vesa¶
(Deprecated) This option, if set, activates the VESA 800x600 video mode on boot and disables kernel modesetting. It is equivalent to specifying
[ "vga=0x317" "nomodeset" ]in the option. This option is deprecated as of 2020: Xorg now works better with modesetting, and you might want a different VESA vga setting, anyway.Type: boolean
Default:
falseDeclared by:
boot.zfs.enableUnstable¶
Use the unstable zfs package. This might be an option, if the latest kernel is not yet supported by a published release of ZFS. Enabling this option will install a development version of ZFS on Linux. The version will have already passed an extensive test suite, but it is more likely to hit an undiscovered bug compared to running a released version of ZFS on Linux.
Type: boolean
Default:
falseDeclared by:
boot.zfs.devNodes¶
Name of directory from which to import ZFS devices.
This should be a path under /dev containing stable names for all devices needed, as import may fail if device nodes are renamed concurrently with a device failing.
Type: path
Default:
"/dev/disk/by-id"Example:
"/dev/disk/by-id"Declared by:
boot.zfs.extraPools¶
Name or GUID of extra ZFS pools that you wish to import during boot.
Usually this is not necessary. Instead, you should set the mountpoint property of ZFS filesystems to
legacyand add the ZFS filesystems to NixOS’s option, which makes NixOS automatically import the associated pool.However, in some cases (e.g. if you have many filesystems) it may be preferable to exclusively use ZFS commands to manage filesystems. If so, since NixOS/systemd will not be managing those filesystems, you will need to specify the ZFS pool here so that NixOS automatically imports it on every boot.
Type: list of strings
Default: ``[
]``
Example:
[ "tank" "data" ]Declared by:
boot.zfs.forceImportAll¶
Forcibly import all ZFS pool(s).
This is enabled by default for backwards compatibility purposes, but it is highly recommended to disable this option, as it bypasses some of the safeguards ZFS uses to protect your ZFS pools.
If you set this option to
falseand NixOS subsequently fails to import your non-root ZFS pool(s), you should manually import each pool with “zpool import -f <pool-name>”, and then reboot. You should only need to do this once.Type: boolean
Default:
trueDeclared by:
boot.zfs.forceImportRoot¶
Forcibly import the ZFS root pool(s) during early boot.
This is enabled by default for backwards compatibility purposes, but it is highly recommended to disable this option, as it bypasses some of the safeguards ZFS uses to protect your ZFS pools.
If you set this option to
falseand NixOS subsequently fails to boot because it cannot import the root pool, you should boot with the``zfs_force=1`` option as a kernel parameter (e.g. by manually editing the kernel params in grub during boot). You should only need to do this once.Type: boolean
Default:
trueDeclared by:
boot.zfs.requestEncryptionCredentials¶
Request encryption keys or passwords for all encrypted datasets on import. For root pools the encryption key can be supplied via both an interactive prompt (keylocation=prompt) and from a file (keylocation=file://). Note that for data pools the encryption key can be only loaded from a file and not via interactive prompt since the import is processed in a background systemd service.
Type: boolean
Default:
trueDeclared by:
console.packages¶
List of additional packages that provide console fonts, keymaps and other resources for virtual consoles use.
Type: list of packages
Default:
"with pkgs.kbdKeymaps; [ dvp neo ]"Declared by:
console.colors¶
The 16 colors palette used by the virtual consoles. Leave empty to use the default colors. Colors must be in hexadecimal format and listed in order from color 0 to color 15.
Type: list of strings
Default: ``[
]``
Example:
[ "002b36" "dc322f" "859900" "b58900" "268bd2" "d33682" "2aa198" "eee8d5" "002b36" "cb4b16" "586e75" "657b83" "839496" "6c71c4" "93a1a1" "fdf6e3" ]Declared by:
console.earlySetup¶
Enable setting virtual console options as early as possible (in initrd).
Type: boolean
Default:
falseDeclared by:
console.extraTTYs¶
TTY (virtual console) devices, in addition to the consoles on which mingetty and syslogd run, that must be initialised. Only useful if you have some program that you want to run on some fixed console. For example, the NixOS installation CD opens the manual in a web browser on console 7, so it sets to
["tty7"].Type: list of strings
Default: ``[
]``
Example:
[ "tty8" "tty9" ]Declared by:
console.font¶
The font used for the virtual consoles. Leave empty to use whatever the setfont program considers the default font.
Type: string
Default:
"Lat2-Terminus16"Example:
"LatArCyrHeb-16"Declared by:
console.keyMap¶
The keyboard mapping table for the virtual consoles.
Type: string or path
Default:
"us"Example:
"fr"Declared by:
console.useXkbConfig¶
If set, configure the virtual console keymap from the xserver keyboard settings.
Type: boolean
Default:
falseDeclared by:
containers¶
A set of NixOS system configurations to be run as lightweight containers. Each container appears as a service``container-*name*`` on the host system, allowing it to be started and stopped via:command:systemctl.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ webserver = { path = "/nix/var/nix/profiles/webserver"; }; database = { config = { config, pkgs, ... }: { services.postgresql.enable = true; services.postgresql.package = pkgs.postgresql_9_6; system.stateVersion = "17.03"; }; }; }Declared by:
containers.<name>.enableTun¶
Allows the container to create and setup tunnel interfaces by granting the
NET_ADMINcapability and enabling access to/dev/net/tun.Type: boolean
Default:
falseDeclared by:
containers.<name>.additionalCapabilities¶
Grant additional capabilities to the container. See the capabilities(7) and systemd-nspawn(1) man pages for more information.
Type: list of strings
Default: ``[
]``
Example:
[ "CAP_NET_ADMIN" "CAP_MKNOD" ]Declared by:
containers.<name>.allowedDevices¶
containers.<name>.allowedDevices.*.modifier¶
Device node access modifier. Takes a combination``r`` (read),
w(write), and``m`` (mknod). See the``systemd.resource-control(5)`` man page for more information.Type: string
Example:
"rw"Declared by:
containers.<name>.allowedDevices.*.node¶
Path to device node
Type: string
Example:
"/dev/net/tun"Declared by:
containers.<name>.autoStart¶
Whether the container is automatically started at boot-time.
Type: boolean
Default:
falseDeclared by:
containers.<name>.bindMounts¶
An extra list of directories that is bound to the container.
Type: list or attribute set of submodules
Default: ``{
}``
Example:
{ /home = { hostPath = "/home/alice"; isReadOnly = false; } ; }Declared by:
containers.<name>.bindMounts.<name?>.hostPath¶
Location of the host path to be mounted.
Type: null or string
Default:
nullExample:
"/home/alice"Declared by:
containers.<name>.bindMounts.<name?>.isReadOnly¶
Determine whether the mounted path will be accessed in read-only mode.
Type: boolean
Default:
trueDeclared by:
containers.<name>.bindMounts.<name?>.mountPoint¶
Mount point on the container file system.
Type: string
Example:
"/mnt/usb"Declared by:
containers.<name>.config¶
A specification of the desired configuration of this container, as a NixOS module.
Type: Toplevel NixOS config
Declared by:
containers.<name>.ephemeral¶
Runs container in ephemeral mode with the empty root filesystem at boot. This way container will be bootstrapped from scratch on each boot and will be cleaned up on shutdown leaving no traces behind. Useful for completely stateless, reproducible containers.
Note that this option might require to do some adjustments to the container configuration, e.g. you might want to set``systemd.network.networks.$interface.dhcpConfig.ClientIdentifier`` to “mac” if you use
macvlansoption. This way dhcp client identifier will be stable between the container restarts.Note that the container journal will not be linked to the host if this option is enabled.
Type: boolean
Default:
falseDeclared by:
containers.<name>.extraFlags¶
Extra flags passed to the systemd-nspawn command. See systemd-nspawn(1) for details.
Type: list of strings
Default: ``[
]``
Example:
[ "--drop-capability=CAP_SYS_CHROOT" ]Declared by:
containers.<name>.extraVeths¶
Extra veth-pairs to be created for the container
Type: attribute set of submodules
Default: ``{
}``
Declared by:
containers.<name>.extraVeths.<name>.forwardPorts¶
List of forwarded ports from host to container. Each forwarded port is specified by protocol, hostPort and containerPort. By default, protocol is tcp and hostPort and containerPort are assumed to be the same if containerPort is not explicitly given.
Type: list of submodules
Default: ``[
]``
Example: ``[
{ containerPort = 80; hostPort = 8080; protocol = “tcp”; }
]``
Declared by:
containers.<name>.extraVeths.<name>.forwardPorts.*.containerPort¶
Target port of container
Type: null or signed integer
Default:
nullDeclared by:
containers.<name>.extraVeths.<name>.forwardPorts.*.hostPort¶
Source port of the external interface on host
Type: signed integer
Declared by:
containers.<name>.extraVeths.<name>.forwardPorts.*.protocol¶
The protocol specifier for port forwarding between host and container
Type: string
Default:
"tcp"Declared by:
containers.<name>.extraVeths.<name>.hostAddress¶
The IPv4 address assigned to the host interface. (Not used when hostBridge is set.)
Type: null or string
Default:
nullExample:
"10.231.136.1"Declared by:
containers.<name>.extraVeths.<name>.hostAddress6¶
The IPv6 address assigned to the host interface. (Not used when hostBridge is set.)
Type: null or string
Default:
nullExample:
"fc00::1"Declared by:
containers.<name>.extraVeths.<name>.hostBridge¶
Put the host-side of the veth-pair into the named bridge. Only one of hostAddress* or hostBridge can be given.
Type: null or string
Default:
nullExample:
"br0"Declared by:
containers.<name>.extraVeths.<name>.localAddress¶
The IPv4 address assigned to the interface in the container. If a hostBridge is used, this should be given with netmask to access the whole network. Otherwise the default netmask is /32 and routing is set up from localAddress to hostAddress and back.
Type: null or string
Default:
nullExample:
"10.231.136.2"Declared by:
containers.<name>.extraVeths.<name>.localAddress6¶
The IPv6 address assigned to the interface in the container. If a hostBridge is used, this should be given with netmask to access the whole network. Otherwise the default netmask is /128 and routing is set up from localAddress6 to hostAddress6 and back.
Type: null or string
Default:
nullExample:
"fc00::2"Declared by:
containers.<name>.forwardPorts¶
List of forwarded ports from host to container. Each forwarded port is specified by protocol, hostPort and containerPort. By default, protocol is tcp and hostPort and containerPort are assumed to be the same if containerPort is not explicitly given.
Type: list of submodules
Default: ``[
]``
Example: ``[
{ containerPort = 80; hostPort = 8080; protocol = “tcp”; }
]``
Declared by:
containers.<name>.forwardPorts.*.containerPort¶
Target port of container
Type: null or signed integer
Default:
nullDeclared by:
containers.<name>.forwardPorts.*.hostPort¶
Source port of the external interface on host
Type: signed integer
Declared by:
containers.<name>.forwardPorts.*.protocol¶
The protocol specifier for port forwarding between host and container
Type: string
Default:
"tcp"Declared by:
containers.<name>.hostAddress¶
The IPv4 address assigned to the host interface. (Not used when hostBridge is set.)
Type: null or string
Default:
nullExample:
"10.231.136.1"Declared by:
containers.<name>.hostAddress6¶
The IPv6 address assigned to the host interface. (Not used when hostBridge is set.)
Type: null or string
Default:
nullExample:
"fc00::1"Declared by:
containers.<name>.hostBridge¶
Put the host-side of the veth-pair into the named bridge. Only one of hostAddress* or hostBridge can be given.
Type: null or string
Default:
nullExample:
"br0"Declared by:
containers.<name>.interfaces¶
The list of interfaces to be moved into the container.
Type: list of strings
Default: ``[
]``
Example:
[ "eth1" "eth2" ]Declared by:
containers.<name>.localAddress¶
The IPv4 address assigned to the interface in the container. If a hostBridge is used, this should be given with netmask to access the whole network. Otherwise the default netmask is /32 and routing is set up from localAddress to hostAddress and back.
Type: null or string
Default:
nullExample:
"10.231.136.2"Declared by:
containers.<name>.localAddress6¶
The IPv6 address assigned to the interface in the container. If a hostBridge is used, this should be given with netmask to access the whole network. Otherwise the default netmask is /128 and routing is set up from localAddress6 to hostAddress6 and back.
Type: null or string
Default:
nullExample:
"fc00::2"Declared by:
containers.<name>.macvlans¶
The list of host interfaces from which macvlans will be created. For each interface specified, a macvlan interface will be created and moved to the container.
Type: list of strings
Default: ``[
]``
Example:
[ "eth1" "eth2" ]Declared by:
containers.<name>.path¶
As an alternative to specifying, you can specify the path to the evaluated NixOS system configuration, typically a symlink to a system profile.
Type: path
Example:
"/nix/var/nix/profiles/containers/webserver"Declared by:
containers.<name>.privateNetwork¶
Whether to give the container its own private virtual Ethernet interface. The interface is called``eth0``, and is hooked up to the interface``ve-*container-name*`` on the host. If this option is not set, then the container shares the network interfaces of the host, and can bind to any port on any interface.
Type: boolean
Default:
falseDeclared by:
containers.<name>.timeoutStartSec¶
Time for the container to start. In case of a timeout, the container processes get killed. See systemd.time7 for more information about the format.
Type: string
Default:
"1min"Declared by:
containers.<name>.tmpfs¶
Mounts a set of tmpfs file systems into the container. Multiple paths can be specified. Valid items must conform to the –tmpfs argument of systemd-nspawn. See systemd-nspawn(1) for details.
Type: list of strings
Default: ``[
]``
Example:
[ "/var" ]Declared by:
docker-containers¶
Docker containers to run as systemd services.
Type: attribute set of submodules
Default: ``{
}``
Declared by:
docker-containers.<name>.autoStart¶
When enabled, the container is automatically started on boot. If this option is set to false, the container has to be started on-demand via its service.
Type: boolean
Default:
trueDeclared by:
docker-containers.<name>.cmd¶
Commandline arguments to pass to the image’s entrypoint.
Type: list of strings
Default: ``[
]``
Example:
["--port=9000"]Declared by:
docker-containers.<name>.dependsOn¶
Define which other containers this one depends on. They will be added to both After and Requires for the unit.
Use the same name as the attribute under
services.docker-containers.Type: list of strings
Default: ``[
]``
Example:
services.docker-containers = { node1 = {}; node2 = { dependsOn = [ "node1" ]; } }Declared by:
docker-containers.<name>.entrypoint¶
Override the default entrypoint of the image.
Type: null or string
Default:
nullExample:
"/bin/my-app"Declared by:
docker-containers.<name>.environment¶
Environment variables to set for this container.
Type: attribute set of strings
Default: ``{
}``
Example:
{ DATABASE_HOST = "db.example.com"; DATABASE_PORT = "3306"; }Declared by:
docker-containers.<name>.extraDockerOptions¶
Extra options for docker run.
Type: list of strings
Default: ``[
]``
Example:
["--network=host"]Declared by:
docker-containers.<name>.image¶
Docker image to run.
Type: string
Example:
"library/hello-world"Declared by:
docker-containers.<name>.imageFile¶
Path to an image file to load instead of pulling from a registry. If defined, do not pull from registry.
You still need to set the
imageattribute, as it will be used as the image name for docker to start a container.Type: null or package
Default:
nullExample:
pkgs.dockerTools.buildDockerImage {...};Declared by:
docker-containers.<name>.log-driver¶
Logging driver for the container. The default of``”none”`` means that the container’s logs will be handled as part of the systemd unit. Setting this to``”journald”`` will result in duplicate logging, but the container’s logs will be visible to the docker logs command.
For more details and a full list of logging drivers, refer to the`Docker engine documentation <https://docs.docker.com/engine/reference/run/#logging-drivers—log-driver>`_
Type: string
Default:
"none"Declared by:
docker-containers.<name>.ports¶
Network ports to publish from the container to the outer host.
Valid formats:
<ip>:<hostPort>:<containerPort><ip>::<containerPort><hostPort>:<containerPort><containerPort>Both
hostPortand``containerPort`` can be specified as a range of ports. When specifying ranges for both, the number of container ports in the range must match the number of host ports in the range. Example:1234-1236:1234-1236/tcpWhen specifying a range for
hostPortonly, the``containerPort`` must not be a range. In this case, the container port is published somewhere within the specifiedhostPortrange. Example:1234-1236:1234/tcpRefer to the`Docker engine documentation <https://docs.docker.com/engine/reference/run/#expose-incoming-ports>`_ for full details.
Type: list of strings
Default: ``[
]``
Example:
[ "8080:9000" ]Declared by:
docker-containers.<name>.user¶
Override the username or UID (and optionally groupname or GID) used in the container.
Type: null or string
Default:
nullExample:
"nobody:nogroup"Declared by:
docker-containers.<name>.volumes¶
List of volumes to attach to this container.
Note that this is a list of
"src:dst"strings to allow forsrcto refer to``/nix/store`` paths, which would be difficult with an attribute set. There are also a variety of mount options available as a third field; please refer to the`docker engine documentation <https://docs.docker.com/engine/reference/run/#volume-shared-filesystems>`_ for details.Type: list of strings
Default: ``[
]``
Example:
[ "volume_name:/path/inside/container" "/path/on/host:/path/inside/container" ]Declared by:
docker-containers.<name>.workdir¶
Override the default working directory for the container.
Type: null or string
Default:
nullExample:
"/var/lib/hello_world"Declared by:
documentation.enable¶
Whether to install documentation of packages from into the generated system path.
See “Multiple-output packages” chapter in the nixpkgs manual for more info.
Type: boolean
Default:
trueDeclared by:
documentation.dev.enable¶
Whether to install documentation targeted at developers.
- This includes man pages targeted at developers if is set (this also includes “devman” outputs).
- This includes info pages targeted at developers if is set (this also includes “devinfo” outputs).
- This includes other pages targeted at developers if is set (this also includes “devdoc” outputs).
Type: boolean
Default:
falseDeclared by:
documentation.doc.enable¶
Whether to install documentation distributed in packages’
/share/doc. Usually plain text and/or HTML. This also includes “doc” outputs.Type: boolean
Default:
trueDeclared by:
documentation.info.enable¶
Whether to install info pages and the info command. This also includes “info” outputs.
Type: boolean
Default:
trueDeclared by:
documentation.man.enable¶
Whether to install manual pages and the man command. This also includes “man” outputs.
Type: boolean
Default:
trueDeclared by:
documentation.nixos.enable¶
Whether to install NixOS’s own documentation.
- This includes man pages like configuration.nix5 if is set.
- This includes the HTML manual and the nixos-help command if is set.
Type: boolean
Default:
trueDeclared by:
documentation.nixos.includeAllModules¶
Whether the generated NixOS’s documentation should include documentation for all the options from all the NixOS modules included in the current``configuration.nix``. Disabling this will make the manual generator to ignore options defined outside of
baseModules.Type: boolean
Default:
falseDeclared by:
dysnomia.enable¶
Whether to enable Dysnomia
Type: boolean
Default:
falseDeclared by:
dysnomia.enableAuthentication¶
Whether to publish privacy-sensitive authentication credentials
Type: boolean
Default:
falseDeclared by:
dysnomia.package¶
dysnomia.components¶
An atttribute set in which each key represents a container and each value an attribute set in which each key represents a component and each value a derivation constructing its initial state
Type: unspecified
Default: ``{
}``
Declared by:
dysnomia.containers¶
An attribute set in which each key represents a container and each value an attribute set providing its configuration properties
Type: unspecified
Default: ``{
}``
Declared by:
dysnomia.extraContainerPaths¶
A list of paths containing additional container configurations that are added to the search folders
Type: unspecified
Default: ``[
]``
Declared by:
dysnomia.extraContainerProperties¶
An attribute set providing additional container settings in addition to the default properties
Type: unspecified
Default: ``{
}``
Declared by:
dysnomia.extraModulePaths¶
A list of paths containing additional modules that are added to the search folders
Type: unspecified
Default: ``[
]``
Declared by:
dysnomia.properties¶
An attribute set in which each attribute represents a machine property. Optionally, these values can be shell substitutions.
Type: unspecified
Default: ``{
}``
Declared by:
environment.enableDebugInfo¶
Some NixOS packages provide debug symbols. However, these are not included in the system closure by default to save disk space. Enabling this option causes the debug symbols to appear in
/run/current-system/sw/lib/debug/.build-id, where tools such as gdb can find them. If you need debug symbols for a package that doesn’t provide them by default, you can enable them as follows:nixpkgs.config.packageOverrides = pkgs: { hello = pkgs.hello.overrideAttrs (oldAttrs: { separateDebugInfo = true; }); };Type: boolean
Default:
falseDeclared by:
environment.checkConfigurationOptions¶
environment.etc¶
Set of files that have to be linked in
/etc.Type: list or attribute set of submodules
Default: ``{
}``
Example:
{ example-configuration-file = { source = "/nix/store/.../etc/dir/file.conf.example"; mode = "0440"; }; "default/useradd".text = "GROUP=100 ..."; }Declared by:
environment.etc.<name?>.enable¶
Whether this /etc file should be generated. This option allows specific /etc files to be disabled.
Type: boolean
Default:
trueDeclared by:
environment.etc.<name?>.gid¶
GID of created file. Only takes affect when the file is copied (that is, the mode is not ‘symlink’).
Type: signed integer
Default:
0Declared by:
environment.etc.<name?>.group¶
Group name of created file. Only takes affect when the file is copied (that is, the mode is not ‘symlink’). Changing this option takes precedence over
gid.Type: string
Default:
"+0"Declared by:
environment.etc.<name?>.mode¶
If set to something else than
symlink, the file is copied instead of symlinked, with the given file mode.Type: string
Default:
"symlink"Example:
"0600"Declared by:
environment.etc.<name?>.source¶
environment.etc.<name?>.target¶
Name of symlink (relative to:file:/etc). Defaults to the attribute name.
Type: string
Declared by:
environment.etc.<name?>.text¶
Text of the file.
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
environment.etc.<name?>.uid¶
UID of created file. Only takes affect when the file is copied (that is, the mode is not ‘symlink’).
Type: signed integer
Default:
0Declared by:
environment.etc.<name?>.user¶
User name of created file. Only takes affect when the file is copied (that is, the mode is not ‘symlink’). Changing this option takes precedence over
uid.Type: string
Default:
"+0"Declared by:
environment.extraInit¶
Shell script code called during global environment initialisation after all variables and profileVariables have been set. This code is assumed to be shell-independent, which means you should stick to pure sh without sh word split.
Type: strings concatenated with “\n”
Default:
""Declared by:
environment.extraOutputsToInstall¶
List of additional package outputs to be symlinked into
/run/current-system/sw.Type: list of strings
Default: ``[
]``
Example:
[ "doc" "info" "devdoc" ]Declared by:
environment.extraSetup¶
Shell fragments to be run after the system environment has been created. This should only be used for things that need to modify the internals of the environment, e.g. generating MIME caches. The environment being built can be accessed at $out.
Type: strings concatenated with “\n”
Default:
""Declared by:
environment.freetds¶
Configure freetds database entries. Each attribute denotes a section within freetds.conf, and the value (a string) is the config content for that section. When at least one entry is configured the global environment variables FREETDSCONF, FREETDS and SYBASE will be configured to allow the programs that use freetds to find the library and config.
Type: attribute set of strings
Default: ``{
}``
Example:
{ MYDATABASE = '' host = 10.0.2.100 port = 1433 tds version = 7.2 ''; }Declared by:
environment.gnome3.excludePackages¶
Which packages gnome should exclude from the default environment
Type: list of packages
Default: ``[
]``
Example:
[ pkgs.gnome3.totem ]Declared by:
environment.homeBinInPath¶
Include ~/bin/ in $PATH.
Type: boolean
Default:
falseDeclared by:
environment.interactiveShellInit¶
Shell script code called during interactive shell initialisation. This code is assumed to be shell-independent, which means you should stick to pure sh without sh word split.
Type: strings concatenated with “\n”
Default:
""Declared by:
environment.loginShellInit¶
Shell script code called during login shell initialisation. This code is assumed to be shell-independent, which means you should stick to pure sh without sh word split.
Type: strings concatenated with “\n”
Default:
""Declared by:
environment.lxqt.excludePackages¶
Which LXQt packages to exclude from the default environment
Type: list of packages
Default: ``[
]``
Example:
[ pkgs.lxqt.qterminal ]Declared by:
environment.mate.excludePackages¶
Which MATE packages to exclude from the default environment
Type: list of packages
Default: ``[
]``
Example:
[ pkgs.mate.mate-terminal pkgs.mate.pluma ]Declared by:
environment.memoryAllocator.provider¶
The system-wide memory allocator.
Briefly, the system-wide memory allocator providers are:
libc: the standard allocator provided by libcgraphene-hardened: An allocator designed to mitigate memory corruption attacks, such as those caused by use-after-free bugs.jemalloc: A general purpose allocator that emphasizes fragmentation avoidance and scalable concurrency support.scudo: A user-mode allocator based on LLVM Sanitizer’s CombinedAllocator, which aims at providing additional mitigations against heap based vulnerabilities, while maintaining good performance.Warning
Selecting an alternative allocator (i.e., anything other than``libc``) may result in instability, data loss, and/or service failure.
Type: one of “libc”, “graphene-hardened”, “jemalloc”, “scudo”
Default:
"libc"Declared by:
environment.noXlibs¶
Switch off the options in the default configuration that require X11 libraries. This includes client-side font configuration and SSH forwarding of X11 authentication in. Thus, you probably do not want to enable this option if you want to run X11 programs on this machine via SSH.
Type: boolean
Default:
falseDeclared by:
environment.pantheon.excludePackages¶
Which packages pantheon should exclude from the default environment
Type: list of packages
Default: ``[
]``
Example:
[ pkgs.pantheon.elementary-camera ]Declared by:
environment.pathsToLink¶
List of directories to be symlinked in
/run/current-system/sw.Type: list of strings
Default: ``[
]``
Example:
[ "/" ]Declared by:
environment.profileRelativeEnvVars¶
Attribute set of environment variable. Each attribute maps to a list of relative paths. Each relative path is appended to the each profile of to form the content of the corresponding environment variable.
Type: attribute set of list of stringss
Example:
{ MANPATH = [ "/man" "/share/man" ] ; PATH = [ "/bin" ] ; }Declared by:
environment.profileRelativeSessionVariables¶
Attribute set of environment variable used in the global environment. These variables will be set by PAM early in the login process.
Variable substitution is available as described inpam_env.conf5.
Each attribute maps to a list of relative paths. Each relative path is appended to the each profile of to form the content of the corresponding environment variable.
Also, these variables are merged into:ref:opt-environment.profileRelativeEnvVars and it is therefore not possible to use PAM style variables such as@{HOME}.
Type: attribute set of list of stringss
Example:
{ MANPATH = [ "/man" "/share/man" ] ; PATH = [ "/bin" ] ; }Declared by:
environment.profiles¶
A list of profiles used to setup the global environment.
Type: list of strings
Default: ``[
]``
Declared by:
environment.sessionVariables¶
A set of environment variables used in the global environment. These variables will be set by PAM early in the login process.
The value of each session variable can be either a string or a list of strings. The latter is concatenated, interspersed with colon characters.
Note, due to limitations in the PAM format values may not contain the
"character.Also, these variables are merged into:ref:opt-environment.variables and it is therefore not possible to use PAM style variables such as@{HOME}.
Type: attribute set of string or list of stringss
Default: ``{
}``
Declared by:
environment.shellAliases¶
An attribute set that maps aliases (the top level attribute names in this option) to command strings or directly to build outputs. The aliases are added to all users’ shells. Aliases mapped to null are ignored.
Type: attribute set of null or string or paths
Example:
{ l = null; ll = "ls -l"; }Declared by:
environment.shellInit¶
Shell script code called during shell initialisation. This code is assumed to be shell-independent, which means you should stick to pure sh without sh word split.
Type: strings concatenated with “\n”
Default:
""Declared by:
environment.shells¶
A list of permissible login shells for user accounts. No need to mention
/bin/shhere, it is placed into this list implicitly.Type: list of package or paths
Default: ``[
]``
Example:
[ pkgs.bashInteractive pkgs.zsh ]Declared by:
environment.systemPackages¶
The set of packages that appear in /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,:file:/nix/var/nix/profiles/default.
Type: list of packages
Default: ``[
]``
Example:
[ pkgs.firefox pkgs.thunderbird ]Declared by:
environment.unixODBCDrivers¶
Specifies Unix ODBC drivers to be registered in:file:/etc/odbcinst.ini. You may also want to add
pkgs.unixODBCto the system path to get a command line client to connect to ODBC databases.Type: list of packages
Default: ``[
]``
Example:
with pkgs.unixODBCDrivers; [ sqlite psql ]Declared by:
environment.variables¶
A set of environment variables used in the global environment. These variables will be set on shell initialisation (e.g. in /etc/profile). The value of each variable can be either a string or a list of strings. The latter is concatenated, interspersed with colon characters.
Type: attribute set of string or list of stringss
Default: ``{
}``
Example:
{ EDITOR = "nvim"; VISUAL = "nvim"; }Declared 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:command:mount; defaults to``”auto”), and ``options(the mount options passed to mount using the 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).Type: list or attribute set of submodules
Default: ``{
}``
Example:
{ "/".device = "/dev/hda1"; "/data" = { device = "/dev/hda2"; fsType = "ext3"; options = [ "data=journal" ]; }; "/bigdisk".label = "bigdisk"; }Declared by:
fileSystems.<name?>.autoFormat¶
If the device does not currently contain a filesystem (as determined by blkid, then automatically format it with the filesystem type specified in. Use with caution.
Type: boolean
Default:
falseDeclared by:
fileSystems.<name?>.autoResize¶
If set, the filesystem is grown to its maximum size before being mounted. (This is typically the size of the containing partition.) This is currently only supported for ext2/3/4 filesystems that are mounted during early boot.
Type: boolean
Default:
falseDeclared by:
fileSystems.<name?>.device¶
Location of the device.
Type: null or string (with check: non-empty)
Default:
nullExample:
"/dev/sda"Declared by:
fileSystems.<name?>.encrypted.enable¶
The block device is backed by an encrypted one, adds this device as a initrd luks entry.
Type: boolean
Default:
falseDeclared by:
fileSystems.<name?>.encrypted.blkDev¶
Location of the backing encrypted device.
Type: null or string
Default:
nullExample:
"/dev/sda1"Declared by:
fileSystems.<name?>.encrypted.keyFile¶
File system location of keyfile. This unlocks the drive after the root has been mounted to
/mnt-root.Type: null or string
Default:
nullExample:
"/mnt-root/root/.swapkey"Declared by:
fileSystems.<name?>.encrypted.label¶
Label of the unlocked encrypted device. Set
fileSystems.<name?>.deviceto/dev/mapper/<label>to mount the unlocked device.Type: null or string
Default:
nullExample:
"rootfs"Declared by:
fileSystems.<name?>.formatOptions¶
If option is set specifies extra options passed to mkfs.
Type: string
Default:
""Declared by:
fileSystems.<name?>.fsType¶
Type of the file system.
Type: string (with check: non-empty)
Default:
"auto"Example:
"ext3"Declared by:
fileSystems.<name?>.label¶
Label of the device (if any).
Type: null or string (with check: non-empty)
Default:
nullExample:
"root-partition"Declared by:
fileSystems.<name?>.mountPoint¶
Location of the mounted the file system.
Type: string (with check: non-empty)
Example:
"/mnt/usb"Declared by:
fileSystems.<name?>.neededForBoot¶
If set, this file system will be mounted in the initial ramdisk. By default, this applies to the root file system and to the file system containing:file:/nix/store.
Type: boolean
Default:
falseDeclared by:
fileSystems.<name?>.noCheck¶
Disable running fsck on this filesystem.
Type: boolean
Default:
falseDeclared by:
fileSystems.<name?>.options¶
Options used to mount the file system.
Type: list of string (with check: non-empty)s
Default:
[ "defaults" ]Example:
[ "data=journal" ]Declared by:
fonts.enableDefaultFonts¶
Enable a basic set of fonts providing several font styles and families and reasonable coverage of Unicode.
Type: boolean
Default:
falseDeclared by:
fonts.enableFontDir¶
Whether to create a directory with links to all fonts in:file:/run/current-system/sw/share/X11-fonts.
Type: unspecified
Default:
falseDeclared by:
fonts.enableGhostscriptFonts¶
Whether 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.
Type: unspecified
Default:
falseDeclared by:
fonts.fontconfig.enable¶
If enabled, a Fontconfig configuration file will be built pointing to a set of default fonts. If you don’t care about running X11 applications or any other program that uses Fontconfig, you can turn this option off and prevent a dependency on all those fonts.
Type: boolean
Default:
trueDeclared by:
fonts.fontconfig.allowBitmaps¶
Allow bitmap fonts. Set to
falseto ban all bitmap fonts.Type: boolean
Default:
trueDeclared by:
fonts.fontconfig.allowType1¶
Allow Type-1 fonts. Default is
falsebecause of poor rendering.Type: boolean
Default:
falseDeclared by:
fonts.fontconfig.antialias¶
Enable font antialiasing. At high resolution (> 200 DPI), antialiasing has no visible effect; users of such displays may want to disable this option.
Type: boolean
Default:
trueDeclared by:
fonts.fontconfig.cache32Bit¶
Generate system fonts cache for 32-bit applications.
Type: boolean
Default:
falseDeclared by:
fonts.fontconfig.defaultFonts.emoji¶
System-wide default emoji font(s). Multiple fonts may be listed in case a font does not support all emoji.
Note that fontconfig matches color emoji fonts preferentially, so if you want to use a black and white font while having a color font installed (eg. Noto Color Emoji installed alongside Noto Emoji), fontconfig will still choose the color font even when it is later in the list.
Type: list of strings
Default:
[ "Noto Color Emoji" ]Declared by:
fonts.fontconfig.defaultFonts.monospace¶
System-wide default monospace font(s). Multiple fonts may be listed in case multiple languages must be supported.
Type: list of strings
Default:
[ "DejaVu Sans Mono" ]Declared by:
fonts.fontconfig.defaultFonts.sansSerif¶
System-wide default sans serif font(s). Multiple fonts may be listed in case multiple languages must be supported.
Type: list of strings
Default:
[ "DejaVu Sans" ]Declared by:
fonts.fontconfig.defaultFonts.serif¶
System-wide default serif font(s). Multiple fonts may be listed in case multiple languages must be supported.
Type: list of strings
Default:
[ "DejaVu Serif" ]Declared by:
fonts.fontconfig.dpi¶
Force DPI setting. Setting to
0disables DPI forcing; the DPI detected for the display will be used.Type: signed integer
Default:
0Declared by:
fonts.fontconfig.hinting.enable¶
Enable font hinting. Hinting aligns glyphs to pixel boundaries to improve rendering sharpness at low resolution. At high resolution (> 200 dpi) hinting will do nothing (at best); users of such displays may want to disable this option.
Type: boolean
Default:
trueDeclared by:
fonts.fontconfig.hinting.autohint¶
Enable the autohinter in place of the default interpreter. The results are usually lower quality than correctly-hinted fonts, but better than unhinted fonts.
Type: boolean
Default:
falseDeclared by:
fonts.fontconfig.includeUserConf¶
Include the user configuration from:file:~/.config/fontconfig/fonts.conf or:file:~/.config/fontconfig/conf.d.
Type: boolean
Default:
trueDeclared by:
fonts.fontconfig.localConf¶
System-wide customization file contents, has higher priority than``defaultFonts`` settings.
Type: strings concatenated with “\n”
Default:
""Declared by:
fonts.fontconfig.penultimate.enable¶
Enable fontconfig-penultimate settings to supplement the NixOS defaults by providing per-font rendering defaults and metric aliases.
Type: boolean
Default:
falseDeclared by:
fonts.fontconfig.subpixel.lcdfilter¶
FreeType LCD filter. At high resolution (> 200 DPI), LCD filtering has no visible effect; users of such displays may want to select``none``.
Type: one of “none”, “default”, “light”, “legacy”
Default:
"default"Declared by:
fonts.fontconfig.subpixel.rgba¶
Subpixel order. The overwhelming majority of displays are``rgb`` in their normal orientation. Select``vrgb`` for mounting such a display 90 degrees clockwise from its normal orientation or
vbgrfor mounting 90 degrees counter-clockwise. Select``bgr`` in the unlikely event of mounting 180 degrees from the normal orientation. Reverse these directions in the improbable event that the display’s native subpixel order is``bgr``.Type: one of “rgb”, “bgr”, “vrgb”, “vbgr”, “none”
Default:
"rgb"Declared by:
fonts.fontconfig.useEmbeddedBitmaps¶
Use embedded bitmaps in fonts like Calibri.
Type: boolean
Default:
falseDeclared by:
fonts.fonts¶
List of primary font paths.
Type: list of paths
Default: ``[
]``
Example:
[ pkgs.dejavu_fonts ]Declared by:
gnu¶
When enabled, GNU software is chosen by default whenever a there is a choice between GNU and non-GNU software (e.g., GNU lsh vs. OpenSSH).
Type: boolean
Default:
falseDeclared by:
gtk.iconCache.enable¶
Whether to build icon theme caches for GTK applications.
Type: boolean
Default:
falseDeclared by:
hardware.enableAllFirmware¶
Turn on this option if you want to enable all the firmware.
Type: boolean
Default:
falseDeclared by:
hardware.enableRedistributableFirmware¶
Turn on this option if you want to enable all the firmware with a license allowing redistribution. (i.e. free firmware and
firmware-linux-nonfree)Type: boolean
Default:
falseDeclared by:
hardware.acpilight.enable¶
Enable acpilight. This will allow brightness control via xbacklight from users in the video group
Type: boolean
Default:
falseDeclared by:
hardware.bladeRF.enable¶
Enables udev rules for BladeRF devices. By default grants access to users in the “bladerf” group. You may want to install the libbladeRF package.
Type: boolean
Default:
falseDeclared by:
hardware.bluetooth.enable¶
Whether to enable support for Bluetooth.
Type: boolean
Default:
falseExample:
trueDeclared by:
hardware.bluetooth.package¶
Which BlueZ package to use.
Note
Use the
pkgs.bluezFullpackage to enable all bluez plugins.Type: package
Default:
"pkgs.bluez"Example:
"pkgs.bluezFull"Declared by:
hardware.bluetooth.config¶
Set configuration for system-wide bluetooth (/etc/bluetooth/main.conf).
Type: attribute set of attribute set of boolean or signed integer or stringss
Example:
{ General = { ControllerMode = "bredr"; } ; }Declared by:
hardware.bluetooth.extraConfig¶
Set additional configuration for system-wide bluetooth (/etc/bluetooth/main.conf).
Type: null or strings concatenated with “\n”
Default:
nullExample:
'' [General] ControllerMode = bredr ''Declared by:
hardware.bluetooth.powerOnBoot¶
Whether to power up the default Bluetooth controller on boot.
Type: boolean
Default:
trueDeclared by:
hardware.brillo.enable¶
Whether to enable Enable brillo in userspace. This will allow brightness control from users in the video group. .
Type: boolean
Default:
falseExample:
trueDeclared by:
hardware.bumblebee.enable¶
Enable the bumblebee daemon to manage Optimus hybrid video cards. This should power off secondary GPU until its use is requested by running an application with optirun.
Type: boolean
Default:
falseDeclared by:
hardware.bumblebee.connectDisplay¶
Set to true if you intend to connect your discrete card to a monitor. This option will set up your Nvidia card for EDID discovery and to turn on the monitor signal.
Only nvidia driver is supported so far.
Type: boolean
Default:
falseDeclared by:
hardware.bumblebee.driver¶
Set driver used by bumblebeed. Supported are nouveau and nvidia.
Type: one of “nvidia”, “nouveau”
Default:
"nvidia"Declared by:
hardware.bumblebee.group¶
Group for bumblebee socket
Type: string
Default:
"wheel"Example:
"video"Declared by:
hardware.bumblebee.pmMethod¶
Set preferred power management method for unused card.
Type: one of “auto”, “bbswitch”, “switcheroo”, “none”
Default:
"auto"Declared by:
hardware.ckb-next.enable¶
Whether to enable the Corsair keyboard/mouse driver.
Type: boolean
Default:
falseExample:
trueDeclared by:
hardware.ckb-next.package¶
The package implementing the Corsair keyboard/mouse driver.
Type: package
Default:
"pkgs.ckb-next"Declared by:
hardware.ckb-next.gid¶
Limit access to the ckb daemon to a particular group.
Type: null or signed integer
Default:
nullExample:
100Declared by:
hardware.cpu.amd.updateMicrocode¶
Update the CPU microcode for AMD processors.
Type: boolean
Default:
falseDeclared by:
hardware.cpu.intel.updateMicrocode¶
Update the CPU microcode for Intel processors.
Type: boolean
Default:
falseDeclared by:
hardware.deviceTree.enable¶
Build device tree files. These are used to describe the non-discoverable hardware of a system.
Type: boolean
Default:
falseDeclared by:
hardware.deviceTree.base¶
The package containing the base device-tree (.dtb) to boot. Contains device trees bundled with the Linux kernel by default.
Type: path
Default:
"\\${config.boot.kernelPackages.kernel}/dtbs"Example:
pkgs.deviceTree_rpiDeclared by:
hardware.deviceTree.overlays¶
A path containing device tree overlays (.dtbo) to be applied to all base device-trees.
Type: list of paths
Default: ``[
]``
Example:
["${pkgs.deviceTree_rpi.overlays}/w1-gpio.dtbo"]Declared by:
hardware.digitalbitbox.enable¶
Enables udev rules for Digital Bitbox devices.
Type: boolean
Default:
falseDeclared by:
hardware.digitalbitbox.package¶
The Digital Bitbox package to use. This can be used to install a package with udev rules that differ from the defaults.
Type: package
Default:
"pkgs.digitalbitbox"Declared by:
hardware.facetimehd.enable¶
Whether to enable facetimehd kernel module.
Type: boolean
Default:
falseExample:
trueDeclared by:
hardware.fancontrol.enable¶
Whether to enable software fan control (requires fancontrol.config).
Type: boolean
Default:
falseExample:
trueDeclared by:
hardware.fancontrol.config¶
Fancontrol configuration file content. See pwmconfig8 from the lm_sensors package.
Type: strings concatenated with “\n”
Default:
nullExample:
'' # Configuration file generated by pwmconfig INTERVAL=10 DEVPATH=hwmon3=devices/virtual/thermal/thermal_zone2 hwmon4=devices/platform/f71882fg.656 DEVNAME=hwmon3=soc_dts1 hwmon4=f71869a FCTEMPS=hwmon4/device/pwm1=hwmon3/temp1_input FCFANS= hwmon4/device/pwm1=hwmon4/device/fan1_input MINTEMP=hwmon4/device/pwm1=35 MAXTEMP=hwmon4/device/pwm1=65 MINSTART=hwmon4/device/pwm1=150 MINSTOP=hwmon4/device/pwm1=0 ''Declared by:
hardware.firmware¶
List of packages 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). If multiple packages contain firmware files with the same name, the first package in the list takes precedence. Note that you must rebuild your system if you add files to any of these directories.
Type: list of packages
Default: ``[
]``
Declared by:
hardware.ksm.enable¶
Whether to enable Kernel Same-Page Merging.
Type: boolean
Default:
falseExample:
trueDeclared by:
hardware.ksm.sleep¶
How many milliseconds ksmd should sleep between scans. Setting it to
nulluses the kernel’s default time.Type: null or signed integer
Default:
nullDeclared by:
hardware.ledger.enable¶
Whether to enable udev rules for Ledger devices.
Type: boolean
Default:
falseExample:
trueDeclared by:
hardware.logitech.enable¶
Whether to enable Logitech Devices.
Type: boolean
Default:
falseExample:
trueDeclared by:
hardware.logitech.enableGraphical¶
Enable graphical support applications.
Type: boolean
Default:
falseDeclared by:
hardware.mcelog.enable¶
Enable the Machine Check Exception logger.
Type: boolean
Default:
falseDeclared by:
hardware.mwProCapture.enable¶
Whether to enable Magewell Pro Capture family kernel module.
Type: boolean
Default:
falseExample:
trueDeclared by:
hardware.nitrokey.enable¶
Enables udev rules for Nitrokey devices. By default grants access to users in the “nitrokey” group. You may want to install the nitrokey-app package, depending on your device and needs.
Type: boolean
Default:
falseDeclared by:
hardware.nitrokey.group¶
Grant access to Nitrokey devices to users in this group.
Type: string
Default:
"nitrokey"Example:
"wheel"Declared by:
hardware.nvidia.modesetting.enable¶
Enable kernel modesetting when using the NVIDIA proprietary driver.
Enabling this fixes screen tearing when using Optimus via PRIME (see. This is not enabled by default because it is not officially supported by NVIDIA and would not work with SLI.
Type: boolean
Default:
falseDeclared by:
hardware.nvidia.optimus_prime.enable¶
Enable NVIDIA Optimus support using the NVIDIA proprietary driver via PRIME. If enabled, the NVIDIA GPU will be always on and used for all rendering, while enabling output to displays attached only to the integrated Intel GPU without a multiplexer.
Note that this option only has any effect if the “nvidia” driver is specified in , and it should preferably be the only driver there.
If this is enabled, then the bus IDs of the NVIDIA and Intel GPUs have to be specified ( and).
If you enable this, you may want to also enable kernel modesetting for the NVIDIA driver () in order to prevent tearing.
Note that this configuration will only be successful when a display manager for which the option is supported is used.
Type: boolean
Default:
falseDeclared by:
hardware.nvidia.optimus_prime.allowExternalGpu¶
Configure X to allow external NVIDIA GPUs when using optimus.
Type: boolean
Default:
falseDeclared by:
hardware.nvidia.optimus_prime.intelBusId¶
Bus ID of the Intel GPU. You can find it using lspci; for example if lspci shows the Intel GPU at “00:02.0”, set this option to “PCI:0:2:0”.
Type: string
Default:
""Example:
"PCI:0:2:0"Declared by:
hardware.nvidia.optimus_prime.nvidiaBusId¶
Bus ID of the NVIDIA GPU. You can find it using lspci; for example if lspci shows the NVIDIA GPU at “01:00.0”, set this option to “PCI:1:0:0”.
Type: string
Default:
""Example:
"PCI:1:0:0"Declared by:
hardware.nvidiaOptimus.disable¶
Completely disable the NVIDIA graphics card and use the integrated graphics processor instead.
Type: boolean
Default:
falseDeclared by:
hardware.onlykey.enable¶
hardware.opengl.enable¶
Whether to enable OpenGL drivers. This is needed to enable OpenGL support in X11 systems, as well as for Wayland compositors like sway and Weston. It is enabled by default by the corresponding modules, so you do not usually have to set it yourself, only if there is no module for your wayland compositor of choice. See services.xserver.enable and programs.sway.enable.
Type: boolean
Default:
falseDeclared by:
hardware.opengl.driSupport¶
Whether to enable accelerated OpenGL rendering through the Direct Rendering Interface (DRI).
Type: boolean
Default:
trueDeclared by:
hardware.opengl.driSupport32Bit¶
On 64-bit systems, whether to support Direct Rendering for 32-bit applications (such as Wine). This is currently only supported for the
nvidiaand``ati_unfree`` drivers, as well as``Mesa``.Type: boolean
Default:
falseDeclared by:
hardware.opengl.extraPackages¶
Additional packages to add to OpenGL drivers. This can be used to add OpenCL drivers, VA-API/VDPAU drivers etc.
Type: list of packages
Default: ``[
]``
Example:
with pkgs; [ vaapiIntel libvdpau-va-gl vaapiVdpau intel-ocl ]Declared by:
hardware.opengl.extraPackages32¶
Additional packages to add to 32-bit OpenGL drivers on 64-bit systems. Used when is set. This can be used to add OpenCL drivers, VA-API/VDPAU drivers etc.
Type: list of packages
Default: ``[
]``
Example:
with pkgs.pkgsi686Linux; [ vaapiIntel libvdpau-va-gl vaapiVdpau ]Declared by:
hardware.opengl.s3tcSupport¶
Make S3TC(S3 Texture Compression) via libtxc_dxtn available to OpenGL drivers instead of the patent-free S2TC replacement.
Using this library may require a patent license depending on your location.
Type: boolean
Default:
falseDeclared by:
hardware.openrazer.enable¶
Whether to enable OpenRazer drivers and userspace daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
hardware.openrazer.devicesOffOnScreensaver¶
Turn off the devices when the systems screensaver kicks in.
Type: boolean
Default:
trueDeclared by:
hardware.openrazer.keyStatistics¶
Collects number of keypresses per hour per key used to generate a heatmap.
Type: boolean
Default:
falseDeclared by:
hardware.openrazer.mouseBatteryNotifier¶
Mouse battery notifier.
Type: boolean
Default:
trueDeclared by:
hardware.openrazer.syncEffectsEnabled¶
Set the sync effects flag to true so any assignment of effects will work across devices.
Type: boolean
Default:
trueDeclared by:
hardware.openrazer.verboseLogging¶
Whether to enable verbose logging. Logs debug messages.
Type: boolean
Default:
falseDeclared by:
hardware.parallels.enable¶
This enables Parallels Tools for Linux guests, along with provided video, mouse and other hardware drivers.
Type: boolean
Default:
falseDeclared by:
hardware.parallels.package¶
Defines which package to use for prl-tools. Override to change the version.
Type: package
Default:
"config.boot.kernelPackages.prl-tools"Example:
config.boot.kernelPackages.prl-toolsDeclared by:
hardware.pcmcia.enable¶
Enable this option to support PCMCIA card.
Type: boolean
Default:
falseDeclared by:
hardware.pcmcia.config¶
Path to the configuration file which maps the memory, IRQs and ports used by the PCMCIA hardware.
Type: unspecified
Default:
nullDeclared by:
hardware.pcmcia.firmware¶
List of firmware used to handle specific PCMCIA card.
Type: list of paths
Default: ``[
]``
Declared by:
hardware.printers.ensureDefaultPrinter¶
Ensures the named printer is the default CUPS printer / printer queue.
Type: null or printable string without spaces, # and /
Default:
nullDeclared by:
hardware.printers.ensurePrinters¶
Will regularly ensure that the given CUPS printers are configured as declared here. If a printer’s options are manually changed afterwards, they will be overwritten eventually. This option will never delete any printer, even if removed from this list. You can check existing printers with lpstat -s and remove printers with lpadmin -x <printer-name>. Printers not listed here can still be manually configured.
Type: list of submodules
Default: ``[
]``
Declared by:
hardware.printers.ensurePrinters.*.description¶
Optional human-readable description.
Type: null or string
Default:
nullExample:
"Brother HL-5140"Declared by:
hardware.printers.ensurePrinters.*.deviceUri¶
How to reach the printer.:command:lpinfo -v shows a list of supported device URIs and schemes.
Type: string
Example:
[ "ipp://printserver.local/printers/BrotherHL_Workroom" "usb://HP/DESKJET%20940C?serial=CN16E6C364BH" ]Declared by:
hardware.printers.ensurePrinters.*.location¶
Optional human-readable location.
Type: null or string
Default:
nullExample:
"Workroom"Declared by:
hardware.printers.ensurePrinters.*.model¶
Location of the ppd driver file for the printer.:command:lpinfo -m shows a list of supported models.
Type: string
Example:
gutenprint.${lib.version.majorMinor (lib.getVersion pkgs.cups)}://brother-hl-5140/expertDeclared by:
hardware.printers.ensurePrinters.*.name¶
Name of the printer / printer queue. May contain any printable characters except “/”, “#”, and space.
Type: printable string without spaces, # and /
Example:
"BrotherHL_Workroom"Declared by:
hardware.printers.ensurePrinters.*.ppdOptions¶
Sets PPD options for the printer.:command:lpoptions [-p printername] -l shows suported PPD options for the given printer.
Type: attribute set of strings
Default: ``{
}``
Example:
{ Duplex = "DuplexNoTumble"; PageSize = "A4"; }Declared by:
hardware.pulseaudio.enable¶
Whether to enable the PulseAudio sound server.
Type: boolean
Default:
falseDeclared by:
hardware.pulseaudio.package¶
The PulseAudio derivation to use. This can be used to enable features (such as JACK support, Bluetooth) via the``pulseaudioFull`` package.
Type: package
Default:
"pkgs.pulseaudio"Example:
pkgs.pulseaudioFullDeclared by:
hardware.pulseaudio.configFile¶
The path to the default configuration options the PulseAudio server should use. By default, the “default.pa” configuration from the PulseAudio distribution is used.
Type: null or path
Declared by:
hardware.pulseaudio.daemon.config¶
Config of the pulse daemon. See
man pulse-daemon.conf.Type: attribute set of unspecifieds
Default: ``{
}``
Example:
{ realtime-scheduling = "yes"; }Declared by:
hardware.pulseaudio.daemon.logLevel¶
The log level that the system-wide pulseaudio daemon should use, if activated.
Type: string
Default:
"notice"Declared by:
hardware.pulseaudio.extraClientConf¶
Extra configuration appended to pulse/client.conf file.
Type: strings concatenated with “\n”
Default:
""Declared by:
hardware.pulseaudio.extraConfig¶
Literal string to append to
configFileand the config file generated by the pulseaudio module.Type: strings concatenated with “\n”
Default:
""Declared by:
hardware.pulseaudio.extraModules¶
Extra pulseaudio modules to use. This is intended for out-of-tree pulseaudio modules like extra bluetooth codecs.
Extra modules take precedence over built-in pulseaudio modules.
Type: list of packages
Default: ``[
]``
Example:
[ pkgs.pulseaudio-modules-bt ]Declared by:
hardware.pulseaudio.support32Bit¶
Whether to include the 32-bit pulseaudio libraries in the system or not. This is only useful on 64-bit systems and currently limited to x86_64-linux.
Type: boolean
Default:
falseDeclared by:
hardware.pulseaudio.systemWide¶
If false, a PulseAudio server is launched automatically for each user that tries to use the sound system. The server runs with user privileges. If true, one system-wide PulseAudio server is launched on boot, running as the user “pulse”, and only users in the “audio” group will have access to the server. Please read the PulseAudio documentation for more details.
Don’t enable this option unless you know what you are doing.
Type: boolean
Default:
falseDeclared by:
hardware.pulseaudio.tcp.enable¶
Whether to enable tcp streaming support.
Type: boolean
Default:
falseExample:
trueDeclared by:
hardware.pulseaudio.tcp.anonymousClients.allowAll¶
Whether to enable all anonymous clients to stream to the server.
Type: boolean
Default:
falseExample:
trueDeclared by:
hardware.pulseaudio.tcp.anonymousClients.allowedIpRanges¶
A list of IP subnets that are allowed to stream to the server.
Type: list of strings
Default: ``[
]``
Example:
[ "127.0.0.1" "192.168.1.0/24" ]Declared by:
hardware.pulseaudio.zeroconf.discovery.enable¶
Whether to enable discovery of pulseaudio sinks in the local network.
Type: boolean
Default:
falseExample:
trueDeclared by:
hardware.pulseaudio.zeroconf.publish.enable¶
Whether to enable publishing the pulseaudio sink in the local network.
Type: boolean
Default:
falseExample:
trueDeclared by:
hardware.raid.HPSmartArray.enable¶
Whether to enable HP Smart Array kernel modules and CLI utility.
Type: boolean
Default:
falseExample:
trueDeclared by:
hardware.sane.enable¶
Enable support for SANE scanners.
Note
Users in the “scanner” group will gain access to the scanner, or the “lp” group if it’s also a printer.
Type: boolean
Default:
falseDeclared by:
hardware.sane.brscan4.enable¶
When enabled, will automatically register the “brscan4” sane backend and bring configuration files to their expected location.
Type: boolean
Default:
falseExample:
trueDeclared by:
hardware.sane.brscan4.netDevices¶
The list of network devices that will be registered against the brscan4 sane backend.
Type: list or attribute set of submodules
Default: ``{
}``
Example:
{ office1 = { ip = "192.168.1.2"; model = "MFC-7860DW"; } ; office2 = { model = "MFC-7860DW"; nodename = "BRW0080927AFBCE"; } ; }Declared by:
hardware.sane.brscan4.netDevices.<name?>.ip¶
The ip address of the device. If undefined, you will have to provide a nodename.
Type: null or string
Default:
nullExample:
192.168.1.2Declared by:
hardware.sane.brscan4.netDevices.<name?>.model¶
The model of the network device.
Type: string
Example:
MFC-7860DWDeclared by:
hardware.sane.brscan4.netDevices.<name?>.name¶
The friendly name you give to the network device. If undefined, the name of attribute will be used.
Type: string
Example:
office1Declared by:
hardware.sane.brscan4.netDevices.<name?>.nodename¶
The node name of the device. If undefined, you will have to provide an ip.
Type: null or string
Default:
nullExample:
BRW0080927AFBCEDeclared by:
hardware.sane.dsseries.enable¶
When enabled, will automatically register the “dsseries” SANE backend.
This supports the Brother DSmobile scanner series, including the DS-620, DS-720D, DS-820W, and DS-920DW scanners.
Type: boolean
Default:
falseExample:
trueDeclared by:
hardware.sane.extraBackends¶
Packages providing extra SANE backends to enable.
Note
The example contains the package for HP scanners.
Type: list of paths
Default: ``[
]``
Example:
[ pkgs.hplipWithPlugin ]Declared by:
hardware.sane.netConf¶
Network hosts that should be probed for remote scanners.
Type: strings concatenated with “\n”
Default:
""Example:
"192.168.0.16"Declared by:
hardware.sane.snapshot¶
Use a development snapshot of SANE scanner drivers.
Type: boolean
Default:
falseDeclared by:
hardware.sensor.iio.enable¶
Enable this option to support IIO sensors.
Type: boolean
Default:
falseDeclared by:
hardware.steam-hardware.enable¶
Enable udev rules for Steam hardware such as the Steam Controller, other supported controllers and the HTC Vive
Type: boolean
Default:
falseDeclared by:
hardware.trackpoint.enable¶
Enable sensitivity and speed configuration for trackpoints.
Type: boolean
Default:
falseDeclared by:
hardware.trackpoint.device¶
The device name of the trackpoint. You can check with xinput. Some newer devices (example x1c6) use “TPPS/2 Elan TrackPoint”.
Type: string
Default:
"TPPS/2 IBM TrackPoint"Declared by:
hardware.trackpoint.emulateWheel¶
Enable scrolling while holding the middle mouse button.
Type: boolean
Default:
falseDeclared by:
hardware.trackpoint.fakeButtons¶
Switch to “bare” PS/2 mouse support in case Trackpoint buttons are not recognized properly. This can happen for example on models like the L430, T450, T450s, on which the Trackpoint buttons are actually a part of the Synaptics touchpad.
Type: boolean
Default:
falseDeclared by:
hardware.trackpoint.sensitivity¶
Configure the trackpoint sensitivity. By default, the kernel configures 128.
Type: signed integer
Default:
128Example:
255Declared by:
hardware.trackpoint.speed¶
Configure the trackpoint speed. By default, the kernel configures 97.
Type: signed integer
Default:
97Example:
255Declared by:
hardware.tuxedo-keyboard.enable¶
Whether to enable Enables the tuxedo-keyboard driver.
To configure the driver, pass the options to the configuration. There are several parameters you can change. It’s best to check at the source code description which options are supported. You can find all the supported parameters at: ` <https://github.com/tuxedocomputers/tuxedo-keyboard#kernelparam>`_
In order to use the
customlighting with the maximumg brightness and a color of0xff0a0aone would put pass like this:boot.kernelParams = [ "tuxedo_keyboard.mode=0" "tuxedo_keyboard.brightness=255" "tuxedo_keyboard.color_left=0xff0a0a" ];.
Type: boolean
Default:
falseExample:
trueDeclared by:
hardware.u2f.enable¶
Enable U2F hardware support.
Type: boolean
Default:
falseDeclared by:
hardware.usbWwan.enable¶
Enable this option to support USB WWAN adapters.
Type: boolean
Default:
falseDeclared by:
i18n.defaultLocale¶
The default locale. It determines the language for program messages, the format for dates and times, sort order, and so on. It also determines the character set, such as UTF-8.
Type: string
Default:
"en_US.UTF-8"Example:
"nl_NL.UTF-8"Declared by:
i18n.extraLocaleSettings¶
A set of additional system-wide locale settings other than``LANG`` which can be configured with.
Type: attribute set of strings
Default: ``{
}``
Example:
{ LC_MESSAGES = "en_US.UTF-8"; LC_TIME = "de_DE.UTF-8"; }Declared by:
i18n.glibcLocales¶
Customized pkg.glibcLocales package.
Changing this option can disable handling of i18n.defaultLocale and supportedLocale.
Type: path
Default:
*(build of glibc-locales-2.30)*Example:
pkgs.glibcLocalesDeclared by:
i18n.inputMethod.enabled¶
Select the enabled input method. Input methods is a software to input symbols that are not available on standard input devices.
Input methods are specially used to input Chinese, Japanese and Korean characters.
Currently the following input methods are available in NixOS:
- ibus: The intelligent input bus, extra input engines can be added using
i18n.inputMethod.ibus.engines.- fcitx: A customizable lightweight input method, extra input engines can be added using
i18n.inputMethod.fcitx.engines.- nabi: A Korean input method based on XIM. Nabi doesn’t support Qt 5.
- uim: The universal input method, is a library with a XIM bridge. uim mainly support Chinese, Japanese and Korean.
Type: null or one of “ibus”, “fcitx”, “nabi”, “uim”
Default:
nullExample:
"fcitx"Declared by:
i18n.inputMethod.fcitx.engines¶
Enabled Fcitx engines. Available engines are:
anthy,chewing,cloudpinyin,hangul,libpinyin,m17n,mozc,rime,skk,table-extra,table-other,unikey.Type: list of packages
Default: ``[
]``
Example:
with pkgs.fcitx-engines; [ mozc hangul ]Declared by:
i18n.inputMethod.ibus.engines¶
Enabled IBus engines. Available engines are:
anthy,hangul,kkc,libpinyin,m17n,mozc,table,table-chinese,table-others,typing-booster,typing-booster-unwrapped,uniemoji.Type: list of packages
Default: ``[
]``
Example:
with pkgs.ibus-engines; [ mozc hangul ]Declared by:
i18n.inputMethod.ibus.panel¶
Replace the IBus panel with another panel.
Type: null or path
Default:
nullExample:
''${pkgs.plasma5.plasma-desktop}/lib/libexec/kimpanel-ibus-panelDeclared by:
i18n.inputMethod.uim.toolbar¶
selected UIM toolbar.
Type: one of “gtk”, “gtk3”, “gtk-systray”, “gtk3-systray”, “qt4”
Default:
"gtk"Example:
"gtk-systray"Declared by:
i18n.supportedLocales¶
List 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 ` <https://sourceware.org/git/?p=glibc.git;a=blob;f=localedata/SUPPORTED>`_.
Type: list of strings
Default:
[ "all" ]Example:
[ "en_US.UTF-8/UTF-8" "nl_NL.UTF-8/UTF-8" "nl_NL/ISO-8859-1" ]Declared by:
jobs.<name>.enable¶
If set to false, this unit will be a symlink to /dev/null. This is primarily useful to prevent specific template instances (e.g.
serial-getty@ttyS0) from being started. Note thatenable=truedoes not make a unit start by default at boot; if you want that, see``wantedBy``.Type: boolean
Default:
trueDeclared by:
jobs.<name>.after¶
If the specified units are started at the same time as this unit, delay this unit until they have started.
Type: list of strings
Default: ``[
]``
Declared by:
jobs.<name>.before¶
If the specified units are started at the same time as this unit, delay them until this unit has started.
Type: list of strings
Default: ``[
]``
Declared by:
jobs.<name>.bindsTo¶
Like ‘requires’, but in addition, if the specified units unexpectedly disappear, this unit will be stopped as well.
Type: list of strings
Default: ``[
]``
Declared by:
jobs.<name>.confinement.enable¶
If set, all the required runtime store paths for this service are bind-mounted into a
tmpfs-based chroot2.Type: boolean
Default:
falseDeclared by:
jobs.<name>.confinement.packages¶
Additional packages or strings with context to add to the closure of the chroot. By default, this includes all the packages from the, , , , and options. If you want to have all the dependencies of this systemd unit, you can use.
Note
The store paths listed in are*not* included in the closure as well as paths from other options except those listed above.
Type: list of string or packages
Default: ``[
]``
Declared by:
jobs.<name>.confinement.binSh¶
The program to make available as
/bin/shinside the chroot. If this is set tonull, no:file:/bin/sh is provided at all.This is useful for some applications, which for example use thesystem3 library function to execute commands.
Type: null or path
Default:
"config.environment.binsh"Example:
${pkgs.dash}/bin/dashDeclared by:
jobs.<name>.confinement.fullUnit¶
Whether to include the full closure of the systemd unit file into the chroot, instead of just the dependencies for the executables.
Warning
While it may be tempting to just enable this option to make things work quickly, please be aware that this might add paths to the closure of the chroot that you didn’t anticipate. It’s better to use to explicitly add additional store paths to the chroot.
Type: boolean
Default:
falseDeclared by:
jobs.<name>.confinement.mode¶
The value
full-apivfs(the default) sets up private/dev,/proc,/sysand/tmpfile systems in a separate user name space.If this is set to
chroot-only, only the file system name space is set up along with the call to chroot2.Note
This doesn’t cover network namespaces and is solely for file system level isolation.
Type: one of “full-apivfs”, “chroot-only”
Default:
"full-apivfs"Declared by:
jobs.<name>.conflicts¶
If the specified units are started, then this unit is stopped and vice versa.
Type: list of strings
Default: ``[
]``
Declared by:
jobs.<name>.description¶
Description of this unit used in systemd messages and progress indicators.
Type: string
Default:
""Declared by:
jobs.<name>.documentation¶
A list of URIs referencing documentation for this unit or its configuration.
Type: list of strings
Default: ``[
]``
Declared by:
jobs.<name>.environment¶
Environment variables passed to the service’s processes.
Type: attribute set of null or string or path or packages
Default: ``{
}``
Example:
{ LANG = "nl_NL.UTF-8"; PATH = "/foo/bar/bin"; }Declared by:
jobs.<name>.onFailure¶
A list of one or more units that are activated when this unit enters the “failed” state.
Type: list of strings
Default: ``[
]``
Declared by:
jobs.<name>.partOf¶
If the specified units are stopped or restarted, then this unit is stopped or restarted as well.
Type: list of strings
Default: ``[
]``
Declared by:
jobs.<name>.path¶
Packages added to the service’s PATH environment variable. Both the
binandsbinsubdirectories of each package are added.Type: unspecified
Default: ``[
]``
Declared by:
jobs.<name>.postStart¶
Shell commands executed after the service’s main process is started.
Type: strings concatenated with “\n”
Default:
""Declared by:
jobs.<name>.postStop¶
Shell commands executed after the service’s main process has exited.
Type: strings concatenated with “\n”
Default:
""Declared by:
jobs.<name>.preStart¶
Shell commands executed before the service’s main process is started.
Type: strings concatenated with “\n”
Default:
""Declared by:
jobs.<name>.preStop¶
Shell commands executed to stop the service.
Type: strings concatenated with “\n”
Default:
""Declared by:
jobs.<name>.reload¶
Shell commands executed when the service’s main process is reloaded.
Type: strings concatenated with “\n”
Default:
""Declared by:
jobs.<name>.reloadIfChanged¶
Whether the service should be reloaded during a NixOS configuration switch if its definition has changed. If enabled, the value of is ignored.
Type: boolean
Default:
falseDeclared by:
jobs.<name>.requiredBy¶
Units that require (i.e. depend on and need to go down with) this unit. The discussion under
wantedByapplies here as well: inverse.requiressymlinks are established.Type: list of strings
Default: ``[
]``
Declared by:
jobs.<name>.requires¶
Start the specified units when this unit is started, and stop this unit when the specified units are stopped or fail.
Type: list of strings
Default: ``[
]``
Declared by:
jobs.<name>.requisite¶
Similar to requires. However if the units listed are not started, they will not be started and the transaction will fail.
Type: list of strings
Default: ``[
]``
Declared by:
jobs.<name>.restartIfChanged¶
Whether the service should be restarted during a NixOS configuration switch if its definition has changed.
Type: boolean
Default:
trueDeclared by:
jobs.<name>.restartTriggers¶
An arbitrary list of items such as derivations. If any item in the list changes between reconfigurations, the service will be restarted.
Type: list of unspecifieds
Default: ``[
]``
Declared by:
jobs.<name>.script¶
Shell commands executed as the service’s main process.
Type: strings concatenated with “\n”
Default:
""Declared by:
jobs.<name>.scriptArgs¶
Arguments passed to the main process script.
Type: string
Default:
""Declared by:
jobs.<name>.serviceConfig¶
Each attribute in this set specifies an option in the``[Service]`` section of the unit. Seesystemd.service5 for details.
Type: attribute set of systemd options
Default: ``{
}``
Example:
{ RestartSec = 5; StartLimitInterval = 10; }Declared by:
jobs.<name>.startAt¶
Automatically start this unit at the given date/time, which must be in the format described insystemd.time7. This is equivalent to adding a corresponding timer unit with set to the value given here.
Type: string or list of strings
Default: ``[
]``
Example:
"Sun 14:00:00"Declared by:
jobs.<name>.startLimitIntervalSec¶
Configure unit start rate limiting. Units which are started more than burst times within an interval time interval are not permitted to start any more.
Type: signed integer
Declared by:
jobs.<name>.stopIfChanged¶
If set, a changed unit is restarted by calling:command:systemctl stop in the old configuration, then systemctl start in the new one. Otherwise, it is restarted in a single step using:command:systemctl restart in the new configuration. The latter is less correct because it runs the``ExecStop`` commands from the new configuration.
Type: boolean
Default:
trueDeclared by:
jobs.<name>.unitConfig¶
Each attribute in this set specifies an option in the``[Unit]`` section of the unit. Seesystemd.unit5 for details.
Type: attribute set of systemd options
Default: ``{
}``
Example:
{ RequiresMountsFor = "/data"; }Declared by:
jobs.<name>.wantedBy¶
Units that want (i.e. depend on) this unit. The standard way to make a unit start by default at boot is to set this option to
[ "multi-user.target" ]. That’s despite the fact that the systemd.unit(5) manpage says this option goes in the[Install]section that controls the behaviour ofsystemctl enable. Since such a process is stateful and thus contrary to the design of NixOS, setting this option instead causes the equivalent inverse.wantssymlink to be present, establishing the same desired relationship in a stateless way.Type: list of strings
Default: ``[
]``
Declared by:
jobs.<name>.wants¶
Start the specified units when this unit is started.
Type: list of strings
Default: ``[
]``
Declared by:
krb5.enable¶
Whether to enable building krb5.conf, configuration file for Kerberos V.
Type: boolean
Default:
falseExample:
trueDeclared by:
krb5.appdefaults¶
Settings used by some Kerberos V5 applications.
Type: attribute set or strings concatenated with “\n”
Default: ``{
}``
Example:
{ pam = { debug = false; ticket_lifetime = 36000; renew_lifetime = 36000; max_timeout = 30; timeout_shift = 2; initial_timeout = 1; }; };Declared by:
krb5.capaths¶
Authentication paths for non-hierarchical cross-realm authentication.
Type: attribute set or strings concatenated with “\n”
Default: ``{
}``
Example:
{ "ATHENA.MIT.EDU" = { "EXAMPLE.COM" = "."; }; "EXAMPLE.COM" = { "ATHENA.MIT.EDU" = "."; }; };Declared by:
krb5.config¶
Verbatim
krb5.confconfiguration. Note that this is mutually exclusive with configuration via``libdefaults``,realms,``domain_realm``,capaths,``appdefaults``,pluginsand``extraConfig`` configuration options. Consult``man krb5.conf`` for documentation.Type: null or strings concatenated with “\n”
Default:
nullExample:
'' [libdefaults] default_realm = EXAMPLE.COM [realms] EXAMPLE.COM = { admin_server = kerberos.example.com kdc = kerberos.example.com default_principal_flags = +preauth } [domain_realm] example.com = EXAMPLE.COM .example.com = EXAMPLE.COM [logging] kdc = SYSLOG:NOTICE admin_server = SYSLOG:NOTICE default = SYSLOG:NOTICE ''Declared by:
krb5.defaultRealm¶
DEPRECATED, please use``krb5.libdefaults.default_realm``.
Type: null or string
Default:
nullExample:
"ATHENA.MIT.EDU"Declared by:
krb5.domainRealm¶
DEPRECATED, please create a map of server hostnames to Kerberos realms in
krb5.domain_realm.Type: null or string
Default:
nullExample:
"athena.mit.edu"Declared by:
krb5.domain_realm¶
Map of server hostnames to Kerberos realms.
Type: attribute set or strings concatenated with “\n”
Default: ``{
}``
Example:
{ "example.com" = "EXAMPLE.COM"; ".example.com" = "EXAMPLE.COM"; };Declared by:
krb5.extraConfig¶
These lines go to the end of
krb5.confverbatim.``krb5.conf`` may include any of the relations that are valid forkdc.conf(seeman kdc.conf), but it is not a recommended practice.Type: null or strings concatenated with “\n”
Default:
nullExample:
'' [logging] kdc = SYSLOG:NOTICE admin_server = SYSLOG:NOTICE default = SYSLOG:NOTICE ''Declared by:
krb5.kdc¶
DEPRECATED, please pass a
kdcattribute to a realm inkrb5.realms.Type: null or string
Default:
nullExample:
"kerberos.mit.edu"Declared by:
krb5.kerberos¶
The Kerberos implementation that will be present in``environment.systemPackages`` after enabling this service.
Type: package
Default:
"pkgs.krb5Full"Example:
pkgs.heimdalFullDeclared by:
krb5.kerberosAdminServer¶
DEPRECATED, please pass an
admin_serverattribute to a realm inkrb5.realms.Type: null or string
Default:
nullExample:
"kerberos.mit.edu"Declared by:
krb5.libdefaults¶
Settings used by the Kerberos V5 library.
Type: attribute set or strings concatenated with “\n”
Default: ``{
}``
Example:
{ default_realm = "ATHENA.MIT.EDU"; };Declared by:
krb5.plugins¶
Controls plugin module registration.
Type: attribute set or strings concatenated with “\n”
Default: ``{
}``
Example:
{ ccselect = { disable = "k5identity"; }; };Declared by:
krb5.realms¶
Realm-specific contact information and settings.
Type: attribute set or strings concatenated with “\n”
Default: ``{
}``
Example:
{ "ATHENA.MIT.EDU" = { admin_server = "athena.mit.edu"; kdc = "athena.mit.edu"; }; };Declared by:
lib¶
This option allows modules to define helper functions, constants, etc.
Type: attribute set of attribute sets
Default: ``{
}``
Declared by:
location.latitude¶
Your current latitude, between``-90.0`` and
90.0. Must be provided along with longitude.Type: floating point number
Declared by:
location.longitude¶
Your current longitude, between between
-180.0and180.0. Must be provided along with latitude.Type: floating point number
Declared by:
location.provider¶
The location provider to use for determining your location. If set to``manual`` you must also provide latitude/longitude.
Type: one of “manual”, “geoclue2”
Default:
"manual"Declared by:
nesting.children¶
nesting.clone¶
Additional configurations to build based on the current configuration which then has a lower priority.
To switch to a cloned configuration (e.g.
child-1) at runtime, run# sudo /run/current-system/fine-tune/child-1/bin/switch-to-configuration testType: unspecified
Default: ``[
]``
Declared by:
networking.enableB43Firmware¶
Turn on this option if you want firmware for the NICs supported by the b43 module.
Type: boolean
Default:
falseDeclared by:
networking.enableIPv6¶
Whether to enable support for IPv6.
Type: boolean
Default:
trueDeclared by:
networking.enableIntel2200BGFirmware¶
Turn on this option if you want firmware for the Intel PRO/Wireless 2200BG to be loaded automatically. This is required if you want to use this device.
Type: boolean
Default:
falseDeclared by:
networking.bonds¶
This option allows you to define bond devices that aggregate multiple, underlying networking interfaces together. The value of this option is an attribute set. Each attribute specifies a bond, with the attribute name specifying the name of the bond’s network interface
Type: attribute set of submodules
Default: ``{
}``
Example:
*Declared by:*
networking.bonds.<name>.driverOptions¶
Options for the bonding driver. Documentation can be found in` <https://www.kernel.org/doc/Documentation/networking/bonding.txt>`_
Type: attribute set of strings
Default: ``{
}``
Example:
*Declared by:*
networking.bonds.<name>.interfaces¶
The interfaces to bond together
Type: list of strings
Example:
[ "enp4s0f0" "enp4s0f1" "wlan0" ]Declared by:
networking.bonds.<name>.lacp_rate¶
DEPRECATED, use `driverOptions`. Option specifying the rate in which we’ll ask our link partner to transmit LACPDU packets in 802.3ad mode.
Type: null or string
Default:
nullExample:
"fast"Declared by:
networking.bonds.<name>.miimon¶
DEPRECATED, use `driverOptions`. Miimon is the number of millisecond in between each round of polling by the device driver for failed links. By default polling is not enabled and the driver is trusted to properly detect and handle failure scenarios.
Type: null or signed integer
Default:
nullExample:
100Declared by:
networking.bonds.<name>.mode¶
DEPRECATED, use `driverOptions`. The mode which the bond will be running. The default mode for the bonding driver is balance-rr, optimizing for throughput. More information about valid modes can be found at https://www.kernel.org/doc/Documentation/networking/bonding.txt
Type: null or string
Default:
nullExample:
"active-backup"Declared by:
networking.bonds.<name>.xmit_hash_policy¶
DEPRECATED, use `driverOptions`. Selects the transmit hash policy to use for slave selection in balance-xor, 802.3ad, and tlb modes.
Type: null or string
Default:
nullExample:
"layer2+3"Declared by:
networking.bridges¶
This option allows you to define Ethernet bridge devices that connect physical networks together. The value of this option is an attribute set. Each attribute specifies a bridge, with the attribute name specifying the name of the bridge’s network interface.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ br0 = { interfaces = [ "eth0" "eth1" ] ; } ; br1 = { interfaces = [ "eth2" "wlan0" ] ; } ; }Declared by:
networking.bridges.<name>.interfaces¶
The physical network interfaces connected by the bridge.
Type: list of strings
Example:
[ "eth0" "eth1" ]Declared by:
networking.bridges.<name>.rstp¶
Whether the bridge interface should enable rstp.
Type: boolean
Default:
falseDeclared by:
networking.defaultGateway¶
The default gateway. It can be left empty if it is auto-detected through DHCP. It can be specified as a string or an option set along with a network interface.
Type: null or submodule or string convertible to it
Default:
nullExample:
{ address = "131.211.84.1"; interface = "enp3s0"; }Declared by:
networking.defaultGateway.address¶
The default gateway address.
Type: string
Declared by:
networking.defaultGateway.interface¶
The default gateway interface.
Type: null or string
Default:
nullExample:
"enp0s3"Declared by:
networking.defaultGateway.metric¶
The default gateway metric/preference.
Type: null or signed integer
Default:
nullExample:
42Declared by:
networking.defaultGateway6¶
The default ipv6 gateway. It can be left empty if it is auto-detected through DHCP. It can be specified as a string or an option set along with a network interface.
Type: null or submodule or string convertible to it
Default:
nullExample:
{ address = "2001:4d0:1e04:895::1"; interface = "enp3s0"; }Declared by:
networking.defaultGateway6.address¶
The default gateway address.
Type: string
Declared by:
networking.defaultGateway6.interface¶
The default gateway interface.
Type: null or string
Default:
nullExample:
"enp0s3"Declared by:
networking.defaultGateway6.metric¶
The default gateway metric/preference.
Type: null or signed integer
Default:
nullExample:
42Declared by:
networking.defaultGatewayWindowSize¶
The window size of the default gateway. It limits maximal data bursts that TCP peers are allowed to send to us.
Type: null or signed integer
Default:
nullExample:
524288Declared by:
networking.dhcpcd.enable¶
Whether to enable dhcpcd for device configuration. This is mainly to explicitly disable dhcpcd (for example when using networkd).
Type: boolean
Default:
trueDeclared by:
networking.dhcpcd.allowInterfaces¶
Enable the DHCP client for any interface whose name matches any of the shell glob patterns in this list. Any interface not explicitly matched by this pattern will be denied. This pattern only applies when non-null.
Type: null or list of strings
Default:
nullDeclared by:
networking.dhcpcd.denyInterfaces¶
Disable the DHCP client for any interface whose name matches any of the shell glob patterns in this list. The purpose of this option is to blacklist virtual interfaces such as those created by Xen, libvirt, LXC, etc.
Type: list of strings
Default: ``[
]``
Declared by:
networking.dhcpcd.extraConfig¶
Literal string to append to the config file generated for dhcpcd.
Type: strings concatenated with “\n”
Default:
""Declared by:
networking.dhcpcd.persistent¶
Whenever to leave interfaces configured on dhcpcd daemon shutdown. Set to true if you have your root or store mounted over the network or this machine accepts SSH connections through DHCP interfaces and clients should be notified when it shuts down.
Type: boolean
Default:
falseDeclared by:
networking.dhcpcd.runHook¶
Shell code that will be run after all other hooks. See `man dhcpcd-run-hooks` for details on what is possible.
Type: strings concatenated with “\n”
Default:
""Example:
"if \[[ \\$reason =~ BOUND ]]; then echo \\$interface: Routers are \\$new_routers - were \\$old_routers; fi"Declared by:
networking.dhcpcd.wait¶
This option specifies when the dhcpcd service will fork to background. If set to “background”, dhcpcd will fork to background immediately. If set to “ipv4” or “ipv6”, dhcpcd will wait for the corresponding IP address to be assigned. If set to “any”, dhcpcd will wait for any type (IPv4 or IPv6) to be assigned. If set to “both”, dhcpcd will wait for both an IPv4 and an IPv6 address before forking. The option “if-carrier-up” is equivalent to “any” if either ethernet is plugged nor WiFi is powered, and to “background” otherwise.
Type: one of “background”, “any”, “ipv4”, “ipv6”, “both”, “if-carrier-up”
Default:
"any"Declared by:
networking.domain¶
The domain. It can be left empty if it is auto-detected through DHCP.
Type: null or string
Default:
nullExample:
"home"Declared by:
networking.extraHosts¶
Additional verbatim entries to be appended to
/etc/hosts.Type: strings concatenated with “\n”
Default:
""Example:
"192.168.0.1 lanlocalhost"Declared by:
networking.firewall.enable¶
Whether to enable the firewall. This is a simple stateful firewall that blocks connection attempts to unauthorised TCP or UDP ports on this machine. It does not affect packet forwarding.
Type: boolean
Default:
trueDeclared by:
networking.firewall.package¶
The iptables package to use for running the firewall service.”
Type: package
Default:
"pkgs.iptables"Example:
pkgs.iptables-nftables-compatDeclared by:
networking.firewall.allowPing¶
Whether to respond to incoming ICMPv4 echo requests (“pings”). ICMPv6 pings are always allowed because the larger address space of IPv6 makes network scanning much less effective.
Type: boolean
Default:
trueDeclared by:
networking.firewall.allowedTCPPortRanges¶
networking.firewall.allowedTCPPorts¶
List of TCP ports on which incoming connections are accepted.
Type: list of 16 bit unsigned integer; between 0 and 65535 (both inclusive)s
Default: ``[
]``
Example:
[ 22 80 ]Declared by:
networking.firewall.allowedUDPPortRanges¶
networking.firewall.allowedUDPPorts¶
List of open UDP ports.
Type: list of 16 bit unsigned integer; between 0 and 65535 (both inclusive)s
Default: ``[
]``
Example:
[ 53 ]Declared by:
networking.firewall.autoLoadConntrackHelpers¶
Whether to auto-load connection-tracking helpers. See the description at networking.firewall.connectionTrackingModules
(needs kernel 3.5+)
Type: boolean
Default:
falseDeclared by:
networking.firewall.checkReversePath¶
Performs a reverse path filter test on a packet. If a reply to the packet would not be sent via the same interface that the packet arrived on, it is refused.
If using asymmetric routing or other complicated routing, set this option to loose mode or disable it and setup your own counter-measures.
This option can be either true (or “strict”), “loose” (only drop the packet if the source address is not reachable via any interface) or false. Defaults to the value of kernelHasRPFilter.
(needs kernel 3.3+)
Type: boolean or one of “strict”, “loose”
Default:
trueExample:
"loose"Declared by:
networking.firewall.connectionTrackingModules¶
List of connection-tracking helpers that are auto-loaded. The complete list of possible values is given in the example.
As helpers can pose as a security risk, it is advised to set this to an empty list and disable the setting networking.firewall.autoLoadConntrackHelpers unless you know what you are doing. Connection tracking is disabled by default.
Loading of helpers is recommended to be done through the CT target. More info: https://home.regit.org/netfilter-en/secure-use-of-helpers/
Type: list of strings
Default: ``[
]``
Example:
[ "ftp" "irc" "sane" "sip" "tftp" "amanda" "h323" "netbios_sn" "pptp" "snmp" ]Declared by:
networking.firewall.extraCommands¶
Additional shell commands executed as part of the firewall initialisation script. These are executed just before the final “reject” firewall rule is added, so they can be used to allow packets that would otherwise be refused.
Type: strings concatenated with “\n”
Default:
""Example:
"iptables -A INPUT -p icmp -j ACCEPT"Declared by:
networking.firewall.extraPackages¶
Additional packages to be included in the environment of the system as well as the path of networking.firewall.extraCommands.
Type: list of packages
Default: ``[
]``
Example:
[ pkgs.ipset ]Declared by:
networking.firewall.extraStopCommands¶
Additional shell commands executed as part of the firewall shutdown script. These are executed just after the removal of the NixOS input rule, or if the service enters a failed state.
Type: strings concatenated with “\n”
Default:
""Example:
"iptables -P INPUT ACCEPT"Declared by:
networking.firewall.interfaces¶
networking.firewall.interfaces.<name>.allowedTCPPortRanges¶
networking.firewall.interfaces.<name>.allowedTCPPorts¶
List of TCP ports on which incoming connections are accepted.
Type: list of 16 bit unsigned integer; between 0 and 65535 (both inclusive)s
Default: ``[
]``
Example:
[ 22 80 ]Declared by:
networking.firewall.interfaces.<name>.allowedUDPPortRanges¶
networking.firewall.interfaces.<name>.allowedUDPPorts¶
List of open UDP ports.
Type: list of 16 bit unsigned integer; between 0 and 65535 (both inclusive)s
Default: ``[
]``
Example:
[ 53 ]Declared by:
networking.firewall.logRefusedConnections¶
Whether to log rejected or dropped incoming connections.
Type: boolean
Default:
trueDeclared by:
networking.firewall.logRefusedPackets¶
Whether to log all rejected or dropped incoming packets. This tends to give a lot of log messages, so it’s mostly useful for debugging.
Type: boolean
Default:
falseDeclared by:
networking.firewall.logRefusedUnicastsOnly¶
If and this option are enabled, then only log packets specifically directed at this machine, i.e., not broadcasts or multicasts.
Type: boolean
Default:
trueDeclared by:
networking.firewall.logReversePathDrops¶
Logs dropped packets failing the reverse path filter test if the option networking.firewall.checkReversePath is enabled.
Type: boolean
Default:
falseDeclared by:
networking.firewall.pingLimit¶
If pings are allowed, this allows setting rate limits on them. If non-null, this option should be in the form of flags like “–limit 1/minute –limit-burst 5”
Type: null or strings concatenated with ” “
Default:
nullExample:
"--limit 1/minute --limit-burst 5"Declared by:
networking.firewall.rejectPackets¶
If set, refused packets are rejected rather than dropped (ignored). This means that an ICMP “port unreachable” error message is sent back to the client (or a TCP RST packet in case of an existing connection). Rejecting packets makes port scanning somewhat easier.
Type: boolean
Default:
falseDeclared by:
networking.firewall.trustedInterfaces¶
Traffic coming in from these interfaces will be accepted unconditionally. Traffic from the loopback (lo) interface will always be accepted.
Type: list of strings
Default: ``[
]``
Example:
[ "enp0s2" ]Declared by:
networking.hostId¶
The 32-bit host ID of the machine, formatted as 8 hexadecimal characters.
You should try to make this ID unique among your machines. You can generate a random 32-bit ID using the following commands:
head -c 8 /etc/machine-id(this derives it from the machine-id that systemd generates) or
head -c4 /dev/urandom | od -A none -t x4Type: null or string
Default:
nullExample:
"4e98920d"Declared by:
networking.hostName¶
The name of the machine. Leave it empty if you want to obtain it from a DHCP server (if using DHCP).
Type: string
Default:
"nixos"Declared by:
networking.hosts¶
Locally defined maps of hostnames to IP addresses.
Type: attribute set of list of stringss
Example:
{ "127.0.0.1" = [ "foo.bar.baz" ]; "192.168.0.2" = [ "fileserver.local" "nameserver.local" ]; };Declared by:
networking.interfaces¶
networking.interfaces.<name?>.ip4.*.address¶
IPv4 address of the interface. Leave empty to configure the interface using DHCP.
Type: string
Declared by:
networking.interfaces.<name?>.ip4.*.prefixLength¶
Subnet mask of the interface, specified as the number of bits in the prefix (
24).Type: signed integer
Declared by:
networking.interfaces.<name?>.ip6.*.address¶
IPv6 address of the interface. Leave empty to configure the interface using DHCP.
Type: string
Declared by:
networking.interfaces.<name?>.ip6.*.prefixLength¶
Subnet mask of the interface, specified as the number of bits in the prefix (
64).Type: signed integer
Declared by:
networking.interfaces.<name?>.ipv4.addresses¶
networking.interfaces.<name?>.ipv4.addresses.*.address¶
IPv4 address of the interface. Leave empty to configure the interface using DHCP.
Type: string
Declared by:
networking.interfaces.<name?>.ipv4.addresses.*.prefixLength¶
Subnet mask of the interface, specified as the number of bits in the prefix (
24).Type: signed integer
Declared by:
networking.interfaces.<name?>.ipv4.routes¶
networking.interfaces.<name?>.ipv4.routes.*.address¶
IPv4 address of the network.
Type: string
Declared by:
networking.interfaces.<name?>.ipv4.routes.*.options¶
Other route options. See the symbol
OPTIONSin theip-route(8)manual page for the details.Type: attribute set of strings
Default: ``{
}``
Example:
{ mtu = "1492"; window = "524288"; }Declared by:
networking.interfaces.<name?>.ipv4.routes.*.prefixLength¶
Subnet mask of the network, specified as the number of bits in the prefix (
24).Type: signed integer
Declared by:
networking.interfaces.<name?>.ipv4.routes.*.via¶
IPv4 address of the next hop.
Type: null or string
Default:
nullDeclared by:
networking.interfaces.<name?>.ipv6.addresses¶
networking.interfaces.<name?>.ipv6.addresses.*.address¶
IPv6 address of the interface. Leave empty to configure the interface using DHCP.
Type: string
Declared by:
networking.interfaces.<name?>.ipv6.addresses.*.prefixLength¶
Subnet mask of the interface, specified as the number of bits in the prefix (
64).Type: signed integer
Declared by:
networking.interfaces.<name?>.ipv6.routes¶
networking.interfaces.<name?>.ipv6.routes.*.address¶
IPv6 address of the network.
Type: string
Declared by:
networking.interfaces.<name?>.ipv6.routes.*.options¶
Other route options. See the symbol
OPTIONSin theip-route(8)manual page for the details.Type: attribute set of strings
Default: ``{
}``
Example:
{ mtu = "1492"; window = "524288"; }Declared by:
networking.interfaces.<name?>.ipv6.routes.*.prefixLength¶
Subnet mask of the network, specified as the number of bits in the prefix (
64).Type: signed integer
Declared by:
networking.interfaces.<name?>.ipv6.routes.*.via¶
IPv6 address of the next hop.
Type: null or string
Default:
nullDeclared by:
networking.interfaces.<name?>.macAddress¶
MAC address of the interface. Leave empty to use the default.
Type: null or string
Default:
nullExample:
"00:11:22:33:44:55"Declared by:
networking.interfaces.<name?>.mtu¶
MTU size for packets leaving the interface. Leave empty to use the default.
Type: null or signed integer
Default:
nullExample:
9000Declared by:
networking.interfaces.<name?>.name¶
Name of the interface.
Type: string
Example:
"eth0"Declared by:
networking.interfaces.<name?>.proxyARP¶
Turn on proxy_arp for this device (and proxy_ndp for ipv6). This is mainly useful for creating pseudo-bridges between a real interface and a virtual network such as VPN or a virtual machine for interfaces that don’t support real bridging (most wlan interfaces). As ARP proxying acts slightly above the link-layer, below-ip traffic isn’t bridged, so things like DHCP won’t work. The advantage above using NAT lies in the fact that no IP addresses are shared, so all hosts are reachable/routeable.
WARNING: turns on ip-routing, so if you have multiple interfaces, you should think of the consequence and setup firewall rules to limit this.
Type: boolean
Default:
falseDeclared by:
networking.interfaces.<name?>.tempAddress¶
When IPv6 is enabled with SLAAC, this option controls the use of temporary address (aka privacy extensions). This is used to reduce tracking. The three possible values are:
"default"to generate temporary addresses and use them by default;"enabled"to generate temporary addresses but keep using the standard EUI-64 ones by default;"disabled"to completely disable temporary addresses.Type: one of “default”, “enabled”, “disabled”
Default:
if cfg.enableIPv6 then "default" else "disabled"Declared by:
networking.interfaces.<name?>.useDHCP¶
Whether this interface should be configured with dhcp. Null implies the old behavior which depends on whether ip addresses are specified or not.
Type: null or boolean
Default:
nullDeclared by:
networking.interfaces.<name?>.virtual¶
Whether this interface is virtual and should be created by tunctl. This is mainly useful for creating bridges between a host and a virtual network such as VPN or a virtual machine.
Type: boolean
Default:
falseDeclared by:
networking.interfaces.<name?>.virtualOwner¶
In case of a virtual device, the user who owns it.
Type: string
Default:
"root"Declared by:
networking.interfaces.<name?>.virtualType¶
The type of interface to create. The default is TUN for an interface name starting with “tun”, otherwise TAP.
Type: one of “tun”, “tap”
Default:
if hasPrefix "tun" name then "tun" else "tap"Declared by:
networking.iproute2.enable¶
Whether to enable copy IP route configuration files.
Type: boolean
Default:
falseExample:
trueDeclared by:
networking.iproute2.rttablesExtraConfig¶
Verbatim lines to add to /etc/iproute2/rt_tables
Type: strings concatenated with “\n”
Default:
""Declared by:
networking.localCommands¶
Shell commands to be executed at the end of the``network-setup`` systemd service. Note that if you are using DHCP to obtain the network configuration, interfaces may not be fully configured yet.
Type: strings concatenated with “\n”
Default:
""Example:
"text=anything; echo You can put \\$text here."Declared by:
networking.macvlans¶
This option allows you to define macvlan interfaces which should be automatically created.
Type: attribute set of submodules
Default: ``{
}``
Example:
*Declared by:*
networking.macvlans.<name>.interface¶
The interface the macvlan will transmit packets through.
Type: string
Example:
"enp4s0"Declared by:
networking.macvlans.<name>.mode¶
The mode of the macvlan device.
Type: null or string
Default:
nullExample:
"vepa"Declared by:
networking.nameservers¶
The list of nameservers. It can be left empty if it is auto-detected through DHCP.
Type: list of strings
Default: ``[
]``
Example:
[ "130.161.158.4" "130.161.33.17" ]Declared by:
networking.nat.enable¶
Whether to enable Network Address Translation (NAT).
Type: boolean
Default:
falseDeclared by:
networking.nat.dmzHost¶
The local IP address to which all traffic that does not match any forwarding rule is forwarded.
Type: null or string
Default:
nullExample:
"10.0.0.1"Declared by:
networking.nat.externalIP¶
The public IP address to which packets from the local network are to be rewritten. If this is left empty, the IP address associated with the external interface will be used.
Type: null or string
Default:
nullExample:
"203.0.113.123"Declared by:
networking.nat.externalInterface¶
The name of the external network interface.
Type: null or string
Default:
nullExample:
"eth1"Declared by:
networking.nat.extraCommands¶
Additional shell commands executed as part of the nat initialisation script.
Type: strings concatenated with “\n”
Default:
""Example:
"iptables -A INPUT -p icmp -j ACCEPT"Declared by:
networking.nat.extraStopCommands¶
Additional shell commands executed as part of the nat teardown script.
Type: strings concatenated with “\n”
Default:
""Example:
"iptables -D INPUT -p icmp -j ACCEPT \|| true"Declared by:
networking.nat.forwardPorts¶
networking.nat.forwardPorts.*.destination¶
Forward connection to destination ip:port; to specify a port range, use ip:start-end
Type: string
Example:
"10.0.0.1:80"Declared by:
networking.nat.forwardPorts.*.loopbackIPs¶
Public IPs for NAT reflection; for connections to `loopbackip:sourcePort’ from the host itself and from other hosts behind NAT
Type: list of strings
Default: ``[
]``
Example:
[ "55.1.2.3" ]Declared by:
networking.nat.forwardPorts.*.proto¶
Protocol of forwarded connection
Type: string
Default:
"tcp"Example:
"udp"Declared by:
networking.nat.forwardPorts.*.sourcePort¶
Source port of the external interface; to specify a port range, use a string with a colon (e.g. “60000:61000”)
Type: signed integer or string matching the pattern [[:digit:]]+:[[:digit:]]+
Example:
8080Declared by:
networking.nat.internalIPs¶
The IP address ranges for which to perform NAT. Packets coming from these addresses (on any interface) and destined for the external interface will be rewritten.
Type: list of strings
Default: ``[
]``
Example:
[ "192.168.1.0/24" ]Declared by:
networking.nat.internalInterfaces¶
The interfaces for which to perform NAT. Packets coming from these interface and destined for the external interface will be rewritten.
Type: list of strings
Default: ``[
]``
Example:
[ "eth0" ]Declared by:
networking.networkmanager.enable¶
Whether to use NetworkManager to obtain an IP address and other configuration for all network interfaces that are not manually configured. If enabled, a group
networkmanagerwill be created. Add all users that should have permission to change network settings to this group.Type: boolean
Default:
falseDeclared by:
networking.networkmanager.enableStrongSwan¶
Enable the StrongSwan plugin.
If you enable this option the``networkmanager_strongswan`` plugin will be added to the option so you don’t need to to that yourself.
Type: boolean
Default:
falseDeclared by:
networking.networkmanager.packages¶
Extra packages that provide NetworkManager plugins.
Type: list of packages
Default: ``[
]``
Declared by:
networking.networkmanager.appendNameservers¶
A list of name servers that should be appended to the ones configured in NetworkManager or received by DHCP.
Type: list of strings
Default: ``[
]``
Declared by:
networking.networkmanager.dhcp¶
Which program (or internal library) should be used for DHCP.
Type: one of “dhclient”, “dhcpcd”, “internal”
Default:
"internal"Declared by:
networking.networkmanager.dispatcherScripts¶
A list of scripts which will be executed in response to network events.
Type: list of submodules
Default: ``[
]``
Example:
[ { source = pkgs.writeText "upHook" '' if [ "$2" != "up" ]; then logger "exit: event $2 != up" exit fi # coreutils and iproute are in PATH too logger "Device $DEVICE_IFACE coming up" ''; type = "basic"; } ]Declared by:
networking.networkmanager.dispatcherScripts.*.source¶
Path to the hook script.
Type: path
Declared by:
networking.networkmanager.dispatcherScripts.*.type¶
Dispatcher hook type. Look up the hooks described at`https://developer.gnome.org/NetworkManager/stable/NetworkManager.html <https://developer.gnome.org/NetworkManager/stable/NetworkManager.html>`_ and choose the type depending on the output folder. You should then filter the event type (e.g., “up”/”down”) from within your script.
Type: one of “basic”, “pre-down”, “pre-up”
Default:
"basic"Declared by:
networking.networkmanager.dns¶
Set the DNS (
resolv.conf) processing mode.A description of these modes can be found in the main section of`https://developer.gnome.org/NetworkManager/stable/NetworkManager.conf.html <https://developer.gnome.org/NetworkManager/stable/NetworkManager.conf.html>`_ or inNetworkManager.conf5.
Type: one of “default”, “dnsmasq”, “unbound”, “systemd-resolved”, “none”
Default:
"default"Declared by:
networking.networkmanager.ethernet.macAddress¶
Set the MAC address of the interface.
“XX:XX:XX:XX:XX:XX”
MAC address of the interface
"permanent"Use the permanent MAC address of the device
"preserve"Don’t change the MAC address of the device upon activation
"random"Generate a randomized value upon each connect
"stable"Generate a stable, hashed MAC addressType: string or one of “permanent”, “preserve”, “random”, “stable”
Default:
"preserve"Example:
"00:11:22:33:44:55"Declared by:
networking.networkmanager.extraConfig¶
Configuration appended to the generated NetworkManager.conf. Refer to`https://developer.gnome.org/NetworkManager/stable/NetworkManager.conf.html <https://developer.gnome.org/NetworkManager/stable/NetworkManager.conf.html>`_ orNetworkManager.conf5 for more information.
Type: strings concatenated with “\n”
Default:
""Declared by:
networking.networkmanager.insertNameservers¶
A list of name servers that should be inserted before the ones configured in NetworkManager or received by DHCP.
Type: list of strings
Default: ``[
]``
Declared by:
networking.networkmanager.logLevel¶
Set the default logging verbosity level.
Type: one of “OFF”, “ERR”, “WARN”, “INFO”, “DEBUG”, “TRACE”
Default:
"WARN"Declared by:
networking.networkmanager.unmanaged¶
List of interfaces that will not be managed by NetworkManager. Interface name can be specified here, but if you need more fidelity, refer to`https://developer.gnome.org/NetworkManager/stable/NetworkManager.conf.html#device-spec <https://developer.gnome.org/NetworkManager/stable/NetworkManager.conf.html#device-spec>`_ or the “Device List Format” Appendix ofNetworkManager.conf5.
Type: list of strings
Default: ``[
]``
Declared by:
networking.networkmanager.wifi.backend¶
Specify the Wi-Fi backend used for the device. Currently supported are or (experimental).
Type: one of “wpa_supplicant”, “iwd”
Default:
"wpa_supplicant"Declared by:
networking.networkmanager.wifi.macAddress¶
Set the MAC address of the interface.
“XX:XX:XX:XX:XX:XX”
MAC address of the interface
"permanent"Use the permanent MAC address of the device
"preserve"Don’t change the MAC address of the device upon activation
"random"Generate a randomized value upon each connect
"stable"Generate a stable, hashed MAC addressType: string or one of “permanent”, “preserve”, “random”, “stable”
Default:
"preserve"Example:
"00:11:22:33:44:55"Declared by:
networking.networkmanager.wifi.powersave¶
Whether to enable Wi-Fi power saving.
Type: null or boolean
Default:
nullDeclared by:
networking.networkmanager.wifi.scanRandMacAddress¶
Whether to enable MAC address randomization of a Wi-Fi device during scanning.
Type: boolean
Default:
trueDeclared by:
networking.nftables.enable¶
Whether to enable nftables. nftables is a Linux-based packet filtering framework intended to replace frameworks like iptables.
This conflicts with the standard networking firewall, so make sure to disable it before using nftables.
Note that if you have Docker enabled you will not be able to use nftables without intervention. Docker uses iptables internally to setup NAT for containers. This module disables the ip_tables kernel module, however Docker automatically loads the module. Please see [1] for more information.
There are other programs that use iptables internally too, such as libvirt.
[1]: https://github.com/NixOS/nixpkgs/issues/24318#issuecomment-289216273
Type: boolean
Default:
falseDeclared by:
networking.nftables.ruleset¶
The ruleset to be used with nftables. Should be in a format that can be loaded using “/bin/nft -f”. The ruleset is updated atomically.
Type: strings concatenated with “\n”
Example:
'' # Check out https://wiki.nftables.org/ for better documentation. # Table for both IPv4 and IPv6. table inet filter { # Block all incomming connections traffic except SSH and "ping". chain input { type filter hook input priority 0; # accept any localhost traffic iifname lo accept # accept traffic originated from us ct state {established, related} accept # ICMP # routers may also want: mld-listener-query, nd-router-solicit ip6 nexthdr icmpv6 icmpv6 type { destination-unreachable, packet-too-big, time-exceeded, parameter-problem, nd-router-advert, nd-neighbor-solicit, nd-neighbor-advert } accept ip protocol icmp icmp type { destination-unreachable, router-advertisement, time-exceeded, parameter-problem } accept # allow "ping" ip6 nexthdr icmp icmpv6 type echo-request accept ip protocol icmp icmp type echo-request accept # accept SSH connections (required for a server) tcp dport 22 accept # count and drop any other traffic counter drop } # Allow all outgoing connections. chain output { type filter hook output priority 0; accept } chain forward { type filter hook forward priority 0; accept } } ''Declared by:
networking.nftables.rulesetFile¶
The ruleset file to be used with nftables. Should be in a format that can be loaded using “nft -f”. The ruleset is updated atomically.
Type: path
Default:
*(build of nftables-rules)*Declared by:
networking.proxy.allProxy¶
This option specifies the all_proxy environment variable.
Type: null or string
Default:
nullExample:
"http://127.0.0.1:3128"Declared by:
networking.proxy.default¶
This option specifies the default value for httpProxy, httpsProxy, ftpProxy and rsyncProxy.
Type: null or string
Default:
nullExample:
"http://127.0.0.1:3128"Declared by:
networking.proxy.ftpProxy¶
This option specifies the ftp_proxy environment variable.
Type: null or string
Default:
nullExample:
"http://127.0.0.1:3128"Declared by:
networking.proxy.httpProxy¶
This option specifies the http_proxy environment variable.
Type: null or string
Default:
nullExample:
"http://127.0.0.1:3128"Declared by:
networking.proxy.httpsProxy¶
This option specifies the https_proxy environment variable.
Type: null or string
Default:
nullExample:
"http://127.0.0.1:3128"Declared by:
networking.proxy.noProxy¶
This option specifies the no_proxy environment variable. If a default proxy is used and noProxy is null, then noProxy will be set to 127.0.0.1,localhost.
Type: null or string
Default:
nullExample:
"127.0.0.1,localhost,.localdomain"Declared by:
networking.proxy.rsyncProxy¶
This option specifies the rsync_proxy environment variable.
Type: null or string
Default:
nullExample:
"http://127.0.0.1:3128"Declared by:
networking.resolvconf.dnsExtensionMechanism¶
Enable the edns0 option in
resolv.conf. With that option set, glibc supports use of the extension mechanisms for DNS (EDNS) specified in RFC 2671. The most popular user of that feature is DNSSEC, which does not work without it.Type: boolean
Default:
trueDeclared by:
networking.resolvconf.dnsSingleRequest¶
Recent versions of glibc will issue both ipv4 (A) and ipv6 (AAAA) address queries at the same time, from the same port. Sometimes upstream routers will systemically drop the ipv4 queries. The symptom of this problem is that ‘getent hosts example.com’ only returns ipv6 (or perhaps only ipv4) addresses. The workaround for this is to specify the option ‘single-request’ in /etc/resolv.conf. This option enables that.
Type: boolean
Default:
falseDeclared by:
networking.resolvconf.extraConfig¶
Extra configuration to append to
resolvconf.conf.Type: strings concatenated with “\n”
Default:
""Example:
"libc=NO"Declared by:
networking.resolvconf.extraOptions¶
Set the options in
/etc/resolv.conf.Type: list of strings
Default: ``[
]``
Example:
[ "ndots:1" "rotate" ]Declared by:
networking.resolvconf.useLocalResolver¶
Use local DNS server for resolving.
Type: boolean
Default:
falseDeclared by:
networking.rxe.enable¶
Whether to enable RDMA over converged ethernet.
Type: boolean
Default:
falseExample:
trueDeclared by:
networking.rxe.interfaces¶
Enable RDMA on the listed interfaces. The corresponding virtual RDMA interfaces will be named rxe0 … rxeN where the ordering will be as they are named in the list. UDP port 4791 must be open on the respective ethernet interfaces.
Type: list of strings
Default: ``[
]``
Example:
[ "eth0" ]Declared by:
networking.search¶
The list of search paths used when resolving domain names.
Type: list of strings
Default: ``[
]``
Example:
[ "example.com" "local.domain" ]Declared by:
networking.sits¶
This option allows you to define 6-to-4 interfaces which should be automatically created.
Type: attribute set of submodules
Default: ``{
}``
Example:
*Declared by:*
networking.sits.<name>.dev¶
The underlying network device on which the tunnel resides.
Type: null or string
Default:
nullExample:
"enp4s0f0"Declared by:
networking.sits.<name>.local¶
The address of the local endpoint which the remote side should send packets to.
Type: null or string
Default:
nullExample:
"10.0.0.22"Declared by:
networking.sits.<name>.remote¶
The address of the remote endpoint to forward traffic over.
Type: null or string
Default:
nullExample:
"10.0.0.1"Declared by:
networking.sits.<name>.ttl¶
The time-to-live of the connection to the remote tunnel endpoint.
Type: null or signed integer
Default:
nullExample:
255Declared by:
networking.supplicant¶
Interfaces for which to start wpa_supplicant. The supplicant is used to scan for and associate with wireless networks, or to authenticate with 802.1x capable network switches.
The value of this option is an attribute set. Each attribute configures a:command:wpa_supplicant service, where the attribute name specifies the name of the interface that wpa_supplicant operates on. The attribute name can be a space separated list of interfaces. The attribute names
WLAN,LANandDBUShave a special meaning.WLANandLANare configurations for universal wpa_supplicant service that is started for each WLAN interface or for each LAN interface, respectively.``DBUS`` defines a device-unrelated wpa_supplicant service that can be accessed throughD-Bus.Type: attribute set of submodules
Default: ``{
}``
Example:
{ "wlan0 wlan1" = { configFile.path = "/etc/wpa_supplicant.conf"; userControlled.group = "network"; extraConf = '' ap_scan=1 p2p_disabled=1 ''; extraCmdArgs = "-u -W"; bridge = "br0"; }; }Declared by:
networking.supplicant.<name>.bridge¶
Name of the bridge interface that wpa_supplicant should listen at.
Type: string
Default:
""Declared by:
networking.supplicant.<name>.configFile.path¶
External
wpa_supplicant.confconfiguration file. The configuration options defined declaratively withinnetworking.supplicanthave precedence over options defined inconfigFile.Type: null or path
Default:
nullExample:
/etc/wpa_supplicant.confDeclared by:
networking.supplicant.<name>.configFile.writable¶
Whether the configuration file at
configFile.pathshould be written to by``wpa_supplicant``.Type: boolean
Default:
falseDeclared by:
networking.supplicant.<name>.driver¶
Force a specific wpa_supplicant driver.
Type: null or string
Default:
"nl80211,wext"Declared by:
networking.supplicant.<name>.extraCmdArgs¶
Command line arguments to add when executing
wpa_supplicant.Type: string
Default:
""Example:
"-e/run/wpa_supplicant/entropy.bin"Declared by:
networking.supplicant.<name>.extraConf¶
Configuration options for
wpa_supplicant.conf. Options defined here have precedence over options inconfigFile. NOTE: Do not write sensitive data intoextraConfas it will be world-readable in thenix-store. For sensitive information use theconfigFileinstead.Type: strings concatenated with “\n”
Default:
""Example:
'' ap_scan=1 device_name=My-NixOS-Device device_type=1-0050F204-1 driver_param=use_p2p_group_interface=1 disable_scan_offload=1 p2p_listen_reg_class=81 p2p_listen_channel=1 p2p_oper_reg_class=81 p2p_oper_channel=1 manufacturer=NixOS model_name=NixOS_Unstable model_number=2015 ''Declared by:
networking.supplicant.<name>.userControlled.enable¶
Allow normal users to control wpa_supplicant through wpa_gui or wpa_cli. This is useful for laptop users that switch networks a lot and don’t want to depend on a large package such as NetworkManager just to pick nearby access points.
Type: boolean
Default:
falseDeclared by:
networking.supplicant.<name>.userControlled.group¶
Members of this group can control wpa_supplicant.
Type: string
Default:
"wheel"Example:
"network"Declared by:
networking.supplicant.<name>.userControlled.socketDir¶
Directory of sockets for controlling wpa_supplicant.
Type: string
Default:
"/run/wpa_supplicant"Declared by:
networking.tcpcrypt.enable¶
Whether to enable opportunistic TCP encryption. If the other end speaks Tcpcrypt, then your traffic will be encrypted; otherwise it will be sent in clear text. Thus, Tcpcrypt alone provides no guarantees – it is best effort. If, however, a Tcpcrypt connection is successful and any attackers that exist are passive, then Tcpcrypt guarantees privacy.
Type: unspecified
Default:
falseDeclared by:
networking.timeServers¶
The set of NTP servers from which to synchronise.
Type: unspecified
Default:
[ "0.nixos.pool.ntp.org" "1.nixos.pool.ntp.org" "2.nixos.pool.ntp.org" "3.nixos.pool.ntp.org" ]Declared by:
networking.useDHCP¶
Whether to use DHCP to obtain an IP address and other configuration for all network interfaces that are not manually configured.
Using this option is highly discouraged and also incompatible with. Please use instead and set this to false.
Type: boolean
Default:
trueDeclared by:
networking.useHostResolvConf¶
In containers, whether to use the:file:resolv.conf supplied by the host.
Type: boolean
Default:
falseDeclared by:
networking.useNetworkd¶
Whether we should use networkd as the network configuration backend or the legacy script based system. Note that this option is experimental, enable at your own risk.
Type: boolean
Default:
falseDeclared by:
networking.usePredictableInterfaceNames¶
Whether to assign predictable names to network interfaces. If enabled, interfaces are assigned names that contain topology information (e.g.
wlp3s0) and thus should be stable across reboots. If disabled, names depend on the order in which interfaces are discovered by the kernel, which may change randomly across reboots; for instance, you may find``eth0`` andeth1flipping unpredictably.Type: boolean
Default:
trueDeclared by:
networking.vlans¶
This option allows you to define vlan devices that tag packets on top of a physical interface. The value of this option is an attribute set. Each attribute specifies a vlan, with the name specifying the name of the vlan interface.
Type: attribute set of submodules
Default: ``{
}``
Example:
*Declared by:*
networking.vlans.<name>.id¶
The vlan identifier
Type: signed integer
Example:
1Declared by:
networking.vlans.<name>.interface¶
The interface the vlan will transmit packets through.
Type: string
Example:
"enp4s0"Declared by:
networking.vswitches¶
This option allows you to define Open vSwitches that connect physical networks together. The value of this option is an attribute set. Each attribute specifies a vswitch, with the attribute name specifying the name of the vswitch’s network interface.
Type: attribute set of submodules
Default: ``{
}``
Example: ``{ vs0 = { interfaces = { eth0 = {
} ; lo1 = { type = “internal”; } ; } ; } ; vs1 = { interfaces = [
{ name = “eth2”; }
{ name = “lo2”; type = “internal”; }
}``
Declared by:
networking.vswitches.<name>.controllers¶
Specify the controller targets. For the allowed options see
man 8 ovs-vsctl.Type: list of strings
Default: ``[
]``
Example:
[ "ptcp:6653:\[::1]" ]Declared by:
networking.vswitches.<name>.extraOvsctlCmds¶
Commands to manipulate the Open vSwitch database. Every line executed with
ovs-vsctl. All commands are bundled together with the operations for adding the interfaces into one atomic operation.Type: strings concatenated with “\n”
Default:
""Example:
'' set-fail-mode <switch_name> secure set Bridge <switch_name> stp_enable=true ''Declared by:
networking.vswitches.<name>.interfaces¶
The physical network interfaces connected by the vSwitch.
Type: list or attribute set of submodules
Example:
[ "eth0" "eth1" ]Declared by:
networking.vswitches.<name>.interfaces.<name?>.name¶
Name of the interface
Type: string
Example:
"eth0"Declared by:
networking.vswitches.<name>.interfaces.<name?>.type¶
Openvswitch type to assign to interface
Type: null or string
Default:
nullExample:
"internal"Declared by:
networking.vswitches.<name>.interfaces.<name?>.vlan¶
Vlan tag to apply to interface
Type: null or signed integer
Default:
nullExample:
10Declared by:
networking.vswitches.<name>.openFlowRules¶
OpenFlow rules to insert into the Open vSwitch. All
openFlowRulesare loaded withovs-ofctlwithin one atomic operation.Type: strings concatenated with “\n”
Default:
""Example:
'' actions=normal ''Declared by:
networking.vswitches.<name>.openFlowVersion¶
Version of OpenFlow protocol to use when communicating with the switch internally (e.g. with
openFlowRules).Type: string
Default:
"OpenFlow13"Declared by:
networking.vswitches.<name>.supportedOpenFlowVersions¶
Supported versions to enable on this switch.
Type: list of strings
Default:
[ "OpenFlow13" ]Example:
[ "OpenFlow10" "OpenFlow13" "OpenFlow14" ]Declared by:
networking.wg-quick.interfaces¶
Wireguard interfaces.
Type: attribute set of submodules
Default: ``{
}``
Example: ``{ wg0 = { address = [ “192.168.20.4/24” ] ; peers = [
{ allowedIPs = [ “192.168.20.1/32” ] ; endpoint = “demo.wireguard.io:12913”; publicKey = “xTIBA5rboUvnH4htodjb6e697QjLERt1NAB4mZqp8Dg=”; }
] ; privateKey = “yAnz5TF+lXXJte14tji3zlMNq+hd2rYUIgJBgB3fBmk=”; } ; }``
Declared by:
networking.wg-quick.interfaces.<name>.address¶
The IP addresses of the interface.
Type: list of strings
Default: ``[
]``
Example:
[ "192.168.2.1/24" ]Declared by:
networking.wg-quick.interfaces.<name>.dns¶
The IP addresses of DNS servers to configure.
Type: list of strings
Default: ``[
]``
Example:
[ "192.168.2.2" ]Declared by:
networking.wg-quick.interfaces.<name>.listenPort¶
16-bit port for listening. Optional; if not specified, automatically generated based on interface name.
Type: null or signed integer
Default:
nullExample:
51820Declared by:
networking.wg-quick.interfaces.<name>.mtu¶
If not specified, the MTU is automatically determined from the endpoint addresses or the system default route, which is usually a sane choice. However, to manually specify an MTU to override this automatic discovery, this value may be specified explicitly.
Type: null or signed integer
Default:
nullExample:
1248Declared by:
networking.wg-quick.interfaces.<name>.peers¶
networking.wg-quick.interfaces.<name>.peers.*.allowedIPs¶
List of IP (v4 or v6) addresses with CIDR masks from which this peer is allowed to send incoming traffic and to which outgoing traffic for this peer is directed. The catch-all 0.0.0.0/0 may be specified for matching all IPv4 addresses, and ::/0 may be specified for matching all IPv6 addresses.
Type: list of strings
Example:
[ "10.192.122.3/32" "10.192.124.1/24" ]Declared by:
networking.wg-quick.interfaces.<name>.peers.*.endpoint¶
Endpoint IP or hostname of the peer, followed by a colon, and then a port number of the peer.
Type: null or string
Default:
nullExample:
"demo.wireguard.io:12913"Declared by:
networking.wg-quick.interfaces.<name>.peers.*.persistentKeepalive¶
This is optional and is by default off, because most users will not need it. It represents, in seconds, between 1 and 65535 inclusive, how often to send an authenticated empty packet to the peer, for the purpose of keeping a stateful firewall or NAT mapping valid persistently. For example, if the interface very rarely sends traffic, but it might at anytime receive traffic from a peer, and it is behind NAT, the interface might benefit from having a persistent keepalive interval of 25 seconds; however, most users will not need this.
Type: null or signed integer
Default:
nullExample:
25Declared by:
networking.wg-quick.interfaces.<name>.peers.*.publicKey¶
The base64 public key the peer.
Type: string
Example:
"xTIBA5rboUvnH4htodjb6e697QjLERt1NAB4mZqp8Dg="Declared by:
networking.wg-quick.interfaces.<name>.postDown¶
Command called after the interface is taken down.
Type: strings concatenated with “\n” or list of strings convertible to it
Default:
""Example:
${pkgs.iproute}/bin/ip netns del fooDeclared by:
networking.wg-quick.interfaces.<name>.postUp¶
Commands called after the interface setup.
Type: strings concatenated with “\n” or list of strings convertible to it
Default:
""Example:
${pkgs.iproute}/bin/ip netns add fooDeclared by:
networking.wg-quick.interfaces.<name>.preDown¶
Command called before the interface is taken down.
Type: strings concatenated with “\n” or list of strings convertible to it
Default:
""Example:
${pkgs.iproute}/bin/ip netns del fooDeclared by:
networking.wg-quick.interfaces.<name>.preUp¶
Commands called at the start of the interface setup.
Type: strings concatenated with “\n” or list of strings convertible to it
Default:
""Example:
${pkgs.iproute}/bin/ip netns add fooDeclared by:
networking.wg-quick.interfaces.<name>.privateKey¶
Base64 private key generated by wg genkey.
Warning: Consider using privateKeyFile instead if you do not want to store the key in the world-readable Nix store.
Type: null or string
Default:
nullExample:
"yAnz5TF+lXXJte14tji3zlMNq+hd2rYUIgJBgB3fBmk="Declared by:
networking.wg-quick.interfaces.<name>.privateKeyFile¶
Private key file as generated by wg genkey.
Type: null or string
Default:
nullExample:
"/private/wireguard_key"Declared by:
networking.wg-quick.interfaces.<name>.table¶
The kernel routing table to add this interface’s associated routes to. Setting this is useful for e.g. policy routing (“ip rule”) or virtual routing and forwarding (“ip vrf”). Both numeric table IDs and table names (/etc/rt_tables) can be used. Defaults to “main”.
Type: null or string
Default:
nullExample:
"main"Declared by:
networking.wicd.enable¶
Whether to start wicd. Wired and wireless network configurations can then be managed by wicd-client.
Type: unspecified
Default:
falseDeclared by:
networking.wireguard.enable¶
Whether to enable WireGuard.
Type: boolean
Default:
falseExample:
trueDeclared by:
networking.wireguard.interfaces¶
WireGuard interfaces.
Type: attribute set of submodules
Default: ``{
}``
Example: ``{ wg0 = { ips = [ “192.168.20.4/24” ] ; peers = [
{ allowedIPs = [ “192.168.20.1/32” ] ; endpoint = “demo.wireguard.io:12913”; publicKey = “xTIBA5rboUvnH4htodjb6e697QjLERt1NAB4mZqp8Dg=”; }
] ; privateKey = “yAnz5TF+lXXJte14tji3zlMNq+hd2rYUIgJBgB3fBmk=”; } ; }``
Declared by:
networking.wireguard.interfaces.<name>.allowedIPsAsRoutes¶
Determines whether to add allowed IPs as routes or not.
Type: boolean
Default:
trueExample:
falseDeclared by:
networking.wireguard.interfaces.<name>.generatePrivateKeyFile¶
Automatically generate a private key with:command:wg genkey, at the privateKeyFile location.
Type: boolean
Default:
falseDeclared by:
networking.wireguard.interfaces.<name>.interfaceNamespace¶
The pre-existing network namespace the WireGuard interface is moved to. The special value
initmeans the init namespace. Whennull, the interface is not moved. See documentation.Type: null or string
Default:
nullExample:
"init"Declared by:
networking.wireguard.interfaces.<name>.ips¶
The IP addresses of the interface.
Type: list of strings
Default: ``[
]``
Example:
[ "192.168.2.1/24" ]Declared by:
networking.wireguard.interfaces.<name>.listenPort¶
16-bit port for listening. Optional; if not specified, automatically generated based on interface name.
Type: null or signed integer
Default:
nullExample:
51820Declared by:
networking.wireguard.interfaces.<name>.peers¶
networking.wireguard.interfaces.<name>.peers.*.allowedIPs¶
List of IP (v4 or v6) addresses with CIDR masks from which this peer is allowed to send incoming traffic and to which outgoing traffic for this peer is directed. The catch-all 0.0.0.0/0 may be specified for matching all IPv4 addresses, and ::/0 may be specified for matching all IPv6 addresses.
Type: list of strings
Example:
[ "10.192.122.3/32" "10.192.124.1/24" ]Declared by:
networking.wireguard.interfaces.<name>.peers.*.endpoint¶
Endpoint IP or hostname of the peer, followed by a colon, and then a port number of the peer.
Type: null or string
Default:
nullExample:
"demo.wireguard.io:12913"Declared by:
networking.wireguard.interfaces.<name>.peers.*.persistentKeepalive¶
This is optional and is by default off, because most users will not need it. It represents, in seconds, between 1 and 65535 inclusive, how often to send an authenticated empty packet to the peer, for the purpose of keeping a stateful firewall or NAT mapping valid persistently. For example, if the interface very rarely sends traffic, but it might at anytime receive traffic from a peer, and it is behind NAT, the interface might benefit from having a persistent keepalive interval of 25 seconds; however, most users will not need this.
Type: null or signed integer
Default:
nullExample:
25Declared by:
networking.wireguard.interfaces.<name>.peers.*.publicKey¶
The base64 public key of the peer.
Type: string
Example:
"xTIBA5rboUvnH4htodjb6e697QjLERt1NAB4mZqp8Dg="Declared by:
networking.wireguard.interfaces.<name>.postSetup¶
Commands called at the end of the interface setup.
Type: strings concatenated with “\n” or list of strings convertible to it
Default:
""Example:
printf "nameserver 10.200.100.1" | ${pkgs.openresolv}/bin/resolvconf -a wg0 -m 0Declared by:
networking.wireguard.interfaces.<name>.postShutdown¶
Commands called after shutting down the interface.
Type: strings concatenated with “\n” or list of strings convertible to it
Default:
""Example:
${pkgs.openresolv}/bin/resolvconf -d wg0Declared by:
networking.wireguard.interfaces.<name>.preSetup¶
Commands called at the start of the interface setup.
Type: strings concatenated with “\n” or list of strings convertible to it
Default:
""Example:
${pkgs.iproute}/bin/ip netns add fooDeclared by:
networking.wireguard.interfaces.<name>.privateKey¶
Base64 private key generated by wg genkey.
Warning: Consider using privateKeyFile instead if you do not want to store the key in the world-readable Nix store.
Type: null or string
Default:
nullExample:
"yAnz5TF+lXXJte14tji3zlMNq+hd2rYUIgJBgB3fBmk="Declared by:
networking.wireguard.interfaces.<name>.privateKeyFile¶
Private key file as generated by wg genkey.
Type: null or string
Default:
nullExample:
"/private/wireguard_key"Declared by:
networking.wireguard.interfaces.<name>.socketNamespace¶
The pre-existing network namespace in which the WireGuard interface is created, and which retains the socket even if the interface is moved via . When
null, the interface is created in the init namespace. See documentation.Type: null or string
Default:
nullExample:
"container"Declared by:
networking.wireguard.interfaces.<name>.table¶
The kernel routing table to add this interface’s associated routes to. Setting this is useful for e.g. policy routing (“ip rule”) or virtual routing and forwarding (“ip vrf”). Both numeric table IDs and table names (/etc/rt_tables) can be used. Defaults to “main”.
Type: string
Default:
"main"Declared by:
networking.wireless.enable¶
Whether to enable wpa_supplicant.
Type: boolean
Default:
falseExample:
trueDeclared by:
networking.wireless.driver¶
Force a specific wpa_supplicant driver.
Type: string
Default:
"nl80211,wext"Declared by:
networking.wireless.extraConfig¶
Extra lines appended to the configuration file. Seewpa_supplicant.conf5 for available options.
Type: string
Default:
""Example:
'' p2p_disabled=1 ''Declared by:
networking.wireless.interfaces¶
The interfaces wpa_supplicant will use. If empty, it will automatically use all wireless interfaces.
Type: list of strings
Default: ``[
]``
Example:
[ "wlan0" "wlan1" ]Declared by:
networking.wireless.iwd.enable¶
Whether to enable iwd.
Type: boolean
Default:
falseExample:
trueDeclared by:
networking.wireless.networks¶
The network definitions to automatically connect to when wpa_supplicant is running. If this parameter is left empty wpa_supplicant will use /etc/wpa_supplicant.conf as the configuration file.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ echelon = { # SSID with no spaces or special characters psk = "abcdefgh"; }; "echelon's AP" = { # SSID with spaces and/or special characters psk = "ijklmnop"; }; "free.wifi" = {}; # Public wireless network }Declared by:
networking.wireless.networks.<name>.auth¶
Use this option to configure advanced authentication methods like EAP. Seewpa_supplicant.conf5 for example configurations.
Mutually exclusive with
pskandpskRaw.Type: null or string
Default:
nullExample:
'' key_mgmt=WPA-EAP eap=PEAP identity="user@example.com" password="secret" ''Declared by:
networking.wireless.networks.<name>.extraConfig¶
Extra configuration lines appended to the network block. Seewpa_supplicant.conf5 for available options.
Type: string
Default:
""Example:
'' bssid_blacklist=02:11:22:33:44:55 02:22:aa:44:55:66 ''Declared by:
networking.wireless.networks.<name>.priority¶
By default, all networks will get same priority group (0). If some of the networks are more desirable, this field can be used to change the order in which wpa_supplicant goes through the networks when selecting a BSS. The priority groups will be iterated in decreasing priority (i.e., the larger the priority value, the sooner the network is matched against the scan results). Within each priority group, networks will be selected based on security policy, signal strength, etc.
Type: null or signed integer
Default:
nullDeclared by:
networking.wireless.networks.<name>.psk¶
The network’s pre-shared key in plaintext defaulting to being a network without any authentication.
Be aware that these will be written to the nix store in plaintext!
Mutually exclusive with
pskRaw.Type: null or string
Default:
nullDeclared by:
networking.wireless.networks.<name>.pskRaw¶
The network’s pre-shared key in hex defaulting to being a network without any authentication.
Mutually exclusive with
psk.Type: null or string
Default:
nullDeclared by:
networking.wireless.userControlled.enable¶
Allow normal users to control wpa_supplicant through wpa_gui or wpa_cli. This is useful for laptop users that switch networks a lot and don’t want to depend on a large package such as NetworkManager just to pick nearby access points.
When using a declarative network specification you cannot persist any settings via wpa_gui or wpa_cli.
Type: boolean
Default:
falseDeclared by:
networking.wireless.userControlled.group¶
Members of this group can control wpa_supplicant.
Type: string
Default:
"wheel"Example:
"network"Declared by:
networking.wlanInterfaces¶
Creating multiple WLAN interfaces on top of one physical WLAN device (NIC).
The name of the WLAN interface corresponds to the name of the attribute. A NIC is referenced by the persistent device name of the WLAN interface that``udev`` assigns to a NIC by default. If a NIC supports multiple WLAN interfaces, then the one NIC can be used as``device`` for multiple WLAN interfaces. If a NIC is used for creating WLAN interfaces, then the default WLAN interface with a persistent device name form
udevis not created. A WLAN interface with the persistent name assigned fromudevwould have to be created explicitly.Type: attribute set of submodules
Default: ``{
}``
Example:
*Declared by:*
networking.wlanInterfaces.<name>.device¶
The name of the underlying hardware WLAN device as assigned by
udev.Type: string
Example:
"wlp6s0"Declared by:
networking.wlanInterfaces.<name>.flags¶
Flags for interface of type
monitor.Type: null or one of “none”, “fcsfail”, “control”, “otherbss”, “cook”, “active”
Default:
nullExample:
"control"Declared by:
networking.wlanInterfaces.<name>.fourAddr¶
Whether to enable
4-address modewith typemanaged.Type: null or boolean
Default:
nullDeclared by:
networking.wlanInterfaces.<name>.mac¶
MAC address to use for the device. If
null, then the MAC of the underlying hardware WLAN device is used.INFO: Locally administered MAC addresses are of the form:
- x2:xx:xx:xx:xx:xx
- x6:xx:xx:xx:xx:xx
- xA:xx:xx:xx:xx:xx
- xE:xx:xx:xx:xx:xx
Type: null or string
Default:
nullExample:
"02:00:00:00:00:01"Declared by:
networking.wlanInterfaces.<name>.meshID¶
MeshID of interface with type
mesh.Type: null or string
Default:
nullDeclared by:
networking.wlanInterfaces.<name>.type¶
The type of the WLAN interface. The type has to be supported by the underlying hardware of the device.
Type: one of “managed”, “ibss”, “monitor”, “mesh”, “wds”
Default:
"managed"Example:
"ibss"Declared by:
nix.package¶
This option specifies the Nix package instance to use throughout the system.
Type: package
Default:
"pkgs.nix"Declared by:
nix.allowedUsers¶
A list of names of users (separated by whitespace) that are allowed to connect to the Nix daemon. As with, you can specify groups by prefixing them with
@. Also, you can allow all users by specifying*. The default is*. Note that trusted users are always allowed to connect.Type: list of strings
Default:
[ "\*" ]Example:
[ "@wheel" "@builders" "alice" "bob" ]Declared by:
nix.autoOptimiseStore¶
If set to true, Nix automatically detects files in the store that have identical contents, and replaces them with hard links to a single copy. This saves disk space. If set to false (the default), you can still run nix-store –optimise to get rid of duplicate files.
Type: boolean
Default:
falseExample:
trueDeclared by:
nix.binaryCachePublicKeys¶
List of public keys used to sign binary caches. If is enabled, then Nix will use a binary from a binary cache if and only if it is signed by any of the keys listed here. By default, only the key forcache.nixos.org is included.
Type: list of strings
Example:
[ "hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs=" ]Declared by:
nix.binaryCaches¶
List of binary cache URLs used to obtain pre-built binaries of Nix packages.
By default https://cache.nixos.org/ is added, to override it use
lib.mkForce \[].Type: list of strings
Declared by:
nix.buildCores¶
This option defines the maximum number of concurrent tasks during one build. It affects, e.g., -j option for make. The special value 0 means that the builder should use all available CPU cores in the system. Some builds may become non-deterministic with this option; use with care! Packages will only be affected if enableParallelBuilding is set for them.
Type: signed integer
Default:
0Example:
64Declared by:
nix.buildMachines¶
This option lists the machines to be used if distributed builds are enabled (see). 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), the path to the SSH private key to be used to connect (sshKey), a list of supported features of the machine (supportedFeatures) and a list of mandatory features of the machine (mandatoryFeatures). The SSH private key should not have a passphrase, and the corresponding public key should be added to:file:~ on the remote machine.Type: list of attribute sets
Default: ``[
]``
Example:
[ { hostName = "voila.labs.cs.uu.nl"; sshUser = "nix"; sshKey = "/root/.ssh/id_buildfarm"; system = "powerpc-darwin"; maxJobs = 1; } { hostName = "linux64.example.org"; sshUser = "buildfarm"; sshKey = "/root/.ssh/id_buildfarm"; system = "x86_64-linux"; maxJobs = 2; speedFactor = 2; supportedFeatures = [ "kvm" ]; mandatoryFeatures = [ "perf" ]; } ]Declared by:
nix.checkConfig¶
If enabled (the default), checks that Nix can parse the generated nix.conf.
Type: boolean
Default:
trueDeclared by:
nix.daemonIONiceLevel¶
Nix daemon process I/O priority. This priority propagates to build processes. 0 is the default Unix process I/O priority, 7 is the lowest.
Type: signed integer
Default:
0Declared by:
nix.daemonNiceLevel¶
Nix daemon process priority. This priority propagates to build processes. 0 is the default Unix process priority, 19 is the lowest.
Type: signed integer
Default:
0Declared by:
nix.distributedBuilds¶
Whether to distribute builds to the machines listed in.
Type: boolean
Default:
falseDeclared by:
nix.extraOptions¶
Additional text appended to
nix.conf.Type: strings concatenated with “\n”
Default:
""Example:
'' keep-outputs = true keep-derivations = true ''Declared by:
nix.gc.automatic¶
Automatically run the garbage collector at a specific time.
Type: boolean
Default:
falseDeclared by:
nix.gc.dates¶
Specification (in the format described bysystemd.time7) of the time at which the garbage collector will run.
Type: string
Default:
"03:15"Declared by:
nix.gc.options¶
Options given to
nix-collect-garbagewhen the garbage collector is run automatically.Type: string
Default:
""Example:
"--max-freed \\$((64 * 1024**3))"Declared by:
nix.maxJobs¶
This option defines the maximum number of jobs that Nix will try to build in parallel. The default is 1. You should generally set it to the total number of logical cores in your system (e.g., 16 for two CPUs with 4 cores each and hyper-threading).
Type: signed integer or one of “auto”
Default:
1Example:
64Declared by:
nix.nixPath¶
The default Nix expression search path, used by the Nix evaluator to look up paths enclosed in angle brackets (e.g.
<nixpkgs>).Type: list of strings
Default:
[ "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos" "nixos-config=/etc/nixos/configuration.nix" "/nix/var/nix/profiles/per-user/root/channels" ]Declared by:
nix.nrBuildUsers¶
Number of
nixblduser 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.Type: signed integer
Declared by:
nix.optimise.automatic¶
Automatically run the nix store optimiser at a specific time.
Type: boolean
Default:
falseDeclared by:
nix.optimise.dates¶
Specification (in the format described bysystemd.time7) of the time at which the optimiser will run.
Type: list of strings
Default:
[ "03:45" ]Declared by:
nix.readOnlyStore¶
If set, NixOS will enforce the immutability of the Nix store by making
/nix/storea read-only bind mount. Nix will automatically make the store writable when needed.Type: boolean
Default:
trueDeclared by:
nix.requireSignedBinaryCaches¶
If enabled (the default), Nix will only download binaries from binary caches if they are cryptographically signed with any of the keys listed in. If disabled, signatures are neither required nor checked, so it’s strongly recommended that you use only trustworthy caches and https to prevent man-in-the-middle attacks.
Type: boolean
Default:
trueDeclared by:
nix.sandboxPaths¶
Directories from the host filesystem to be included in the sandbox.
Type: list of strings
Default: ``[
]``
Example:
[ "/dev" "/proc" ]Declared by:
nix.sshServe.enable¶
Whether to enable serving the Nix store as a remote store via SSH.
Type: boolean
Default:
falseDeclared by:
nix.sshServe.keys¶
A list of SSH public keys allowed to access the binary cache via SSH.
Type: list of strings
Default: ``[
]``
Example:
[ "ssh-dss AAAAB3NzaC1k... alice@example.org" ]Declared by:
nix.sshServe.protocol¶
The specific Nix-over-SSH protocol to use.
Type: one of “ssh”, “ssh-ng”
Default:
"ssh"Declared by:
nix.systemFeatures¶
The supported features of a machine
Type: list of strings
Example:
[ "kvm" "big-parallel" "gccarch-skylake" ]Declared by:
nix.trustedBinaryCaches¶
List of binary cache URLs that non-root users can use (in addition to those specified using) by passing``–option binary-caches`` to Nix commands.
Type: list of strings
Default: ``[
]``
Example:
[ "http://hydra.nixos.org/" ]Declared by:
nix.trustedUsers¶
A list of names of users that have additional rights when connecting to the Nix daemon, such as the ability to specify additional binary caches, or to import unsigned NARs. You can also specify groups by prefixing them with``@``; for instance,``@wheel`` means all users in the wheel group.
Type: list of strings
Default:
[ "root" ]Example:
[ "root" "alice" "@wheel" ]Declared by:
nix.useSandbox¶
If set, Nix will perform builds in a sandboxed 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 by using network and mount namespaces in a chroot environment. This is enabled by default even though it has a possible performance impact due to the initial setup time of a sandbox for each build. It doesn’t affect derivation hashes, so changing this option will not trigger a rebuild of packages.
Type: boolean or one of “relaxed”
Default:
trueDeclared by:
nixops.enableDeprecatedAutoLuks¶
Whether to enable Enable the deprecated NixOps AutoLuks module.
Type: boolean
Default:
falseExample:
trueDeclared by:
nixpkgs.config¶
The configuration of the Nix Packages collection. (For details, see the Nixpkgs documentation.) It allows you to set package configuration options.
Ignored when nixpkgs.pkgs is set.
Type: nixpkgs config
Default: ``{
}``
Example:
{ allowBroken = true; allowUnfree = true; }Declared by:
nixpkgs.crossSystem¶
Specifies the platform for which NixOS should be built. Specify this only if it is different fromnixpkgs.localSystem, the platform*on* which NixOS should be built. In other words, specify this to cross-compile NixOS. Otherwise it should be set as null, the default. See its description in the Nixpkgs manual for more details.
Ignored when nixpkgs.pkgs is set.
Type: null or attribute set
Default:
(import "${nixos}/../lib").lib.systems.examples.aarch64-multiplatformExample:
{ config = "aarch64-unknown-linux-gnu"; system = "aarch64-linux"; }Declared by:
nixpkgs.localSystem¶
Specifies the platform on which NixOS should be built. Whennixpkgs.crossSystem is unset, it also specifies the platform for which NixOS should be built. If this option is unset, it defaults to the platform type of the machine where evaluation happens. Specifying this option is useful when doing distributed multi-platform deployment, or when building virtual machines. See its description in the Nixpkgs manual for more details.
Ignored when nixpkgs.pkgs is set.
Type: attribute set
Default:
(import "${nixos}/../lib").lib.systems.examples.aarch64-multiplatformExample:
{ config = "aarch64-unknown-linux-gnu"; system = "aarch64-linux"; }Declared by:
nixpkgs.overlays¶
List of overlays to use with the Nix Packages collection. (For details, see the Nixpkgs documentation.) It allows you to override packages globally. Each function in the list takes as an argument the original Nixpkgs. The first argument should be used for finding dependencies, and the second should be used for overriding recipes.
If nixpkgs.pkgs is set, overlays specified here will be applied after the overlays that were already present in nixpkgs.pkgs.
Type: list of nixpkgs overlays
Default: ``[
]``
Example:
[ (self: super: { openssh = super.openssh.override { hpnSupport = true; kerberos = self.libkrb5; }; }) ]Declared by:
nixpkgs.pkgs¶
If set, the pkgs argument to all NixOS modules is the value of this option, extended with nixpkgs.overlays, if that is also set. Either nixpkgs.crossSystem ornixpkgs.localSystem will be used in an assertion to check that the NixOS and Nixpkgs architectures match. Any other options in nixpkgs.*, notably config, will be ignored.
If unset, the pkgs argument to all NixOS modules is determined as shown in the default value for this option.
The default value imports the Nixpkgs source files relative to the location of this NixOS module, because NixOS and Nixpkgs are distributed together for consistency, so the nixos in the default value is in fact a relative path. The config, overlays,localSystem, and crossSystem come from this option’s siblings.
This option can be used by applications like NixOps to increase the performance of evaluation, or to create packages that depend on a container that should be built with the exact same evaluation of Nixpkgs, for example. Applications like this should set their default value using lib.mkDefault, so user-provided configuration can override it without usinglib.
Note that using a distinct version of Nixpkgs with NixOS may be an unexpected source of problems. Use this option with care.
Type: An evaluation of Nixpkgs; the top level attribute set of packages
Default:
import "${nixos}/.." { inherit (cfg) config overlays localSystem crossSystem; }Example:
import <nixpkgs> {}Declared by:
nixpkgs.system¶
Specifies the Nix platform type on which NixOS should be built. It is better to specify nixpkgs.localSystem instead.
{ nixpkgs.system = ..; }is the same as
{ nixpkgs.localSystem.system = ..; }See nixpkgs.localSystem for more information.
Ignored when nixpkgs.localSystem is set. Ignored when nixpkgs.pkgs is set.
Type: string
Example:
"i686-linux"Declared by:
power.ups.enable¶
Enables support for Power Devices, such as Uninterruptible Power Supplies, Power Distribution Units and Solar Controllers.
Type: boolean
Default:
falseDeclared by:
power.ups.maxStartDelay¶
This can be set as a global variable above your first UPS definition and it can also be set in a UPS section. This value controls how long upsdrvctl will wait for the driver to finish starting. This keeps your system from getting stuck due to a broken driver or UPS.
Type: signed integer
Default:
45Declared by:
power.ups.mode¶
The MODE determines which part of the NUT is to be started, and which configuration files must be modified.
The values of MODE can be:
- none: NUT is not configured, or use the Integrated Power
Management, or use some external system to startup NUT components. So nothing is to be started.
- standalone: This mode address a local only configuration, with 1
UPS protecting the local system. This implies to start the 3 NUT layers (driver, upsd and upsmon) and the matching configuration files. This mode can also address UPS redundancy.
- netserver: same as for the standalone configuration, but also
need some more ACLs and possibly a specific LISTEN directive in upsd.conf. Since this MODE is opened to the network, a special care should be applied to security concerns.
- netclient: this mode only requires upsmon.
Type: string
Default:
"standalone"Declared by:
power.ups.schedulerRules¶
File which contains the rules to handle UPS events.
Type: string
Example:
"/etc/nixos/upssched.conf"Declared by:
power.ups.ups¶
This is where you configure all the UPSes that this system will be monitoring directly. These are usually attached to serial ports, but USB devices are also supported.
Type: attribute set of submodules
Default: ``{
}``
Declared by:
power.ups.ups.<name>.description¶
Description of the UPS.
Type: string
Default:
""Declared by:
power.ups.ups.<name>.directives¶
power.ups.ups.<name>.driver¶
Specify the program to run to talk to this UPS. apcsmart, bestups, and sec are some examples.
Type: string
Declared by:
power.ups.ups.<name>.maxStartDelay¶
This can be set as a global variable above your first UPS definition and it can also be set in a UPS section. This value controls how long upsdrvctl will wait for the driver to finish starting. This keeps your system from getting stuck due to a broken driver or UPS.
Type: null or signed integer
Default:
nullDeclared by:
power.ups.ups.<name>.port¶
The serial port to which your UPS is connected. /dev/ttyS0 is usually the first port on Linux boxes, for example.
Type: string
Declared by:
power.ups.ups.<name>.shutdownOrder¶
When you have multiple UPSes on your system, you usually need to turn them off in a certain order. upsdrvctl shuts down all the 0s, then the 1s, 2s, and so on. To exclude a UPS from the shutdown sequence, set this to -1.
Type: signed integer
Default:
0Declared by:
power.ups.ups.<name>.summary¶
Lines which would be added inside ups.conf for handling this UPS.
Type: strings concatenated with “\n”
Default:
""Declared by:
powerManagement.enable¶
Whether to enable power management. This includes support for suspend-to-RAM and powersave features on laptops.
Type: boolean
Default:
trueDeclared by:
powerManagement.cpuFreqGovernor¶
Configure the governor used to regulate the frequence of the available CPUs. By default, the kernel configures the performance governor, although this may be overwritten in your hardware-configuration.nix file.
Often used values: “ondemand”, “powersave”, “performance”
Type: null or string
Default:
nullExample:
"ondemand"Declared by:
powerManagement.cpufreq.max¶
The maximum frequency the CPU will use. Defaults to the maximum possible.
Type: null or unsigned integer, meaning >=0
Default:
nullExample:
2200000Declared by:
powerManagement.cpufreq.min¶
The minimum frequency the CPU will use.
Type: null or unsigned integer, meaning >=0
Default:
nullExample:
800000Declared by:
powerManagement.powerDownCommands¶
Commands executed when the machine powers down. That is, they’re executed both when the system shuts down and when it goes to suspend or hibernation.
Type: strings concatenated with “\n”
Default:
""Example:
"${pkgs.hdparm}/sbin/hdparm -B 255 /dev/sda"Declared by:
powerManagement.powerUpCommands¶
Commands 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.
Type: strings concatenated with “\n”
Default:
""Example:
"${pkgs.hdparm}/sbin/hdparm -B 255 /dev/sda"Declared by:
powerManagement.powertop.enable¶
Whether to enable powertop auto tuning on startup.
Type: boolean
Default:
falseExample:
trueDeclared by:
powerManagement.resumeCommands¶
Commands executed after the system resumes from suspend-to-RAM.
Type: strings concatenated with “\n”
Default:
""Declared by:
powerManagement.scsiLinkPolicy¶
SCSI link power management policy. The kernel default is “max_performance”.
“med_power_with_dipm” is supported by kernel versions 4.15 and newer.
Type: null or one of “min_power”, “max_performance”, “medium_power”, “med_power_with_dipm”
Default:
nullDeclared by:
programs.adb.enable¶
Whether to configure system to use Android Debug Bridge (adb). To grant access to a user, it must be part of adbusers group:users.users.alice.extraGroups = [“adbusers”];
Type: boolean
Default:
falseDeclared by:
programs.atop.settings¶
Parameters to be written to
/etc/atoprc.Type: attribute set
Default: ``{
}``
Example:
{ flags = "a1f"; interval = 5; }Declared by:
programs.autojump.enable¶
Whether to enable autojump.
Type: boolean
Default:
falseDeclared by:
programs.bandwhich.enable¶
Whether to add bandwhich to the global environment and configure a setcap wrapper for it.
Type: boolean
Default:
falseDeclared by:
programs.bash.enableCompletion¶
Enable Bash completion for all interactive bash shells.
Type: boolean
Default:
trueDeclared by:
programs.bash.enableLsColors¶
Enable extra colors in directory listings.
Type: boolean
Default:
trueDeclared by:
programs.bash.interactiveShellInit¶
Shell script code called during interactive bash shell initialisation.
Type: strings concatenated with “\n”
Default:
""Declared by:
programs.bash.loginShellInit¶
Shell script code called during login bash shell initialisation.
Type: strings concatenated with “\n”
Default:
""Declared by:
programs.bash.promptInit¶
Shell script code used to initialise the bash prompt.
Type: strings concatenated with “\n”
Default:
'' # Provide a nice prompt if the terminal supports it. if [ "$TERM" != "dumb" -o -n "$INSIDE_EMACS" ]; then PROMPT_COLOR="1;31m" let $UID && PROMPT_COLOR="1;32m" if [ -n "$INSIDE_EMACS" -o "$TERM" == "eterm" -o "$TERM" == "eterm-color" ]; then # Emacs term mode doesn't support xterm title escape sequence (\e]0;) PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] " else PS1="\n\[\033[$PROMPT_COLOR\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\\$\[\033[0m\] " fi if test "$TERM" = "xterm"; then PS1="\[\033]2;\h:\u:\w\007\]$PS1" fi fi ''Declared by:
programs.bash.shellAliases¶
Set of aliases for bash shell, which overrides . See for an option format description.
Type: attribute set of null or string or paths
Default: ``{
}``
Declared by:
programs.bash.shellInit¶
Shell script code called during bash shell initialisation.
Type: strings concatenated with “\n”
Default:
""Declared by:
programs.bash.vteIntegration¶
Whether to enable Bash integration for VTE terminals. This allows it to preserve the current directory of the shell across terminals.
Type: boolean
Default:
falseDeclared by:
programs.bash-my-aws.enable¶
Whether to enable bash-my-aws.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.bcc.enable¶
Whether to enable bcc.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.browserpass.enable¶
Whether to enable Browserpass native messaging host.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.captive-browser.enable¶
Whether to enable captive browser.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.captive-browser.package¶
Which package to use for captive-browser
Type: package
Default:
"pkgs.captive-browser"Declared by:
programs.captive-browser.bindInterface¶
Binds captive-browser to the network interface declared in``cfg.interface``. This can be used to avoid collisions with private subnets.
Type: boolean
Default:
trueDeclared by:
programs.captive-browser.browser¶
The shell (/bin/sh) command executed once the proxy starts. When browser exits, the proxy exits. An extra env var PROXY is available.
Here, we use a separate Chrome instance in Incognito mode, so that it can run (and be waited for) alongside the default one, and that it maintains no state across runs. To configure this browser open a normal window in it, settings will be preserved.
@volth: chromium is to open a plain HTTP (not HTTPS nor redirect to HTTPS!) website. upstream uses http://example.com but I have seen captive portals whose DNS server resolves “example.com” to 127.0.0.1
Type: string
Default:
''''${pkgs.chromium}/bin/chromium --user-data-dir=$HOME/.chromium-captive --proxy-server="socks5://$PROXY" --host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE localhost" --no-first-run --new-window --incognito http://cache.nixos.org/''Declared by:
programs.captive-browser.dhcp-dns¶
The shell (/bin/sh) command executed to obtain the DHCP DNS server address. The first match of an IPv4 regex is used. IPv4 only, because let’s be real, it’s a captive portal.
Type: string
Declared by:
programs.captive-browser.interface¶
your public network interface (wlp3s0, wlan0, eth0, …)
Type: string
Declared by:
programs.captive-browser.socks5-addr¶
the listen address for the SOCKS5 proxy server
Type: string
Default:
"localhost:1666"Declared by:
programs.ccache.enable¶
Whether to enable CCache.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.ccache.packageNames¶
Nix top-level packages to be compiled using CCache
Type: list of strings
Default: ``[
]``
Example:
[ "wxGTK30" "qt48" "ffmpeg_3_3" "libav_all" ]Declared by:
programs.ccache.cacheDir¶
CCache directory
Type: path
Default:
"/var/cache/ccache"Declared by:
programs.cdemu.enable¶
cdemu for members of.
Type: unspecified
Default:
falseDeclared by:
programs.cdemu.group¶
Group that users must be in to use cdemu.
Type: unspecified
Default:
"cdrom"Declared by:
programs.cdemu.gui¶
Whether to install the cdemu GUI (gCDEmu).
Type: unspecified
Default:
trueDeclared by:
programs.cdemu.image-analyzer¶
Whether to install the image analyzer.
Type: unspecified
Default:
trueDeclared by:
programs.chromium.enable¶
Whether to enable chromium policies.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.chromium.defaultSearchProviderSearchURL¶
Chromium default search provider url.
Type: null or string
Default:
nullExample:
"https://encrypted.google.com/search?q={searchTerms}&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:searchClient}{google:sourceId}{google:instantExtendedEnabledParameter}ie={inputEncoding}"Declared by:
programs.chromium.defaultSearchProviderSuggestURL¶
Chromium default search provider url for suggestions.
Type: null or string
Default:
nullExample:
"https://encrypted.google.com/complete/search?output=chrome&q={searchTerms}"Declared by:
programs.chromium.extensions¶
List of chromium extensions to install. For list of plugins ids see id in url of extensions on`chrome web store <https://chrome.google.com/webstore/category/extensions>`_ page.
Type: list of strings
Default: ``[
]``
Example:
[ "chlffgpmiacpedhhbkiomidkjlcfhogd" # pushbullet "mbniclmhobmnbdlbpiphghaielnnpgdp" # lightshot "gcbommkclmclpchllfjekcdonpmejbdp" # https everywhere "cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin ]Declared by:
programs.chromium.extraOpts¶
Extra chromium policy options, see`https://www.chromium.org/administrators/policy-list-3 <https://www.chromium.org/administrators/policy-list-3>`_ for a list of avalible options
Type: attribute set
Default: ``{
}``
Declared by:
programs.chromium.homepageLocation¶
Chromium default homepage
Type: null or string
Default:
nullExample:
"https://nixos.org"Declared by:
programs.command-not-found.enable¶
Whether interactive shells should show which Nix package (if any) provides a missing command.
Type: boolean
Default:
trueDeclared by:
programs.command-not-found.dbPath¶
Absolute path to programs.sqlite.
By default this file will be provided by your channel (nixexprs.tar.xz).
Type: path
Default:
"/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite"Declared by:
programs.criu.enable¶
Install criu along with necessary kernel options.
Type: unspecified
Default:
falseDeclared by:
programs.dconf.enable¶
Whether to enable dconf.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.digitalbitbox.enable¶
Installs the Digital Bitbox application and enables the complementary hardware module.
Type: boolean
Default:
falseDeclared by:
programs.digitalbitbox.package¶
The Digital Bitbox package to use. This can be used to install a package with udev rules that differ from the defaults.
Type: package
Default:
"pkgs.digitalbitbox"Declared by:
programs.dmrconfig.enable¶
Whether to configure system to enable use of dmrconfig. This enables the required udev rules and installs the program.
Type: boolean
Default:
falseRelated packages:
pkgs.dmrconfig (dmrconfig-1.1): Configuration utility for DMR radios.DMRconfig is a utility for programming digital radios via USB programming cable.Declared by:
programs.dmrconfig.package¶
dmrconfig derivation to use
Type: package
Default:
"pkgs.dmrconfig"Declared by:
programs.evince.enable¶
Whether to enable Evince, the GNOME document viewer.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.file-roller.enable¶
Whether to enable File Roller, an archive manager for GNOME.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.firejail.enable¶
Whether to enable firejail.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.firejail.wrappedBinaries¶
Wrap the binaries in firejail and place them in the global path.
You will get file collisions if you put the actual application binary in the global environment and applications started via .desktop files are not wrapped if they specify the absolute path to the binary.
Type: attribute set
Default: ``{
}``
Declared by:
programs.fish.enable¶
Whether to configure fish as an interactive shell.
Type: boolean
Default:
falseDeclared by:
programs.fish.interactiveShellInit¶
Shell script code called during interactive fish shell initialisation.
Type: strings concatenated with “\n”
Default:
""Declared by:
programs.fish.loginShellInit¶
Shell script code called during fish login shell initialisation.
Type: strings concatenated with “\n”
Default:
""Declared by:
programs.fish.promptInit¶
Shell script code used to initialise fish prompt.
Type: strings concatenated with “\n”
Default:
""Declared by:
programs.fish.shellAliases¶
Set of aliases for fish shell, which overrides . See for an option format description.
Type: attribute set of null or string or paths
Default: ``{
}``
Declared by:
programs.fish.shellInit¶
Shell script code called during fish shell initialisation.
Type: strings concatenated with “\n”
Default:
""Declared by:
programs.fish.vendor.completions.enable¶
Whether fish should use completion files provided by other packages.
Type: boolean
Default:
trueDeclared by:
programs.fish.vendor.config.enable¶
Whether fish should source configuration snippets provided by other packages.
Type: boolean
Default:
trueDeclared by:
programs.fish.vendor.functions.enable¶
Whether fish should autoload fish functions provided by other packages.
Type: boolean
Default:
trueDeclared by:
programs.fuse.mountMax¶
Set the maximum number of FUSE mounts allowed to non-root users.
Type: integer between 0 and 32767 (both inclusive)
Default:
1000Declared by:
programs.fuse.userAllowOther¶
Allow non-root users to specify the allow_other or allow_root mount options, see mount.fuse3(8).
Type: boolean
Default:
falseDeclared by:
programs.geary.enable¶
Whether to enable Geary, a Mail client for GNOME 3.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.gnome-disks.enable¶
Whether to enable GNOME Disks daemon, a program designed to be a UDisks2 graphical front-end.
Type: boolean
Default:
falseDeclared by:
programs.gnome-documents.enable¶
Whether to enable GNOME Documents, a document manager application for GNOME.
Type: boolean
Default:
falseDeclared by:
programs.gnome-terminal.enable¶
Whether to enable GNOME Terminal.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.gnupg.package¶
The gpg package that should be used.
Type: package
Default:
"pkgs.gnupg"Declared by:
programs.gnupg.agent.enable¶
Enables GnuPG agent with socket-activation for every user session.
Type: boolean
Default:
falseDeclared by:
programs.gnupg.agent.enableBrowserSocket¶
Enable browser socket for GnuPG agent.
Type: boolean
Default:
falseDeclared by:
programs.gnupg.agent.enableExtraSocket¶
Enable extra socket for GnuPG agent.
Type: boolean
Default:
falseDeclared by:
programs.gnupg.agent.enableSSHSupport¶
Enable SSH agent support in GnuPG agent. Also sets SSH_AUTH_SOCK environment variable correctly. This will disable socket-activation and thus always start a GnuPG agent per user session.
Type: boolean
Default:
falseDeclared by:
programs.gnupg.agent.pinentryFlavor¶
Which pinentry interface to use. If not null, the path to the pinentry binary will be passed to gpg-agent via commandline and thus overrides the pinentry option in gpg-agent.conf in the user’s home directory. If not set at all, it’ll pick an appropriate flavor depending on the system configuration (qt flavor for lxqt and plasma5, gtk2 for xfce 4.12, gnome3 on all other systems with X enabled, ncurses otherwise).
Type: null or one of “curses”, “tty”, “gtk2”, “qt”, “gnome3”, “emacs”
Example:
"gnome3"Declared by:
programs.gnupg.dirmngr.enable¶
Enables GnuPG network certificate management daemon with socket-activation for every user session.
Type: boolean
Default:
falseDeclared by:
programs.gpaste.enable¶
Whether to enable GPaste, a clipboard manager.
Type: boolean
Default:
falseDeclared by:
programs.gphoto2.enable¶
Whether to configure system to use gphoto2. To grant digital camera access to a user, the user must be part of the camera group:users.users.alice.extraGroups = [“camera”];
Type: boolean
Default:
falseDeclared by:
programs.iftop.enable¶
Whether to enable iftop + setcap wrapper.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.iotop.enable¶
Whether to enable iotop + setcap wrapper.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.java.enable¶
Install and setup the Java development kit.
Note
This adds JAVA_HOME to the global environment, by sourcing the jdk’s setup-hook on shell init. It is equivalent to starting a shell through ‘nix-shell -p jdk’, or roughly the following system-wide configuration:
environment.variables.JAVA_HOME = ${pkgs.jdk.home}/lib/openjdk; environment.systemPackages = [ pkgs.jdk ];Type: boolean
Default:
falseExample:
trueDeclared by:
programs.java.package¶
Java package to install. Typical values are pkgs.jdk or pkgs.jre.
Type: package
Default:
"pkgs.jdk"Declared by:
programs.kbdlight.enable¶
Whether to enable kbdlight.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.less.enable¶
Whether to enable less.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.less.clearDefaultCommands¶
Clear all default commands. You should remember to set the quit key. Otherwise you will not be able to leave less without killing it.
Type: boolean
Default:
falseDeclared by:
programs.less.commands¶
Defines new command keys.
Type: attribute set of strings
Default: ``{
}``
Example:
{ h = ''noaction 5\\e(''; l = ''noaction 5\\e)''; }Declared by:
programs.less.configFile¶
Path to lesskey configuration file.
takes precedence over ,, , and.
Type: null or path
Default:
nullExample:
$${pkgs.my-configs}/lesskeyDeclared by:
programs.less.envVariables¶
Defines environment variables.
Type: attribute set of strings
Default: ``{
}``
Example:
{ LESS = "--quit-if-one-screen"; }Declared by:
programs.less.lessclose¶
When less closes a file opened in such a way, it will call another program, called the input postprocessor, which may perform any desired clean-up action (such as deleting the replacement file created by LESSOPEN).
Type: null or string
Default:
nullDeclared by:
programs.less.lessopen¶
Before less opens a file, it first gives your input preprocessor a chance to modify the way the contents of the file are displayed.
Type: null or string
Default:
"\|\\${pkgs.lesspipe}/bin/lesspipe.sh %s"Declared by:
programs.less.lineEditingKeys¶
Defines new line-editing keys.
Type: attribute set of strings
Default: ``{
}``
Example:
{ e = "abort"; }Declared by:
programs.liboping.enable¶
Whether to enable liboping.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.light.enable¶
Whether to install Light backlight control command and udev rules granting access to members of the “video” group.
Type: boolean
Default:
falseDeclared by:
programs.mininet.enable¶
Whether to enable Mininet.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.mosh.enable¶
Whether to enable mosh. Note, this will open ports in your firewall!
Type: boolean
Default:
falseDeclared by:
programs.mosh.withUtempter¶
Whether to enable libutempter for mosh. This is required so that mosh can write to /var/run/utmp (which can be queried with `who` to display currently connected user sessions). Note, this will add a guid wrapper for the group utmp!
Type: boolean
Default:
trueDeclared by:
programs.mtr.enable¶
Whether to add mtr to the global environment and configure a setcap wrapper for it.
Type: boolean
Default:
falseDeclared by:
programs.mtr.package¶
The package to use.
Type: package
Default:
*(build of mtr-0.93)*Declared by:
programs.nano.nanorc¶
The system-wide nano configuration. See nanorc5.
Type: strings concatenated with “\n”
Default:
""Example:
'' set nowrap set tabstospaces set tabsize 2 ''Declared by:
programs.nano.syntaxHighlight¶
Whether to enable syntax highlight for various languages.
Type: boolean
Default:
trueDeclared by:
programs.nm-applet.enable¶
Whether to enable nm-applet.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.npm.enable¶
Whether to enable npm global config.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.npm.npmrc¶
The system-wide npm configuration. See ` <https://docs.npmjs.com/misc/config>`_.
Type: strings concatenated with “\n”
Default:
'' prefix = ''${HOME}/.npm ''Example:
'' prefix = ''${HOME}/.npm https-proxy=proxy.example.com init-license=MIT init-author-url=http://npmjs.org color=true ''Declared by:
programs.plotinus.enable¶
Whether to enable the Plotinus GTK 3 plugin. Plotinus provides a popup (triggered by Ctrl-Shift-P) to search the menus of a compatible application.
Type: boolean
Default:
falseDeclared by:
programs.qt5ct.enable¶
Whether to enable the Qt5 Configuration Tool (qt5ct), a program that allows users to configure Qt5 settings (theme, font, icons, etc.) under desktop environments or window manager without Qt integration.
Official home page: https://sourceforge.net/projects/qt5ct/
Type: boolean
Default:
falseDeclared by:
programs.screen.screenrc¶
The contents of /etc/screenrc file.
Type: strings concatenated with “\n”
Default:
""Declared by:
programs.seahorse.enable¶
Whether to enable Seahorse, a GNOME application for managing encryption keys and passwords in the GNOME Keyring.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.sedutil.enable¶
Whether to enable sedutil.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.singularity.enable¶
Whether to enable Singularity.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.slock.enable¶
Whether to install slock screen locker with setuid wrapper.
Type: boolean
Default:
falseDeclared by:
programs.spacefm.enable¶
Whether to install SpaceFM and create
/etc/spacefm/spacefm.conf.Type: boolean
Default:
falseDeclared by:
programs.spacefm.settings¶
The system-wide spacefm configuration. Parameters to be written to
/etc/spacefm/spacefm.conf. Refer to the relevant entry in the SpaceFM manual.Type: attribute set
Default:
{ graphical_su = "\\${pkgs.gksu}/bin/gksu"; terminal_su = "\\${pkgs.sudo}/bin/sudo"; tmp_dir = "/tmp"; }Example:
{ tmp_dir = "/tmp"; terminal_su = "${pkgs.sudo}/bin/sudo"; graphical_su = "${pkgs.gksu}/bin/gksu"; }Declared by:
programs.ssh.package¶
The package used for the openssh client and daemon.
Type: package
Default:
"pkgs.openssh"Declared by:
programs.ssh.agentPKCS11Whitelist¶
A pattern-list of acceptable paths for PKCS#11 shared libraries that may be used with the -s option to ssh-add.
Type: null or string
Default:
nullExample:
"\\${pkgs.opensc}/lib/opensc-pkcs11.so"Declared by:
programs.ssh.agentTimeout¶
How long to keep the private keys in memory. Use null to keep them forever.
Type: null or string
Default:
nullExample:
"1h"Declared by:
programs.ssh.askPassword¶
Program used by SSH to ask for passwords.
Type: string
Default:
"\\${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass"Declared by:
programs.ssh.extraConfig¶
Extra configuration text prepended to
ssh_config. Other generated options will be added after a Host * pattern. See ssh_config5 for help.Type: strings concatenated with “\n”
Default:
""Declared by:
programs.ssh.forwardX11¶
Whether to request X11 forwarding on outgoing connections by default. This is useful for running graphical programs on the remote machine and have them display to your local X11 server. Historically, this value has depended on the value used by the local sshd daemon, but there really isn’t a relation between the two. Note: there are some security risks to forwarding an X11 connection. NixOS’s X server is built with the SECURITY extension, which prevents some obvious attacks. To enable or disable forwarding on a per-connection basis, see the -X and -x options to ssh. The -Y option to ssh enables trusted forwarding, which bypasses the SECURITY extension.
Type: boolean
Default:
falseDeclared by:
programs.ssh.hostKeyAlgorithms¶
Specifies the host key algorithms that the client wants to use in order of preference.
Type: list of strings
Default:
[ "+ssh-dss" ]Example:
[ "ssh-ed25519" "ssh-rsa" ]Declared by:
programs.ssh.knownHosts¶
The set of system-wide known SSH hosts.
Type: list or attribute set of submodules
Default: ``{
}``
Example:
{ myhost = { hostNames = [ "myhost" "myhost.mydomain.com" "10.10.1.4" ]; publicKeyFile = ./pubkeys/myhost_ssh_host_dsa_key.pub; }; myhost2 = { hostNames = [ "myhost2" ]; publicKeyFile = ./pubkeys/myhost2_ssh_host_dsa_key.pub; }; }Declared by:
programs.ssh.knownHosts.<name?>.certAuthority¶
This public key is an SSH certificate authority, rather than an individual host’s key.
Type: boolean
Default:
falseDeclared by:
programs.ssh.knownHosts.<name?>.hostNames¶
A list of host names and/or IP numbers used for accessing the host’s ssh service.
Type: list of strings
Default: ``[
]``
Declared by:
programs.ssh.knownHosts.<name?>.publicKey¶
The public key data for the host. You can fetch a public key from a running SSH server with the ssh-keyscan command. The public key should not include any host names, only the key type and the key itself.
Type: null or string
Default:
nullExample:
"ecdsa-sha2-nistp521 AAAAE2VjZHN...UEPg=="Declared by:
programs.ssh.knownHosts.<name?>.publicKeyFile¶
The path to the public key file for the host. The public key file is read at build time and saved in the Nix store. You can fetch a public key file from a running SSH server with the ssh-keyscan command. The content of the file should follow the same format as described for the
publicKeyoption.Type: null or path
Default:
nullDeclared by:
programs.ssh.pubkeyAcceptedKeyTypes¶
Specifies the key types that will be used for public key authentication.
Type: list of strings
Default:
[ "+ssh-dss" ]Example:
[ "ssh-ed25519" "ssh-rsa" ]Declared by:
programs.ssh.setXAuthLocation¶
Whether to set the path to xauth for X11-forwarded connections. This causes a dependency on X11 packages.
Type: boolean
Declared by:
programs.ssh.startAgent¶
Whether to start the OpenSSH agent when you log in. The OpenSSH agent remembers private keys for you so that you don’t have to type in passphrases every time you make an SSH connection. Use:command:ssh-add to add a key to the agent.
Type: boolean
Default:
falseDeclared by:
programs.sway.enable¶
Whether to enable Sway, the i3-compatible tiling Wayland compositor. You can manually launch Sway by executing “exec sway” on a TTY. Copy /etc/sway/config to ~/.config/sway/config to modify the default configuration. See https://github.com/swaywm/sway/wiki and “man 5 sway” for more information. Please have a look at the “extraSessionCommands” example for running programs natively under Wayland.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.sway.extraOptions¶
Command line arguments passed to launch Sway. Please DO NOT report issues if you use an unsupported GPU (proprietary drivers).
Type: list of strings
Default: ``[
]``
Example:
[ "--verbose" "--debug" "--unsupported-gpu" "--my-next-gpu-wont-be-nvidia" ]Declared by:
programs.sway.extraPackages¶
Extra packages to be installed system wide.
Type: list of packages
Default:
with pkgs; [ swaylock swayidle xwayland rxvt-unicode dmenu ];Example:
with pkgs; [ xwayland i3status i3status-rust termite rofi light ]Declared by:
programs.sway.extraSessionCommands¶
Shell commands executed just before Sway is started.
Type: strings concatenated with “\n”
Default:
""Example:
'' export SDL_VIDEODRIVER=wayland # needs qt5.qtwayland in systemPackages export QT_QPA_PLATFORM=wayland export QT_WAYLAND_DISABLE_WINDOWDECORATION="1" # Fix for some Java AWT applications (e.g. Android Studio), # use this if they aren't displayed properly: export _JAVA_AWT_WM_NONREPARENTING=1 ''Declared by:
programs.sway.wrapperFeatures¶
Attribute set of features to enable in the wrapper.
Type: submodule
Default: ``{
}``
Example:
{ gtk = true; }Declared by:
programs.sway.wrapperFeatures.base¶
Whether to make use of the base wrapper to execute extra session commands and prepend a dbus-run-session to the sway command.
Type: boolean
Default:
trueExample:
falseDeclared by:
programs.sway.wrapperFeatures.gtk¶
Whether to make use of the wrapGAppsHook wrapper to execute sway with required environment variables for GTK applications.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.sysdig.enable¶
Whether to enable sysdig.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.system-config-printer.enable¶
Whether to enable system-config-printer, a Graphical user interface for CUPS administration.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.systemtap.enable¶
Install systemtap along with necessary kernel options.
Type: unspecified
Default:
falseDeclared by:
programs.thefuck.enable¶
Whether to enable thefuck.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.thefuck.alias¶
thefuck needs an alias to be configured. The default value is `fuck`, but you can use anything else as well.
Type: string
Default:
"fuck"Declared by:
programs.tmux.enable¶
Whenever to configure tmux system-wide.
Type: boolean
Default:
falseRelated packages:
pkgs.tmux (tmux-3.0a): Terminal multiplexer.tmux is intended to be a modern, BSD-licensed alternative to programs such as GNU screen. Major features include: * A powerful, consistent, well-documented and easily scriptable command interface. * A window may be split horizontally and vertically into panes. * Panes can be freely moved and resized, or arranged into preset layouts. * Support for UTF-8 and 256-colour terminals. * Copy and paste with multiple buffers. * Interactive menus to select windows, sessions or clients. * Change the current window by searching for text in the target. * Terminal locking, manually or after a timeout. * A clean, easily extended, BSD-licensed codebase, under active development.Declared by:
programs.tmux.aggressiveResize¶
Resize the window to the size of the smallest session for which it is the current window.
Type: boolean
Default:
falseDeclared by:
programs.tmux.baseIndex¶
Base index for windows and panes.
Type: signed integer
Default:
0Example:
1Declared by:
programs.tmux.clock24¶
Use 24 hour clock.
Type: boolean
Default:
falseDeclared by:
programs.tmux.escapeTime¶
Time in milliseconds for which tmux waits after an escape is input.
Type: signed integer
Default:
500Example:
0Declared by:
programs.tmux.extraConfig¶
Additional contents of /etc/tmux.conf
Type: strings concatenated with “\n”
Default:
""Declared by:
programs.tmux.historyLimit¶
Maximum number of lines held in window history.
Type: signed integer
Default:
2000Example:
5000Declared by:
programs.tmux.keyMode¶
VI or Emacs style shortcuts.
Type: one of “emacs”, “vi”
Default:
"emacs"Example:
"vi"Declared by:
programs.tmux.newSession¶
Automatically spawn a session if trying to attach and none are running.
Type: boolean
Default:
falseDeclared by:
programs.tmux.resizeAmount¶
Number of lines/columns when resizing.
Type: signed integer
Default:
5Example:
10Declared by:
programs.tmux.reverseSplit¶
Reverse the window split shortcuts.
Type: boolean
Default:
falseDeclared by:
programs.tmux.secureSocket¶
Store tmux socket under /run, which is more secure than /tmp, but as a downside it doesn’t survive user logout.
Type: boolean
Default:
trueDeclared by:
programs.tmux.shortcut¶
Ctrl following by this key is used as the main shortcut.
Type: string
Default:
"b"Example:
"a"Declared by:
programs.tmux.terminal¶
Set the $TERM variable.
Type: string
Default:
"screen"Example:
"screen-256color"Declared by:
programs.traceroute.enable¶
Whether to configure a setcap wrapper for traceroute.
Type: boolean
Default:
falseDeclared by:
programs.tsmClient.enable¶
Whether to enable IBM Spectrum Protect (Tivoli Storage Manager, TSM) client command line applications with a client system-options file “dsm.sys” .
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.tsmClient.package¶
The TSM client derivation to be added to the system environment. It will called with
.overrideto add paths to the client system-options file.Type: package
Default:
"pkgs.tsm-client"Example:
pkgs.tsm-client-withGuiDeclared by:
programs.tsmClient.defaultServername¶
If multiple server stanzas are declared with, this option may be used to name a default server stanza that IBM TSM uses in the absence of a user-defined
dsm.optfile. This option translates to a``defaultserver`` configuration line.Type: null or string matching the pattern .{1,64}
Default:
nullExample:
"mainTsmServer"Declared by:
programs.tsmClient.dsmSysText¶
This configuration key contains the effective text of the client system-options file “dsm.sys”. It should not be changed, but may be used to feed the configuration into other TSM-depending packages used on the system.
Type: strings concatenated with “\n” (read only)
Declared by:
programs.tsmClient.servers¶
Server definitions (“stanzas”) for the client system-options file.
Type: list or attribute set of submodules
Default: ``{
}``
Example:
{ mainTsmServer = { extraConfig = { compression = "yes"; } ; node = "MY-TSM-NODE"; server = "tsmserver.company.com"; } ; }Declared by:
programs.tsmClient.servers.<name?>.extraConfig¶
Additional key-value pairs for the server stanza. Values must be strings, or
nullfor the key not to be used in the stanza (e.g. to overrule values generated by other options).Type: attribute set of null or strings
Default: ``{
}``
Example:
{ compression = "yes"; passwordaccess = null; }Declared by:
programs.tsmClient.servers.<name?>.genPasswd¶
Whether to enable automatic client password generation. This option influences the``passwordaccess`` directive in
dsm.sys. The password will be stored in the directory given by the option .*Caution*: If this option is enabled and the server forces to renew the password (e.g. on first connection), a random password will be generated and stored .Type: boolean
Default:
falseExample:
trueDeclared by:
programs.tsmClient.servers.<name?>.includeExclude¶
include.*and``exclude.*`` directives to be used when sending files to the IBM TSM server. The lines will be written into a file that the``inclexcl`` directive indsm.syspoints to.Type: strings concatenated with “\n”
Default:
""Example:
'' exclude.dir /nix/store include.encrypt /home/.../* ''Declared by:
programs.tsmClient.servers.<name?>.name¶
Local name of the IBM TSM server, must be uncapitalized and no longer than 64 chars. The value will be used for the``server`` directive in
dsm.sys.Type: string matching the pattern .{1,64}
Example:
"mainTsmServer"Declared by:
programs.tsmClient.servers.<name?>.node¶
Target node name on the IBM TSM server. The value will be used for the``nodename`` directive in
dsm.sys.Type: string matching the pattern .+
Example:
"MY-TSM-NODE"Declared by:
programs.tsmClient.servers.<name?>.passwdDir¶
Directory that holds the TSM node’s password information. The value will be used for the``passworddir`` directive in
dsm.sys.Type: path
Example:
"/home/alice/tsm-password"Declared by:
programs.tsmClient.servers.<name?>.port¶
TCP port of the IBM TSM server. The value will be used for the``tcpport`` directive in
dsm.sys. TSM does not support ports above 32767.Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
1500Declared by:
programs.tsmClient.servers.<name?>.server¶
Host/domain name or IP address of the IBM TSM server. The value will be used for the``tcpserveraddress`` directive in
dsm.sys.Type: string matching the pattern .+
Example:
"tsmserver.company.com"Declared by:
programs.tsmClient.servers.<name?>.text¶
Additional text lines for the server stanza. This option can be used if certion configuration keys must be used multiple times or ordered in a certain way as the option can’t control the order of lines in the resulting stanza. Note that the
serverline at the beginning of the stanza is not part of this option’s value.Type: strings concatenated with “\n”
Example:
lib.modules.mkAfter "compression no"Declared by:
programs.tsmClient.wrappedPackage¶
The TSM client derivation, wrapped with the path to the client system-options file “dsm.sys”. This option is to provide the effective derivation for other modules that want to call TSM executables.
Type: package (read only)
Declared by:
programs.udevil.enable¶
Whether to enable udevil.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.usbtop.enable¶
Whether to enable usbtop and required kernel module.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.vim.defaultEditor¶
When enabled, installs vim and configures vim to be the default editor using the EDITOR environment variable.
Type: boolean
Default:
falseDeclared by:
programs.wavemon.enable¶
Whether to add wavemon to the global environment and configure a setcap wrapper for it.
Type: boolean
Default:
falseDeclared by:
programs.waybar.enable¶
Whether to enable waybar.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.wireshark.enable¶
Whether to add Wireshark to the global environment and configure a setcap wrapper for ‘dumpcap’ for users in the ‘wireshark’ group.
Type: boolean
Default:
falseDeclared by:
programs.wireshark.package¶
Which Wireshark package to install in the global environment.
Type: package
Default:
"pkgs.wireshark-cli"Declared by:
programs.x2goserver.enable¶
Enables the x2goserver module. NOTE: This will create a good amount of symlinks in `/usr/local/bin`
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.x2goserver.nxagentDefaultOptions¶
List of default nx agent options.
Type: list of strings
Default:
[ "-extension GLX" "-nolisten tcp" ]Example:
[ "-extension GLX" "-nolisten tcp" ]Declared by:
programs.x2goserver.settings¶
x2goserver.conf ini configuration as nix attributes. See `x2goserver.conf(5)` for details
Type: attribute set of attribute sets
Default: ``{
}``
Example:
superenicer = { "enable" = "yes"; "idle-nice-level" = 19; }; telekinesis = { "enable" = "no"; };Declared by:
programs.x2goserver.superenicer.enable¶
Enables the SupeReNicer code in x2gocleansessions, this will renice suspended sessions to nice level 19 and renice them to level 0 if the session becomes marked as running again
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.xfs_quota.projects¶
Setup of xfs_quota projects. Make sure the filesystem is mounted with the pquota option.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ projname = { id = 50; path = "/xfsprojects/projname"; sizeHardLimit = "50g"; } ; }Declared by:
programs.xfs_quota.projects.<name>.fileSystem¶
XFS filesystem hosting the xfs_quota project.
Type: string
Default:
"/"Declared by:
programs.xfs_quota.projects.<name>.id¶
programs.xfs_quota.projects.<name>.path¶
programs.xfs_quota.projects.<name>.sizeHardLimit¶
Hard limit of the project size.
Type: null or string
Default:
nullExample:
"50g"Declared by:
programs.xfs_quota.projects.<name>.sizeSoftLimit¶
Soft limit of the project size
Type: null or string
Default:
nullExample:
"30g"Declared by:
programs.xonsh.enable¶
Whether to configure xonsh as an interactive shell.
Type: boolean
Default:
falseDeclared by:
programs.xonsh.package¶
xonsh package to use.
Type: package
Default:
*(build of xonsh-0.9.13)*Example:
pkgs.xonsh.override { configFile = "/path/to/xonshrc"; }Declared by:
programs.xonsh.config¶
Control file to customize your shell behavior.
Type: strings concatenated with “\n”
Default:
""Declared by:
programs.xss-lock.enable¶
Whether to enable xss-lock.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.xss-lock.extraOptions¶
Additional command-line arguments to pass to:command:xss-lock.
Type: list of strings
Default: ``[
]``
Example:
[ "--ignore-sleep" ]Declared by:
programs.xss-lock.lockerCommand¶
Locker to be used with xsslock
Type: strings concatenated with ” “
Default:
"\\${pkgs.i3lock}/bin/i3lock"Example:
${pkgs.i3lock-fancy}/bin/i3lock-fancyDeclared by:
programs.yabar.enable¶
Whether to enable yabar.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.yabar.package¶
The package which contains the `yabar` binary.
Nixpkgs provides the `yabar` and `yabar-unstable` derivations since 18.03, so it’s possible to choose.
Type: package
Default:
*(build of yabar-unstable-2018-01-18)*Example:
pkgs.yabarDeclared by:
programs.yabar.bars¶
List of bars that should be rendered by yabar.
Type: attribute set of submodules
Default: ``{
}``
Declared by:
programs.yabar.bars.<name>.extra¶
An attribute set which contains further attributes of a bar.
Type: attribute set of strings
Default: ``{
}``
Declared by:
programs.yabar.bars.<name>.font¶
The font that will be used to draw the status bar.
Type: string
Default:
"sans bold 9"Example:
"Droid Sans, FontAwesome Bold 9"Declared by:
programs.yabar.bars.<name>.indicators¶
Indicators that should be rendered by yabar.
Type: attribute set of submodules
Default: ``{
}``
Declared by:
programs.yabar.bars.<name>.indicators.<name>.align¶
Whether to align the indicator at the left or right of the bar.
Type: one of “left”, “center”, “right”
Default:
"left"Example:
"right"Declared by:
programs.yabar.bars.<name>.indicators.<name>.exec¶
The type of the indicator to be executed.
Type: string
Example:
"YABAR_DATE"Declared by:
programs.yabar.bars.<name>.indicators.<name>.extra¶
An attribute set which contains further attributes of a indicator.
Type: attribute set of string or signed integers
Default: ``{
}``
Declared by:
programs.yabar.bars.<name>.position¶
The position where the bar will be rendered.
Type: one of “top”, “bottom”
Default:
"top"Example:
"bottom"Declared by:
programs.zmap.enable¶
Whether to enable ZMap.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.zsh.enable¶
Whether to configure zsh as an interactive shell. To enable zsh for a particular user, use the option for that user. To enable zsh system-wide use the option.
Type: boolean
Default:
falseDeclared by:
programs.zsh.enableCompletion¶
Enable zsh completion for all interactive zsh shells.
Type: boolean
Default:
trueDeclared by:
programs.zsh.enableGlobalCompInit¶
Enable execution of compinit call for all interactive zsh shells.
This option can be disabled if the user wants to extend its``fpath`` and a custom
compinitcall in the local config is required.Type: boolean
Default:
trueDeclared by:
programs.zsh.autosuggestions.enable¶
Whether to enable zsh-autosuggestions.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.zsh.autosuggestions.extraConfig¶
Attribute set with additional configuration values
Type: attribute set of strings
Default: ``{
}``
Example:
{ "ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE" = "20"; }Declared by:
programs.zsh.autosuggestions.highlightStyle¶
Highlight style for suggestions ({fore,back}ground color)
Type: string
Default:
"fg=8"Example:
"fg=cyan"Declared by:
programs.zsh.autosuggestions.strategy¶
Set ZSH_AUTOSUGGEST_STRATEGY to choose the strategy for generating suggestions. There are currently two to choose from:
- history: Chooses the most recent match.
- match_prev_cmd: Chooses the most recent match whose preceding history item matches
the most recently executed command (more info). Note that this strategy won’t work as expected with ZSH options that don’t preserve the history order such as HIST_IGNORE_ALL_DUPS or HIST_EXPIRE_DUPS_FIRST.
Type: one of “history”, “match_prev_cmd”
Default:
"history"Declared by:
programs.zsh.histFile¶
Change history file.
Type: string
Default:
"\\$HOME/.zsh_history"Declared by:
programs.zsh.histSize¶
Change history size.
Type: signed integer
Default:
2000Declared by:
programs.zsh.interactiveShellInit¶
Shell script code called during interactive zsh shell initialisation.
Type: strings concatenated with “\n”
Default:
""Declared by:
programs.zsh.loginShellInit¶
Shell script code called during zsh login shell initialisation.
Type: strings concatenated with “\n”
Default:
""Declared by:
programs.zsh.ohMyZsh.enable¶
Enable oh-my-zsh.
Type: unspecified
Default:
falseDeclared by:
programs.zsh.ohMyZsh.package¶
Package to install for `oh-my-zsh` usage.
Type: package
Default:
"pkgs.oh-my-zsh"Declared by:
programs.zsh.ohMyZsh.cacheDir¶
Cache directory to be used by `oh-my-zsh`. Without this option it would default to the read-only nix store.
Type: string
Default:
"\\$HOME/.cache/oh-my-zsh"Declared by:
programs.zsh.ohMyZsh.custom¶
Path to a custom oh-my-zsh package to override config of oh-my-zsh. (Can’t be used along with `customPkgs`).
Type: null or string
Default:
nullDeclared by:
programs.zsh.ohMyZsh.customPkgs¶
List of custom packages that should be loaded into `oh-my-zsh`.
Type: list of packages
Default: ``[
]``
Declared by:
programs.zsh.ohMyZsh.plugins¶
programs.zsh.ohMyZsh.theme¶
Name of the theme to be used by oh-my-zsh.
Type: string
Default:
""Declared by:
programs.zsh.promptInit¶
Shell script code used to initialise the zsh prompt.
Type: strings concatenated with “\n”
Default:
'' # Note that to manually override this in ~/.zshrc you should run `prompt off` # before setting your PS1 and etc. Otherwise this will likely to interact with # your ~/.zshrc configuration in unexpected ways as the default prompt sets # a lot of different prompt variables. autoload -U promptinit && promptinit && prompt walters && setopt prompt_sp ''Declared by:
programs.zsh.setOptions¶
Configure zsh options. Seezshoptions1.
Type: list of strings
Default:
[ "HIST_IGNORE_DUPS" "SHARE_HISTORY" "HIST_FCNTL_LOCK" ]Example:
[ "EXTENDED_HISTORY" "RM_STAR_WAIT" ]Declared by:
programs.zsh.shellAliases¶
Set of aliases for zsh shell, which overrides . See for an option format description.
Type: attribute set of null or string or paths
Default: ``{
}``
Declared by:
programs.zsh.shellInit¶
Shell script code called during zsh shell initialisation.
Type: strings concatenated with “\n”
Default:
""Declared by:
programs.zsh.syntaxHighlighting.enable¶
Whether to enable zsh-syntax-highlighting.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.zsh.syntaxHighlighting.highlighters¶
Specifies the highlighters to be used by zsh-syntax-highlighting.
The following defined options can be found here: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters.md
Type: list of one of “main”, “brackets”, “pattern”, “cursor”, “root”, “line”s
Default:
[ "main" ]Declared by:
programs.zsh.syntaxHighlighting.patterns¶
Specifies custom patterns to be highlighted by zsh-syntax-highlighting.
Please refer to the docs for more information about the usage: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/pattern.md
Type: attribute set of strings
Default: ``{
}``
Example:
{ "rm -rf *" = "fg=white,bold,bg=red"; }Declared by:
programs.zsh.syntaxHighlighting.styles¶
Specifies custom styles to be highlighted by zsh-syntax-highlighting.
Please refer to the docs for more information about the usage: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/main.md
Type: attribute set of strings
Default: ``{
}``
Example:
{ "alias" = "fg=magenta,bold"; }Declared by:
programs.zsh.vteIntegration¶
Whether to enable Zsh integration for VTE terminals. This allows it to preserve the current directory of the shell across terminals.
Type: boolean
Default:
falseDeclared by:
programs.zsh.zsh-autoenv.enable¶
Whether to enable zsh-autoenv.
Type: boolean
Default:
falseExample:
trueDeclared by:
programs.zsh.zsh-autoenv.package¶
Package to install for `zsh-autoenv` usage.
Type: package
Default:
"pkgs.zsh-autoenv"Declared by:
qt5.enable¶
Whether to enable Qt5 theming configuration.
Type: boolean
Default:
falseExample:
trueDeclared by:
qt5.platformTheme¶
Selects the platform theme to use for Qt5 applications.
The options are
gtkUse GTK theme with qtstyleplugins
gnomeUse GNOME theme with qgnomeplatformType: one of “gtk2”, “gnome”
Example:
"gnome"Related packages:
pkgs.qgnomeplatform (qgnomeplatform-0.6.0): QPlatformTheme for a better Qt application inclusion in GNOME.pkgs.libsForQt5.qtstyleplugins (qtstyleplugins-2017-03-11): Additional style plugins for Qt5, including BB10, GTK, Cleanlooks, Motif, Plastique.Declared by:
qt5.style¶
Selects the style to use for Qt5 applications.
The options are
adwaitaUse Adwaita Qt style with adwaita
cleanlooks,gtk2,motif,plastiqueUse styles from qtstylepluginsType: one of “adwaita”, “cleanlooks”, “gtk2”, “motif”, “plastique”
Example:
"adwaita"Related packages:
pkgs.adwaita-qt (adwaita-qt-1.1.1): A style to bend Qt applications to look like they belong into GNOME Shell.pkgs.libsForQt5.qtstyleplugins (qtstyleplugins-2017-03-11): Additional style plugins for Qt5, including BB10, GTK, Cleanlooks, Motif, Plastique.Declared by:
security.acme.acceptTerms¶
Accept the CA’s terms of service. The default provier is Let’s Encrypt, you can find their ToS at https://letsencrypt.org/repository/
Type: boolean
Default:
falseDeclared by:
security.acme.certs¶
Attribute set of certificates to get signed and renewed. Creates``acme-${cert}.{service,timer}`` systemd units for each certificate defined here. Other services can add dependencies to those units if they rely on the certificates being present, or trigger restarts of the service if certificates get renewed.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ "example.com" = { webroot = "/var/www/challenges/"; email = "foo@example.com"; extraDomains = { "www.example.com" = null; "foo.example.com" = "/var/www/foo/"; }; }; "bar.example.com" = { webroot = "/var/www/challenges/"; email = "bar@example.com"; }; }Declared by:
security.acme.certs.<name>.allowKeysForGroup¶
Give read permissions to the specified group () to read SSL private certificates.
Type: boolean
Default:
falseDeclared by:
security.acme.certs.<name>.credentialsFile¶
Path to an EnvironmentFile for the cert’s service containing any required and optional environment variables for your selected dnsProvider. To find out what values you need to set, consult the documentation at https://go-acme.github.io/lego/dns/ for the corresponding dnsProvider.
Type: path
Example:
"/var/src/secrets/example.org-route53-api-token"Declared by:
security.acme.certs.<name>.directory¶
Directory where certificate and other state is stored.
Type: string (read only)
Default:
"/var/lib/acme/‹name›"Declared by:
security.acme.certs.<name>.dnsPropagationCheck¶
Toggles lego DNS propagation check, which is used alongside DNS-01 challenge to ensure the DNS entries required are available.
Type: boolean
Default:
trueDeclared by:
security.acme.certs.<name>.dnsProvider¶
DNS Challenge provider. For a list of supported providers, see the “code” field of the DNS providers listed at https://go-acme.github.io/lego/dns/.
Type: null or string
Default:
nullExample:
"route53"Declared by:
security.acme.certs.<name>.domain¶
Domain to fetch certificate for (defaults to the entry name)
Type: string
Default:
"‹name›"Declared by:
security.acme.certs.<name>.email¶
Contact email address for the CA to be able to reach you.
Type: null or string
Default:
nullDeclared by:
security.acme.certs.<name>.extraDomains¶
A list of extra domain names, which are included in the one certificate to be issued, with their own server roots if needed.
Type: attribute set of null or strings
Default: ``{
}``
Example:
{ "example.org" = "/srv/http/nginx"; "mydomain.org" = null; }Declared by:
security.acme.certs.<name>.group¶
Group running the ACME client.
Type: string
Default:
"root"Declared by:
security.acme.certs.<name>.keyType¶
Key type to use for private keys. For an up to date list of supported values check the –key-type option at https://go-acme.github.io/lego/usage/cli/#usage.
Type: string
Default:
"ec384"Declared by:
security.acme.certs.<name>.postRun¶
Commands to run after new certificates go live. Typically the web server and other servers using certificates need to be reloaded.
Executed in the same directory with the new certificate.
Type: strings concatenated with “\n”
Default:
""Example:
"systemctl reload nginx.service"Declared by:
security.acme.certs.<name>.server¶
ACME Directory Resource URI. Defaults to let’s encrypt production endpoint, https://acme-v02.api.letsencrypt.org/directory, if unset.
Type: null or string
Default:
nullDeclared by:
security.acme.certs.<name>.user¶
User running the ACME client.
Type: string
Default:
"root"Declared by:
security.acme.certs.<name>.webroot¶
Where the webroot of the HTTP vhost is located.:file:.well-known/acme-challenge/ directory will be created below the webroot if it doesn’t exist.``http://example.org/.well-known/acme-challenge/`` must also be available (notice unencrypted HTTP).
Type: null or string
Default:
nullExample:
"/var/lib/acme/acme-challenges"Declared by:
security.acme.email¶
Contact email address for the CA to be able to reach you.
Type: null or string
Default:
nullDeclared by:
security.acme.preliminarySelfsigned¶
Whether a preliminary self-signed certificate should be generated before doing ACME requests. This can be useful when certificates are required in a webserver, but ACME needs the webserver to make its requests.
With preliminary self-signed certificate the webserver can be started and can later reload the correct ACME certificates.
Type: boolean
Default:
trueDeclared by:
security.acme.renewInterval¶
Systemd calendar expression when to check for renewal. Seesystemd.time7.
Type: string
Default:
"weekly"Declared by:
security.acme.server¶
ACME Directory Resource URI. Defaults to let’s encrypt production endpoint,``https://acme-v02.api.letsencrypt.org/directory``, if unset.
Type: null or string
Default:
nullDeclared by:
security.acme.validMinDays¶
Minimum remaining validity before renewal in days.
Type: signed integer
Default:
30Declared by:
security.allowSimultaneousMultithreading¶
Whether to allow SMT/hyperthreading. Disabling SMT means that only physical CPU cores will be usable at runtime, potentially at significant performance cost.
The primary motivation for disabling SMT is to mitigate the risk of leaking data between threads running on the same CPU core (due to e.g., shared caches). This attack vector is unproven.
Disabling SMT is a supplement to the L1 data cache flushing mitigation (see security.virtualisation.flushL1DataCache) versus malicious VM guests (SMT could “bring back” previously flushed data).
Type: boolean
Default:
trueDeclared by:
security.allowUserNamespaces¶
Whether to allow creation of user namespaces.
The motivation for disabling user namespaces is the potential presence of code paths where the kernel’s permission checking logic fails to account for namespacing, instead permitting a namespaced process to act outside the namespace with the same privileges as it would have inside it. This is particularly damaging in the common case of running as root within the namespace.
When user namespace creation is disallowed, attempting to create a user namespace fails with “no space left on device” (ENOSPC). root may re-enable user namespace creation at runtime.
Type: boolean
Default:
trueDeclared by:
security.apparmor.enable¶
Enable the AppArmor Mandatory Access Control system.
Type: boolean
Default:
falseDeclared by:
security.apparmor.packages¶
List of packages to be added to apparmor’s include path
Type: list of packages
Default: ``[
]``
Declared by:
security.apparmor.confineSUIDApplications¶
Install AppArmor profiles for commonly-used SUID application to mitigate potential privilege escalation attacks due to bugs in such applications.
Currently available profiles: ping
Type: unspecified
Default:
trueDeclared by:
security.apparmor.profiles¶
security.audit.enable¶
Whether to enable the Linux audit system. The special `lock’ value can be used to enable auditing and prevent disabling it until a restart. Be careful about locking this, as it will prevent you from changing your audit configuration until you restart. If possible, test your configuration using build-vm beforehand.
Type: one of <bool>, <bool>, “lock”
Default:
falseDeclared by:
security.audit.backlogLimit¶
The maximum number of outstanding audit buffers allowed; exceeding this is considered a failure and handled in a manner specified by failureMode.
Type: signed integer
Default:
64Declared by:
security.audit.failureMode¶
How to handle critical errors in the auditing system
Type: one of “silent”, “printk”, “panic”
Default:
"printk"Declared by:
security.audit.rateLimit¶
The maximum messages per second permitted before triggering a failure as specified by failureMode. Setting it to zero disables the limit.
Type: signed integer
Default:
0Declared by:
security.audit.rules¶
The ordered audit rules, with each string appearing as one line of the audit.rules file.
Type: list of strings
Default: ``[
]``
Example:
[ "-a exit,always -F arch=b64 -S execve" ]Declared by:
security.auditd.enable¶
Whether to enable the Linux Audit daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
security.chromiumSuidSandbox.enable¶
Whether to install the Chromium SUID sandbox which is an executable that Chromium may use in order to achieve sandboxing.
If you get the error “The SUID sandbox helper binary was found, but is not configured correctly.”, turning this on might help.
Also, if the URL chrome://sandbox tells you that “You are not adequately sandboxed!”, turning this on might resolve the issue.
Type: boolean
Default:
falseDeclared by:
security.dhparams.enable¶
Whether to generate new DH params and clean up old DH params.
Type: boolean
Default:
falseDeclared by:
security.dhparams.defaultBitSize¶
This allows to override the default bit size for all of the Diffie-Hellman parameters set in.
Type: integer of at least 16 bits
Default:
2048Declared by:
security.dhparams.params¶
Diffie-Hellman parameters to generate.
The value is the size (in bits) of the DH params to generate. The generated DH params path can be found in``config.security.dhparams.params.*name*.path``.
Note
The name of the DH params is taken as being the name of the service it serves and the params will be generated before the said service is started.
Warning
If you are removing all dhparams from this list, you have to leave for at least one activation in order to have them be cleaned up. This also means if you rollback to a version without any dhparams the existing ones won’t be cleaned up. Of course this only applies if is``true``.
Note
It’s recommended to not set a specific bit size here, so that users can easily override this by setting.
Type: attribute set of submodule or signed integer convertible to its
Default: ``{
}``
Example:
{ nginx.bits = 3072; }Declared by:
security.dhparams.params.<name>.bits¶
The bit size for the prime that is used during a Diffie-Hellman key exchange.
Type: integer of at least 16 bits
Default:
2048Declared by:
security.dhparams.params.<name>.path¶
The resulting path of the generated Diffie-Hellman parameters file for other services to reference. This could be either a store path or a file inside the directory specified by.
Type: path (read only)
Declared by:
security.dhparams.path¶
Path to the directory in which Diffie-Hellman parameters will be stored. This only is relevant if is``true``.
Type: string
Default:
"/var/lib/dhparams"Declared by:
security.dhparams.stateful¶
Whether generation of Diffie-Hellman parameters should be stateful or not. If this is enabled, PEM-encoded files for Diffie-Hellman parameters are placed in the directory specified by. Otherwise the files are created within the Nix store.
Note
If this is
falsethe resulting store path will be non-deterministic and will be rebuilt every time theopenssl package changes.Type: boolean
Default:
trueDeclared by:
security.duosec.acceptEnvFactor¶
Look for factor selection or passcode in the``$DUO_PASSCODE`` environment variable before prompting the user for input.
When $DUO_PASSCODE is non-empty, it will override autopush. The SSH client will need SendEnv DUO_PASSCODE in its configuration, and the SSH server will similarly need AcceptEnv DUO_PASSCODE.
Type: boolean
Default:
falseDeclared by:
security.duosec.allowTcpForwarding¶
By default, when SSH forwarding, enabling Duo Security will disable TCP forwarding. By enabling this, you potentially undermine some of the SSH based login security. Note this is not needed if you use PAM.
Type: boolean
Default:
falseDeclared by:
security.duosec.autopush¶
If
true, Duo Unix will automatically send a push login request to the user’s phone, falling back on a phone call if push is unavailable. If``false``, the user will be prompted to choose an authentication method. When configured with``autopush = yes``, we recommend setting``prompts = 1``.Type: boolean
Default:
falseDeclared by:
security.duosec.failmode¶
On service or configuration errors that prevent Duo authentication, fail “safe” (allow access) or “secure” (deny access). The default is “safe”.
Type: one of “safe”, “secure”
Default:
"safe"Declared by:
security.duosec.fallbackLocalIP¶
Duo Unix reports the IP address of the authorizing user, for the purposes of authorization and whitelisting. If Duo Unix cannot detect the IP address of the client, setting``fallbackLocalIP = yes`` will cause Duo Unix to send the IP address of the server it is running on.
If you are using IP whitelisting, enabling this option could cause unauthorized logins if the local IP is listed in the whitelist.
Type: boolean
Default:
falseDeclared by:
security.duosec.groups¶
If specified, Duo authentication is required only for users whose primary group or supplementary group list matches one of the space-separated pattern lists. Refer to` <https://duo.com/docs/duounix>`_ for details.
Type: string
Default:
""Example:
"users,!wheel,!*admin guests"Declared by:
security.duosec.host¶
security.duosec.ikey¶
security.duosec.motd¶
Print the contents of
/etc/motdto screen after a successful login.Type: boolean
Default:
falseDeclared by:
security.duosec.pam.enable¶
If enabled, protect logins with Duo Security using PAM support.
Type: boolean
Default:
falseDeclared by:
security.duosec.prompts¶
If a user fails to authenticate with a second factor, Duo Unix will prompt the user to authenticate again. This option sets the maximum number of prompts that Duo Unix will display before denying access. Must be 1, 2, or 3. Default is 3.
For example, when
prompts = 1, the user will have to successfully authenticate on the first prompt, whereas ifprompts = 2, if the user enters incorrect information at the initial prompt, he/she will be prompted to authenticate again.When configured with
autopush = true, we recommend settingprompts = 1.Type: one of 1, 2, 3
Default:
3Declared by:
security.duosec.pushinfo¶
Include information such as the command to be executed in the Duo Push message.
Type: boolean
Default:
falseDeclared by:
security.duosec.skey¶
security.duosec.ssh.enable¶
If enabled, protect SSH logins with Duo Security.
Type: boolean
Default:
falseDeclared by:
security.forcePageTableIsolation¶
Whether to force-enable the Page Table Isolation (PTI) Linux kernel feature even on CPU models that claim to be safe from Meltdown.
This hardening feature is most beneficial to systems that run untrusted workloads that rely on address space isolation for security.
Type: boolean
Default:
falseDeclared by:
security.googleOsLogin.enable¶
Whether to enable Google OS Login
The OS Login package enables the following components: AuthorizedKeysCommand to query valid SSH keys from the user’s OS Login profile during ssh authentication phase. NSS Module to provide user and group information PAM Module for the sshd service, providing authorization and authentication support, allowing the system to use data stored in Google Cloud IAM permissions to control both, the ability to log into an instance, and to perform operations as root (sudo).
Type: boolean
Default:
falseDeclared by:
security.hideProcessInformation¶
Restrict process information to the owning user.
Type: boolean
Default:
falseDeclared by:
security.lockKernelModules¶
Disable kernel module loading once the system is fully initialised. Module loading is disabled until the next reboot. Problems caused by delayed module loading can be fixed by adding the module(s) in question to .
Type: boolean
Default:
falseDeclared by:
security.pam.enableEcryptfs¶
Enable eCryptfs PAM module (mounting ecryptfs home directory on login).
Type: unspecified
Default:
falseDeclared by:
security.pam.enableOTPW¶
Enable the OTPW (one-time password) PAM module.
Type: unspecified
Default:
falseDeclared by:
security.pam.enableSSHAgentAuth¶
Enable sudo logins if the user’s SSH agent provides a key present in
~/.ssh/authorized_keys. This allows machines to exclusively use SSH keys instead of passwords.Type: unspecified
Default:
falseDeclared by:
security.pam.loginLimits¶
Define resource limits that should apply to users or groups. Each item in the list should be an attribute set with a
domain,type,item, andvalueattribute. The syntax and semantics of these attributes must be that described in the limits.conf(5) man page.Note that these limits do not apply to systemd services, whose limits can be changed via instead.
Type: unspecified
Default: ``[
]``
Example: ``[
{ domain = “ftp”; item = “nproc”; type = “hard”; value = “0”; }
{ domain = “@student”; item = “maxlogins”; type = “-“; value = “4”; }
]``
Declared by:
security.pam.makeHomeDir.skelDirectory¶
Path to skeleton directory whose contents are copied to home directories newly created by
pam_mkhomedir.Type: string
Default:
"/var/empty"Example:
"/etc/skel"Declared by:
security.pam.mount.enable¶
Enable PAM mount system to mount fileystems on user login.
Type: boolean
Default:
falseDeclared by:
security.pam.mount.extraVolumes¶
List of volume definitions for pam_mount. For more information, visit ` <http://pam-mount.sourceforge.net/pam_mount.conf.5.html>`_.
Type: list of strings
Default: ``[
]``
Declared by:
security.pam.oath.enable¶
Enable the OATH (one-time password) PAM module.
Type: boolean
Default:
falseDeclared by:
security.pam.oath.digits¶
Specify the length of the one-time password in number of digits.
Type: one of 6, 7, 8
Default:
6Declared by:
security.pam.oath.usersFile¶
Set the path to file where the user’s credentials are stored. This file must not be world readable!
Type: path
Default:
"/etc/users.oath"Declared by:
security.pam.oath.window¶
Specify the number of one-time passwords to check in order to accommodate for situations where the system and the client are slightly out of sync (iteration for HOTP or time steps for TOTP).
Type: signed integer
Default:
5Declared by:
security.pam.services¶
This option defines the PAM services. A service typically corresponds to a program that uses PAM, e.g. login or passwd. Each attribute of this set defines a PAM service, with the attribute name defining the name of the service.
Type: list or attribute set of submodules
Default: ``[
]``
Declared by:
security.pam.services.<name?>.enableAppArmor¶
Enable support for attaching AppArmor profiles at the user/group level, e.g., as part of a role based access control scheme.
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.enableGnomeKeyring¶
If enabled, pam_gnome_keyring will attempt to automatically unlock the user’s default Gnome keyring upon login. If the user login password does not match their keyring password, Gnome Keyring will prompt separately after login.
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.enableKwallet¶
If enabled, pam_wallet will attempt to automatically unlock the user’s default KDE wallet upon login. If the user has no wallet named “kdewallet”, or the login password does not match their wallet password, KDE will prompt separately after login.
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.allowNullPassword¶
Whether to allow logging into accounts that have no password set (i.e., have an empty password field in:file:/etc/passwd or:file:/etc/group). This does not enable logging into disabled accounts (i.e., that have the password field set to
!). Note that regardless of what the pam_unix documentation says, accounts with hashed empty passwords are always allowed to log in.Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.duoSecurity.enable¶
If set, use the Duo Security pam module``pam_duo`` for authentication. Requires configuration of options.
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.forwardXAuth¶
Whether X authentication keys should be passed from the calling user to the target user (e.g. for:command:su)
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.fprintAuth¶
If set, fingerprint reader will be used (if exists and your fingerprints are enrolled).
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.googleAuthenticator.enable¶
If set, users with enabled Google Authenticator (created:file:~/.google_authenticator) will be required to provide Google Authenticator token to log in.
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.googleOsLoginAccountVerification¶
If set, will use the Google OS Login PAM modules (
pam_oslogin_login,``pam_oslogin_admin``) to verify possible OS Login users and set sudoers configuration accordingly. This only makes sense to enable for thesshdPAM service.Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.googleOsLoginAuthentication¶
If set, will use the
pam_oslogin_login’s user authentication methods to authenticate users using 2FA. This only makes sense to enable for thesshdPAM service.Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.limits¶
Attribute set describing resource limits. Defaults to the value of .
Type: unspecified
Declared by:
security.pam.services.<name?>.logFailures¶
Whether to log authentication failures in
/var/log/faillog.Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.makeHomeDir¶
Whether to try to create home directories for users with ``$HOME``s pointing to nonexistent locations on session login.
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.name¶
Name of the PAM service.
Type: string
Example:
"sshd"Declared by:
security.pam.services.<name?>.oathAuth¶
If set, the OATH Toolkit will be used.
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.otpwAuth¶
If set, the OTPW system will be used (if:file:~/.otpw exists).
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.pamMount¶
Enable PAM mount (pam_mount) system to mount fileystems on user login.
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.requireWheel¶
Whether to permit root access only to members of group wheel.
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.rootOK¶
If set, root doesn’t need to authenticate (e.g. for the:command:useradd service).
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.setEnvironment¶
Whether the service should set the environment variables listed in using
pam_env.so.Type: boolean
Default:
trueDeclared by:
security.pam.services.<name?>.setLoginUid¶
Set the login uid of the process (
/proc/self/loginuid) for auditing purposes. The login uid is only set by ‘entry points’ like:command:login and sshd, not by commands like sudo.Type: boolean
Declared by:
security.pam.services.<name?>.showMotd¶
Whether to show the message of the day.
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.sshAgentAuth¶
If set, the calling user’s SSH agent is used to authenticate against the keys in the calling user’s:file:~/.ssh/authorized_keys. This is useful for sudo on password-less remote systems.
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.sssdStrictAccess¶
enforce sssd access control
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.startSession¶
If set, the service will register a new session with systemd’s login manager. For local sessions, this will give the user access to audio devices, CD-ROM drives. In the default PolicyKit configuration, it also allows the user to reboot the system.
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.text¶
Contents of the PAM service file.
Type: null or strings concatenated with “\n”
Declared by:
security.pam.services.<name?>.u2fAuth¶
If set, users listed in:file:$XDG_CONFIG_HOME/Yubico/u2f_keys (or:file:$HOME/.config/Yubico/u2f_keys if XDG variable is not set) are able to log in with the associated U2F key. Path can be changed using option.
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.unixAuth¶
Whether users can log in with passwords defined in:file:/etc/shadow.
Type: boolean
Default:
trueDeclared by:
security.pam.services.<name?>.updateWtmp¶
Whether to update
/var/log/wtmp.Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.usbAuth¶
If set, users listed in:file:/etc/pamusb.conf are able to log in with the associated USB key.
Type: boolean
Default:
falseDeclared by:
security.pam.services.<name?>.yubicoAuth¶
If set, users listed in:file:~/.yubico/authorized_yubikeys are able to log in with the asociated Yubikey tokens.
Type: boolean
Default:
falseDeclared by:
security.pam.u2f.enable¶
Enables U2F PAM (
pam-u2f) module.If set, users listed in:file:$XDG_CONFIG_HOME/Yubico/u2f_keys (or:file:$HOME/.config/Yubico/u2f_keys if XDG variable is not set) are able to log in with the associated U2F key. The path can be changed using option.
File format is:
username:first_keyHandle,first_public_key: second_keyHandle,second_public_keyThis file can be generated using pamu2fcfg command.More information can be found here.
Type: boolean
Default:
falseDeclared by:
security.pam.u2f.authFile¶
By default
pam-u2fmodule reads the keys from:file:$XDG_CONFIG_HOME/Yubico/u2f_keys (or:file:$HOME/.config/Yubico/u2f_keys if XDG variable is not set).If you want to change auth file locations or centralize database (for example use
/etc/u2f-mappings) you can set this option.File format is:
username:first_keyHandle,first_public_key: second_keyHandle,second_public_keyThis file can be generated using pamu2fcfg command.More information can be found here.
Type: null or path
Default:
nullDeclared by:
security.pam.u2f.control¶
This option sets pam “control”. If you want to have multi factor authentication, use “required”. If you want to use U2F device instead of regular password, use “sufficient”.
Readpam.conf5 for better understanding of this option.
Type: one of “required”, “requisite”, “sufficient”, “optional”
Default:
"sufficient"Declared by:
security.pam.u2f.cue¶
By default
pam-u2fmodule does not inform user that he needs to use the u2f device, it just waits without a prompt.If you set this option to
true,``cue`` option is added topam-u2fmodule and reminder message will be displayed.Type: boolean
Default:
falseDeclared by:
security.pam.u2f.debug¶
Debug output to stderr.
Type: boolean
Default:
falseDeclared by:
security.pam.u2f.interactive¶
Set to prompt a message and wait before testing the presence of a U2F device. Recommended if your device doesn’t have a tactile trigger.
Type: boolean
Default:
falseDeclared by:
security.pam.usb.enable¶
Enable USB login for all login systems that support it. For more information, visit ` <https://github.com/aluzzardi/pam_usb/wiki/Getting-Started#setting-up-devices-and-users>`_.
Type: boolean
Default:
falseDeclared by:
security.pam.yubico.enable¶
Enables Yubico PAM (
yubico-pam) module.If set, users listed in:file:~/.yubico/authorized_yubikeys are able to log in with the associated Yubikey tokens.
The file must have only one line:
username:yubikey_token_id1:yubikey_token_id2More information can be found here.Type: boolean
Default:
falseDeclared by:
security.pam.yubico.control¶
This option sets pam “control”. If you want to have multi factor authentication, use “required”. If you want to use Yubikey instead of regular password, use “sufficient”.
Readpam.conf5 for better understanding of this option.
Type: one of “required”, “requisite”, “sufficient”, “optional”
Default:
"sufficient"Declared by:
security.pam.yubico.debug¶
Debug output to stderr.
Type: boolean
Default:
falseDeclared by:
security.pam.yubico.id¶
security.pam.yubico.mode¶
Mode of operation.
Use “client” for online validation with a YubiKey validation service such as the YubiCloud.
Use “challenge-response” for offline validation using YubiKeys with HMAC-SHA-1 Challenge-Response configurations. See the man-page ykpamcfg(1) for further details on how to configure offline Challenge-Response validation.
More information can be found here.
Type: one of “client”, “challenge-response”
Default:
"client"Declared by:
security.pki.caCertificateBlacklist¶
A list of blacklisted CA certificate names that won’t be imported from the Mozilla Trust Store into:file:/etc/ssl/certs/ca-certificates.crt. Use the names from that file.
Type: list of strings
Default: ``[
]``
Example:
[ "WoSign" "WoSign China" "CA WoSign ECC Root" "Certification Authority of WoSign G2" ]Declared by:
security.pki.certificateFiles¶
A list of files containing trusted root certificates in PEM format. These are concatenated to form:file:/etc/ssl/certs/ca-certificates.crt, which is used by many programs that use OpenSSL, such as:command:curl and git.
Type: list of paths
Default: ``[
]``
Example:
[ "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt" ]Declared by:
security.pki.certificates¶
A list of trusted root certificates in PEM format.
Type: list of strings
Default: ``[
]``
Example:
[ '' NixOS.org ========= -----BEGIN CERTIFICATE----- MIIGUDCCBTigAwIBAgIDD8KWMA0GCSqGSIb3DQEBBQUAMIGMMQswCQYDVQQGEwJJ TDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0 ... -----END CERTIFICATE----- '' ]Declared by:
security.polkit.enable¶
Whether to enable PolKit.
Type: boolean
Default:
trueDeclared by:
security.polkit.adminIdentities¶
Specifies which users are considered “administrators”, for those actions that require the user to authenticate as an administrator (i.e. have an
auth_adminvalue). By default, this is all users in thewheelgroup.Type: list of strings
Default:
[ "unix-group:wheel" ]Example:
[ "unix-user:alice" "unix-group:admin" ]Declared by:
security.polkit.extraConfig¶
Any polkit rules to be added to config (in JavaScript ;-). See: http://www.freedesktop.org/software/polkit/docs/latest/polkit.8.html#polkit-rules
Type: strings concatenated with “\n”
Default:
""Example:
'' /* Log authorization checks. */ polkit.addRule(function(action, subject) { polkit.log("user " + subject.user + " is attempting action " + action.id + " from PID " + subject.pid); }); /* Allow any local user to do anything (dangerous!). */ polkit.addRule(function(action, subject) { if (subject.local) return "yes"; }); ''Declared by:
security.protectKernelImage¶
Whether to prevent replacing the running kernel image.
Type: boolean
Default:
falseDeclared by:
security.rngd.enable¶
Whether to enable the rng daemon, which adds entropy from hardware sources of randomness to the kernel entropy pool when available.
Type: boolean
Default:
trueDeclared by:
security.rngd.debug¶
Whether to enable debug output (-d).
Type: boolean
Default:
falseDeclared by:
security.rtkit.enable¶
Whether to enable the RealtimeKit system service, which hands out realtime scheduling priority to user processes on demand. For example, the PulseAudio server uses this to acquire realtime priority.
Type: boolean
Default:
falseDeclared by:
security.sudo.enable¶
Whether to enable the sudo command, which allows non-root users to execute commands as root.
Type: boolean
Default:
trueDeclared by:
security.sudo.configFile¶
This string contains the contents of the:file:sudoers file.
Type: strings concatenated with “\n”
Declared by:
security.sudo.extraConfig¶
Extra configuration text appended to
sudoers.Type: strings concatenated with “\n”
Default:
""Declared by:
security.sudo.extraRules¶
Define specific rules to be in the
sudoersfile. More specific rules should come after more general ones in order to yield the expected behavior. You can use mkBefore/mkAfter to ensure this is the case when configuration options are merged.Type: list of submodules
Default: ``[
]``
Example:
[ # Allow execution of any command by all users in group sudo, # requiring a password. { groups = [ "sudo" ]; commands = [ "ALL" ]; } # Allow execution of "/home/root/secret.sh" by user `backup`, `database` # and the group with GID `1006` without a password. { users = [ "backup" "database" ]; groups = [ 1006 ]; commands = [ { command = "/home/root/secret.sh"; options = [ "SETENV" "NOPASSWD" ]; } ]; } # Allow all users of group `bar` to run two executables as user `foo` # with arguments being pre-set. { groups = [ "bar" ]; runAs = "foo"; commands = [ "/home/baz/cmd1.sh hello-sudo" { command = ''/home/baz/cmd2.sh ""''; options = [ "SETENV" ]; } ]; } ]Declared by:
security.sudo.extraRules.*.commands¶
The commands for which the rule should apply.
Type: list of string or submodules
Declared by:
security.sudo.extraRules.*.groups¶
The groups / GIDs this rule should apply for.
Type: list of string or signed integers
Default: ``[
]``
Declared by:
security.sudo.extraRules.*.host¶
For what host this rule should apply.
Type: string
Default:
"ALL"Declared by:
security.sudo.extraRules.*.runAs¶
Under which user/group the specified command is allowed to run.
A user can be specified using just the username: “foo”. It is also possible to specify a user/group combination using “foo:bar” or to only allow running as a specific group with “:bar”.
Type: string
Default:
"ALL:ALL"Declared by:
security.sudo.extraRules.*.users¶
The usernames / UIDs this rule should apply for.
Type: list of string or signed integers
Default: ``[
]``
Declared by:
security.sudo.wheelNeedsPassword¶
Whether users of the wheel group must provide a password to run commands as super user via sudo.
Type: boolean
Default:
trueDeclared by:
security.virtualisation.flushL1DataCache¶
Whether the hypervisor should flush the L1 data cache before entering guests. See also security.allowSimultaneousMultithreading.
nulluses the kernel default
"never"disables L1 data cache flushing entirely. May be appropriate if all guests are trusted.
"cond"flushes L1 data cache only for pre-determined code paths. May leak information about the host address space layout.
"always"flushes L1 data cache every time the hypervisor enters the guest. May incur significant performance cost.Type: null or one of “never”, “cond”, “always”
Default:
nullDeclared by:
security.wrappers¶
This option allows the ownership and permissions on the setuid wrappers for specific programs to be overridden from the default (setuid root, but not setgid root).
Note
The sub-attribute
sourceis mandatory, it must be the absolute path to the program to be wrapped.The sub-attribute
programis optional and can give the wrapper program a new name. The default name is the same as the attribute name itself.Additionally, this option can set capabilities on a wrapper program that propagates those capabilities down to the wrapped, real program.
NOTE: cap_setpcap, which is required for the wrapper program to be able to raise caps into the Ambient set is NOT raised to the Ambient set so that the real program cannot modify its own capabilities!! This may be too restrictive for cases in which the real program needs cap_setpcap but it at least leans on the side security paranoid vs. too relaxed.
Type: attribute set
Default: ``{
}``
Example:
{ sendmail.source = "/nix/store/.../bin/sendmail"; ping = { source = "${pkgs.iputils.out}/bin/ping"; owner = "nobody"; group = "nogroup"; capabilities = "cap_net_raw+ep"; }; }Declared by:
services.packagekit.enable¶
Whether to enable PackageKit provides a cross-platform D-Bus abstraction layer for installing software. Software utilizing PackageKit can install software regardless of the package manager. .
Type: boolean
Default:
falseExample:
trueDeclared by:
services.packagekit.backend¶
PackageKit supports multiple different backends and
autowhich should do the right thing.On NixOS however, we do not have a backend compatible with nix 2.0 (refer to this issue so we have to force it to
test_nopfor now.Type: one of “test_nop”
Default:
"test_nop"Declared by:
services.SystemdJournal2Gelf.enable¶
Whether to enable SystemdJournal2Gelf.
Type: boolean
Default:
falseDeclared by:
services.SystemdJournal2Gelf.package¶
SystemdJournal2Gelf package to use.
Type: package
Default:
*(build of SystemdJournal2Gelf-unstable-20190702)*Declared by:
services.SystemdJournal2Gelf.extraOptions¶
Any extra flags to pass to SystemdJournal2Gelf. Note that these are basically
journalctlflags.Type: strings concatenated with ” “
Default:
""Declared by:
services.SystemdJournal2Gelf.graylogServer¶
Host and port of your graylog2 input. This should be a GELF UDP input.
Type: string
Example:
"graylog2.example.com:11201"Declared by:
services._3proxy.enable¶
Whether to enable 3proxy.
Type: boolean
Default:
falseExample:
trueDeclared by:
services._3proxy.confFile¶
Ignore all other 3proxy options and load configuration from this file.
Type: path
Example:
"/var/lib/3proxy/3proxy.conf"Declared by:
services._3proxy.denyPrivate¶
Whether to deny access to private IP ranges including loopback.
Type: boolean
Default:
trueDeclared by:
services._3proxy.extraConfig¶
Extra configuration, appended to the 3proxy configuration file. Consult documentation for available options.
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services._3proxy.privateRanges¶
What IP ranges to deny access when denyPrivate is set tu true.
Type: list of strings
Default:
[ "0.0.0.0/8" "127.0.0.0/8" "10.0.0.0/8" "100.64.0.0/10" "172.16.0.0/12" "192.168.0.0/16" "::" "::1" "fc00::/7" ]Example:
[ "0.0.0.0/8" "127.0.0.0/8" "10.0.0.0/8" "100.64.0.0/10" "172.16.0.0/12" "192.168.0.0/16" "::" "::1" "fc00::/7" ]Declared by:
services._3proxy.resolution¶
Use this option to configure name resolution and DNS caching.
Type: submodule
Default: ``{
}``
Declared by:
services._3proxy.resolution.nscache¶
Set name cache size for IPv4.
Type: signed integer
Default:
65535Example:
65535Declared by:
services._3proxy.resolution.nscache6¶
Set name cache size for IPv6.
Type: signed integer
Default:
65535Example:
65535Declared by:
services._3proxy.resolution.nserver¶
List of nameservers to use.
Up to 5 nservers may be specified. If no nserver is configured, default system name resolution functions are used.
Type: list of strings
Default: ``[
]``
Example:
[ "127.0.0.53" "192.168.1.3:5353/tcp" ]Declared by:
services._3proxy.resolution.nsrecord¶
Adds static nsrecords.
Type: attribute set of strings
Default: ``{
}``
Example:
{ files.local = "192.168.1.12"; site.local = "192.168.1.43"; }Declared by:
services._3proxy.services¶
Use this option to define 3proxy services.
Type: list of submodules
Default: ``[
]``
Example:
[ { type = "proxy"; bindAddress = "192.168.1.24"; bindPort = 3128; auth = [ "none" ]; } { type = "proxy"; bindAddress = "10.10.1.20"; bindPort = 3128; auth = [ "iponly" ]; } { type = "socks"; bindAddress = "172.17.0.1"; bindPort = 1080; auth = [ "strong" ]; } ]Declared by:
services._3proxy.services.*.acl¶
Use this option to limit user access to resources.
Type: list of submodules
Default: ``[
]``
Example:
[ { rule = "allow"; users = [ "user1" ]; } { rule = "allow"; sources = [ "192.168.1.0/24" ]; } { rule = "deny"; } ]Declared by:
services._3proxy.services.*.acl.*.rule¶
ACL rule. The following values are valid:
"allow": connections allowed."deny": connections not allowed.Type: one of “allow”, “deny”
Example:
"allow"Declared by:
services._3proxy.services.*.acl.*.sources¶
List of source IP range, use empty list for any.
Type: list of strings
Default: ``[
]``
Example:
[ "127.0.0.1" "192.168.1.0/24" ]Declared by:
services._3proxy.services.*.acl.*.targetPorts¶
List of target ports, use empty list for any.
Type: list of signed integers
Default: ``[
]``
Example:
[ 80 443 ]Declared by:
services._3proxy.services.*.acl.*.targets¶
List of target IP ranges, use empty list for any. May also contain host names instead of addresses. It’s possible to use wildmask in the begginning and in the the end of hostname, e.g. *badsite.com or *badcontent*. Hostname is only checked if hostname presents in request.
Type: list of strings
Default: ``[
]``
Example:
[ "127.0.0.1" "192.168.1.0/24" ]Declared by:
services._3proxy.services.*.acl.*.users¶
List of users, use empty list for any.
Type: list of strings
Default: ``[
]``
Example:
[ "user1" "user2" "user3" ]Declared by:
services._3proxy.services.*.auth¶
Authentication type. The following values are valid:
"none": disables both authentication and authorization. You can not use ACLs."iponly": specifies no authentication. ACLs authorization is used."strong": authentication by username/password. If user is not registered his access is denied regardless of ACLs.Double authentication is possible, e.g.
{ auth = [ "iponly" "strong" ]; acl = [ { rule = "allow"; targets = [ "192.168.0.0/16" ]; } { rule = "allow" users = [ "user1" "user2" ]; } ]; }In this example strong username authentication is not required to access 192.168.0.0/16.Type: list of one of “none”, “iponly”, “strong”s
Example:
[ "iponly" "strong" ]Declared by:
services._3proxy.services.*.bindAddress¶
Address used for service.
Type: string
Default:
"\[::]"Example:
"127.0.0.1"Declared by:
services._3proxy.services.*.bindPort¶
Override default port used for service.
Type: null or signed integer
Default:
nullExample:
3128Declared by:
services._3proxy.services.*.extraArguments¶
Extra arguments for service. Consult “Options” section in documentation for available arguments.
Type: null or string
Default:
nullExample:
"-46"Declared by:
services._3proxy.services.*.extraConfig¶
Extra configuration for service. Use this to configure things like bandwidth limiter or ACL-based redirection. Consult documentation for available options.
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services._3proxy.services.*.maxConnections¶
Maximum number of simulationeous connections to this service.
Type: signed integer
Default:
100Example:
1000Declared by:
services._3proxy.services.*.type¶
Service type. The following values are valid:
"proxy": HTTP/HTTPS proxy (default port 3128)."socks": SOCKS 4/4.5/5 proxy (default port 1080)."pop3p": POP3 proxy (default port 110)."ftppr": FTP proxy (default port 21)."admin": Web interface (default port 80)."dnspr": Caching DNS proxy (default port 53)."tcppm": TCP portmapper."udppm": UDP portmapper.Type: one of “proxy”, “socks”, “pop3p”, “ftppr”, “admin”, “dnspr”, “tcppm”, “udppm”
Example:
"proxy"Declared by:
services._3proxy.usersFile¶
Load users and passwords from this file.
Example users file with plain-text passwords:
test1:CL:password1 test2:CL:password2Example users file with md5-crypted passwords:
test1:CR:$1$tFkisVd2$1GA8JXkRmTXdLDytM/i3a1 test2:CR:$1$rkpibm5J$Aq1.9VtYAn0JrqZ8M.1ME.You can generate md5-crypted passwords via https://unix4lyfe.org/crypt/ Note that htpasswd tool generates incompatible md5-crypted passwords. Consult documentation for more information.
Type: null or path
Default:
nullExample:
"/var/lib/3proxy/3proxy.passwd"Declared by:
services.accounts-daemon.enable¶
Whether to enable AccountsService, a DBus service for accessing the list of user accounts and information attached to those accounts.
Type: boolean
Default:
falseDeclared by:
services.acpid.enable¶
Whether to enable the ACPI daemon.
Type: boolean
Default:
falseDeclared by:
services.acpid.acEventCommands¶
Shell commands to execute on an ac_adapter.* event.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.acpid.handlers¶
Event handlers.
Note
Handler can be a single command.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ ac-power = { action = "vals=(\\$1) # space separated string to array of multiple values\\ncase \\${vals[3]} in\\n 00000000)\\n echo unplugged >> /tmp/acpi.log\\n ;;\\n 00000001)\\n echo plugged in >> /tmp/acpi.log\\n ;;\\n \*)\\n echo unknown >> /tmp/acpi.log\\n ;;\\nesac\\n"; event = "ac_adapter/\*"; } ; }Declared by:
services.acpid.handlers.<name>.action¶
Shell commands to execute when the event is triggered.
Type: strings concatenated with “\n”
Declared by:
services.acpid.handlers.<name>.event¶
Event type.
Type: string
Example:
[ "button/power.*" "button/lid.*" "ac_adapter.*" "button/mute.*" "button/volumedown.*" "cd/play.*" "cd/next.*" ]Declared by:
services.acpid.lidEventCommands¶
Shell commands to execute on a button/lid.* event.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.acpid.logEvents¶
Log all event activity.
Type: boolean
Default:
falseDeclared by:
services.acpid.powerEventCommands¶
Shell commands to execute on a button/power.* event.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.activemq.enable¶
Enable the Apache ActiveMQ message broker service.
Type: boolean
Default:
falseDeclared by:
services.activemq.baseDir¶
The base directory where ActiveMQ stores its persistent data and logs. This will be overridden if you set “activemq.base” and “activemq.data” in the
javaPropertiesoption. You can also override this in activemq.xml.Type: string
Default:
"/var/activemq"Declared by:
services.activemq.configurationDir¶
The base directory for ActiveMQ’s configuration. By default, this directory is searched for a file named activemq.xml, which should contain the configuration for the broker service.
Type: unspecified
Default:
"\\${pkgs.activemq}/conf"Declared by:
services.activemq.configurationURI¶
The URI that is passed along to the BrokerFactory to set up the configuration of the ActiveMQ broker service. You should not need to change this. For custom configuration, set the
configurationDirinstead, and create an activemq.xml configuration file in it.Type: string
Default:
"xbean:activemq.xml"Declared by:
services.activemq.extraJavaOptions¶
Add extra options here that you want to be sent to the Java runtime when the broker service is started.
Type: strings concatenated with ” “
Default:
""Example:
"-Xmx2G -Xms2G -XX:MaxPermSize=512M"Declared by:
services.activemq.javaProperties¶
Specifies Java properties that are sent to the ActiveMQ broker service with the “-D” option. You can set properties here to change the behaviour and configuration of the broker. All essential properties that are not set here are automatically given reasonable defaults.
Type: attribute set
Default: ``{
}``
Example:
{ java.net.preferIPv4Stack = "true"; }Declared by:
services.actkbd.enable¶
Whether to enable the actkbd key mapping daemon.
Turning this on will start an actkbd instance for every evdev input that has at least one key (which is okay even for systems with tiny memory footprint, since actkbd normally uses <100 bytes of memory per instance).
This allows binding keys globally without the need for e.g. X11.
Type: boolean
Default:
falseDeclared by:
services.actkbd.bindings¶
Key bindings for actkbd.
See actkbd
READMEfor documentation.The example shows a piece of what does when enabled.
Type: list of submodules
Default: ``[
]``
Example:
[ { keys = [ 113 ]; events = [ "key" ]; command = "${pkgs.alsaUtils}/bin/amixer -q set Master toggle"; } ]Declared by:
services.actkbd.bindings.*.attributes¶
List of attributes.
Type: list of strings
Default:
[ "exec" ]Declared by:
services.actkbd.bindings.*.command¶
What to run.
Type: string
Default:
""Declared by:
services.actkbd.bindings.*.events¶
List of events to match.
Type: list of one of “key”, “rep”, “rel”s
Default:
[ "key" ]Declared by:
services.actkbd.bindings.*.keys¶
List of keycodes to match.
Type: list of signed integers
Declared by:
services.actkbd.extraConfig¶
Literal contents to append to the end of actkbd configuration file.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.aerospike.enable¶
Whether to enable Aerospike server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.aerospike.package¶
Which Aerospike derivation to use
Type: package
Default:
"pkgs.aerospike"Declared by:
services.aerospike.extraConfig¶
Extra configuration
Type: strings concatenated with “\n”
Default:
""Example:
'' namespace test { replication-factor 2 memory-size 4G default-ttl 30d storage-engine memory } ''Declared by:
services.aerospike.networkConfig¶
network section of configuration file
Type: strings concatenated with “\n”
Default:
'' service { address any port 3000 } heartbeat { address any mode mesh port 3002 interval 150 timeout 10 } fabric { address any port 3001 } info { address any port 3003 } ''Declared by:
services.aerospike.workDir¶
Location where Aerospike stores its files
Type: string
Default:
"/var/lib/aerospike"Declared by:
services.airsonic.enable¶
Whether to enable Airsonic, the Free and Open Source media streaming server (fork of Subsonic and Libresonic).
Type: boolean
Default:
falseExample:
trueDeclared by:
services.airsonic.contextPath¶
The context path, i.e., the last part of the Airsonic URL. Typically ‘/’ or ‘/airsonic’. Default ‘/’
Type: path
Default:
"/"Declared by:
services.airsonic.home¶
The directory where Airsonic will create files. Make sure it is writable.
Type: path
Default:
"/var/lib/airsonic"Declared by:
services.airsonic.jvmOptions¶
Extra command line options for the JVM running AirSonic. Useful for sending jukebox output to non-default alsa devices.
Type: list of strings
Default: ``[
]``
Example:
[ "-Djavax.sound.sampled.Clip='#CODEC \[plughw:1,0]'" "-Djavax.sound.sampled.Port='#Port CODEC \[hw:1]'" "-Djavax.sound.sampled.SourceDataLine='#CODEC \[plughw:1,0]'" "-Djavax.sound.sampled.TargetDataLine='#CODEC \[plughw:1,0]'" ]Declared by:
services.airsonic.listenAddress¶
The host name or IP address on which to bind Airsonic. Only relevant if you have multiple network interfaces and want to make Airsonic available on only one of them. The default value will bind Airsonic to all available network interfaces.
Type: string
Default:
"127.0.0.1"Declared by:
services.airsonic.maxMemory¶
The memory limit (max Java heap size) in megabytes. Default: 100
Type: signed integer
Default:
100Declared by:
services.airsonic.port¶
The port on which Airsonic will listen for incoming HTTP traffic. Set to 0 to disable.
Type: signed integer
Default:
4040Declared by:
services.airsonic.transcoders¶
List of paths to transcoder executables that should be accessible from Airsonic. Symlinks will be created to each executable inside /var/lib/airsonic/transcoders.
Type: list of paths
Default:
[ "\\${pkgs.ffmpeg.bin}/bin/ffmpeg" ]Declared by:
services.airsonic.user¶
User account under which airsonic runs.
Type: string
Default:
"airsonic"Declared by:
services.airsonic.virtualHost¶
Name of the nginx virtualhost to use and setup. If null, do not setup any virtualhost.
Type: null or string
Default:
nullDeclared by:
services.alerta.enable¶
Whether to enable alerta.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.alerta.authenticationRequired¶
Whether users must authenticate when using the web UI or command-line tool
Type: boolean
Default:
falseDeclared by:
services.alerta.bind¶
Address to bind to. The default is to bind to all addresses
Type: string
Default:
"0.0.0.0"Example:
0.0.0.0Declared by:
services.alerta.corsOrigins¶
List of URLs that can access the API for Cross-Origin Resource Sharing (CORS)
Type: list of strings
Default:
[ "http://localhost" "http://localhost:5000" ]Example:
[ "http://localhost" "http://localhost:5000" ]Declared by:
services.alerta.databaseName¶
Name of the database instance to connect to
Type: string
Default:
"monitoring"Example:
"monitoring"Declared by:
services.alerta.databaseUrl¶
URL of the MongoDB or PostgreSQL database to connect to
Type: string
Default:
"mongodb://localhost"Example:
"mongodb://localhost"Declared by:
services.alerta.extraConfig¶
These lines go into alertad.conf verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.alerta.logDir¶
Location where the logfiles are stored
Type: path
Default:
"/var/log/alerta"Declared by:
services.alerta.port¶
Port of Alerta
Type: signed integer
Default:
5000Declared by:
services.alerta.signupEnabled¶
Whether to prevent sign-up of new users via the web UI
Type: boolean
Default:
trueDeclared by:
services.amule.enable¶
Whether to run the AMule daemon. You need to manually run “amuled –ec-config” to configure the service for the first time.
Type: unspecified
Default:
falseDeclared by:
services.amule.dataDir¶
The directory holding configuration, incoming and temporary files.
Type: unspecified
Default:
"/home/amule/"Declared by:
services.amule.user¶
The user the AMule daemon should run as.
Type: unspecified
Default:
nullDeclared by:
services.apache-kafka.enable¶
Whether to enable Apache Kafka.
Type: boolean
Default:
falseDeclared by:
services.apache-kafka.package¶
The kafka package to use
Type: package
Default:
"pkgs.apacheKafka"Declared by:
services.apache-kafka.brokerId¶
Broker ID.
Type: signed integer
Default:
-1Declared by:
services.apache-kafka.extraProperties¶
Extra properties for server.properties.
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.apache-kafka.hostname¶
Hostname the broker should bind to.
Type: string
Default:
"localhost"Declared by:
services.apache-kafka.jvmOptions¶
Extra command line options for the JVM running Kafka.
Type: list of strings
Default:
[ "-server" "-Xmx1G" "-Xms1G" "-XX:+UseCompressedOops" "-XX:+UseParNewGC" "-XX:+UseConcMarkSweepGC" "-XX:+CMSClassUnloadingEnabled" "-XX:+CMSScavengeBeforeRemark" "-XX:+DisableExplicitGC" "-Djava.awt.headless=true" "-Djava.net.preferIPv4Stack=true" ]Example:
[ "-Djava.net.preferIPv4Stack=true" "-Dcom.sun.management.jmxremote" "-Dcom.sun.management.jmxremote.local.only=true" ]Declared by:
services.apache-kafka.log4jProperties¶
Kafka log4j property configuration.
Type: strings concatenated with “\n”
Default:
'' log4j.rootLogger=INFO, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=[%d] %p %m (%c)%n ''Declared by:
services.apache-kafka.logDirs¶
Log file directories
Type: list of paths
Default:
[ "/tmp/kafka-logs" ]Declared by:
services.apache-kafka.port¶
Port number the broker should listen on.
Type: signed integer
Default:
9092Declared by:
services.apache-kafka.serverProperties¶
Complete server.properties content. Other server.properties config options will be ignored if this option is used.
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.apache-kafka.zookeeper¶
Zookeeper connection string
Type: string
Default:
"localhost:2181"Declared by:
services.apcupsd.enable¶
Whether to enable the APC UPS daemon. apcupsd monitors your UPS and permits orderly shutdown of your computer in the event of a power failure. User manual: http://www.apcupsd.com/manual/manual.html. Note that apcupsd runs as root (to allow shutdown of computer). You can check the status of your UPS with the “apcaccess” command.
Type: boolean
Default:
falseDeclared by:
services.apcupsd.configText¶
Contents of the runtime configuration file, apcupsd.conf. The default settings makes apcupsd autodetect USB UPSes, limit network access to localhost and shutdown the system when the battery level is below 50 percent, or when the UPS has calculated that it has 5 minutes or less of remaining power-on time. See man apcupsd.conf for details.
Type: strings concatenated with “\n”
Default:
'' UPSTYPE usb NISIP 127.0.0.1 BATTERYLEVEL 50 MINUTES 5 ''Declared by:
services.apcupsd.hooks¶
Each attribute in this option names an apcupsd event and the string value it contains will be executed in a shell, in response to that event (prior to the default action). See “man apccontrol” for the list of events and what they represent.
A hook script can stop apccontrol from doing its default action by exiting with value 99. Do not do this unless you know what you’re doing.
Type: attribute set of strings concatenated with “\n”s
Default: ``{
}``
Example:
{ doshutdown = "# shell commands to notify that the computer is shutting down"; }Declared by:
services.arbtt.enable¶
Enable the arbtt statistics capture service.
Type: boolean
Default:
falseDeclared by:
services.arbtt.package¶
The package to use for the arbtt binaries.
Type: package
Default:
"pkgs.haskellPackages.arbtt"Example:
pkgs.haskellPackages.arbttDeclared by:
services.arbtt.logFile¶
The log file for captured samples.
Type: string
Default:
"%h/.arbtt/capture.log"Example:
"/home/username/.arbtt-capture.log"Declared by:
services.arbtt.sampleRate¶
The sampling interval in seconds.
Type: signed integer
Default:
60Example:
120Declared by:
services.aria2.enable¶
Whether or not to enable the headless Aria2 daemon service.
Aria2 daemon can be controlled via the RPC interface using one of many WebUI (http://localhost:6800/ by default).
Targets are downloaded to /var/lib/aria2/Downloads by default and are accessible to users in the “aria2” group.
Type: boolean
Default:
falseDeclared by:
services.aria2.downloadDir¶
Directory to store downloaded files.
Type: path
Default:
"/var/lib/aria2/Downloads"Declared by:
services.aria2.extraArguments¶
Additional arguments to be passed to Aria2.
Type: strings concatenated with ” “
Default:
""Example:
"--rpc-listen-all --remote-time=true"Declared by:
services.aria2.listenPortRange¶
Set UDP listening port range used by DHT(IPv4, IPv6) and UDP tracker.
Type: list of attribute sets
Default: ``[
{ from = 6881; to = 6999; }
]``
Declared by:
services.aria2.openPorts¶
Open listen and RPC ports found in listenPortRange and rpcListenPort options in the firewall.
Type: boolean
Default:
falseDeclared by:
services.aria2.rpcListenPort¶
Specify a port number for JSON-RPC/XML-RPC server to listen to. Possible Values: 1024-65535
Type: signed integer
Default:
6800Declared by:
services.aria2.rpcSecret¶
Set RPC secret authorization token. Read https://aria2.github.io/manual/en/html/aria2c.html#rpc-auth to know how this option value is used.
Type: string
Default:
"aria2rpc"Declared by:
services.asterisk.enable¶
Whether to enable the Asterisk PBX server.
Type: boolean
Default:
falseDeclared by:
services.asterisk.package¶
The Asterisk package to use.
Type: package
Default:
"pkgs.asterisk"Declared by:
services.asterisk.confFiles¶
Sets the content of config files (typically ending with``.conf``) in the Asterisk configuration directory.
Note that if you want to change
asterisk.conf, it is preferable to use the option over this option. If"asterisk.conf"is specified with the option (not recommended), you must be prepared to set your ownastetcdirpath.See` <http://www.asterisk.org/community/documentation>`_ for more examples of what is possible here.
Type: attribute set of strings
Default: ``{
}``
Example:
{ "extensions.conf" = '' [tests] ; Dial 100 for "hello, world" exten => 100,1,Answer() same => n,Wait(1) same => n,Playback(hello-world) same => n,Hangup() [softphones] include => tests [unauthorized] ''; "sip.conf" = '' [general] allowguest=no ; Require authentication context=unauthorized ; Send unauthorized users to /dev/null srvlookup=no ; Don't do DNS lookup udpbindaddr=0.0.0.0 ; Listen on all interfaces nat=force_rport,comedia ; Assume device is behind NAT [softphone](!) type=friend ; Match on username first, IP second context=softphones ; Send to softphones context in ; extensions.conf file host=dynamic ; Device will register with asterisk disallow=all ; Manually specify codecs to allow allow=g722 allow=ulaw allow=alaw [myphone](softphone) secret=GhoshevFew ; Change this password! ''; "logger.conf" = '' [general] [logfiles] ; Add debug output to log syslog.local0 => notice,warning,error,debug ''; }Declared by:
services.asterisk.extraArguments¶
Additional command line arguments to pass to Asterisk.
Type: list of strings
Default: ``[
]``
Example:
[ "-vvvddd" "-e" "1024" ]Declared by:
services.asterisk.extraConfig¶
Extra configuration options appended to the default``asterisk.conf`` file.
Type: strings concatenated with “\n”
Default:
""Example:
'' [options] verbose=3 debug=3 ''Declared by:
services.asterisk.useTheseDefaultConfFiles¶
Sets these config files to the default content. The default value for this option contains all necesscary files to avoid errors at startup. This does not override settings via .
Type: list of strings
Default:
[ "ari.conf" "acl.conf" "agents.conf" "amd.conf" "calendar.conf" "cdr.conf" "cdr_syslog.conf" "cdr_custom.conf" "cel.conf" "cel_custom.conf" "cli_aliases.conf" "confbridge.conf" "dundi.conf" "features.conf" "hep.conf" "iax.conf" "pjsip.conf" "pjsip_wizard.conf" "phone.conf" "phoneprov.conf" "queues.conf" "res_config_sqlite3.conf" "res_parking.conf" "statsd.conf" "udptl.conf" "unistim.conf" ]Example:
[ "sip.conf" "dundi.conf" ]Declared by:
services.atd.enable¶
Whether to enable the at daemon, a command scheduler.
Type: boolean
Default:
falseDeclared by:
services.atd.allowEveryone¶
Whether to make
/var/spool/atjobs,spoolwriteable by everyone (and sticky). This is normally not needed since the at commands are setuid/setgidatd.Type: boolean
Default:
falseDeclared by:
services.atftpd.enable¶
Whether to enable the atftpd TFTP server. By default, the server binds to address 0.0.0.0.
Type: boolean
Default:
falseDeclared by:
services.atftpd.extraOptions¶
Extra command line arguments to pass to atftp.
Type: list of strings
Default: ``[
]``
Example:
[ "--bind-address 192.168.9.1" "--verbose=7" ]Declared by:
services.atftpd.root¶
Document root directory for the atftpd.
Type: path
Default:
"/srv/tftp"Declared by:
services.autofs.enable¶
Mount filesystems on demand. Unmount them automatically. You may also be interested in afuse.
Type: unspecified
Default:
falseDeclared by:
services.autofs.autoMaster¶
Contents of
/etc/auto.masterfile. See auto.master(5) and autofs(5).Type: string
Example:
let mapConf = pkgs.writeText "auto" '' kernel -ro,soft,intr ftp.kernel.org:/pub/linux boot -fstype=ext2 :/dev/hda1 windoze -fstype=smbfs ://windoze/c removable -fstype=ext2 :/dev/hdd cd -fstype=iso9660,ro :/dev/hdc floppy -fstype=auto :/dev/fd0 server -rw,hard,intr / -ro myserver.me.org:/ \ /usr myserver.me.org:/usr \ /home myserver.me.org:/home ''; in '' /auto file:${mapConf} ''Declared by:
services.autofs.debug¶
Pass -d and -7 to automount and write log to the system journal.
Type: unspecified
Default:
falseDeclared by:
services.autofs.timeout¶
Set the global minimum timeout, in seconds, until directories are unmounted
Type: unspecified
Default:
600Declared by:
services.automysqlbackup.enable¶
Whether to enable AutoMySQLBackup.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.automysqlbackup.calendar¶
Configured when to run the backup service systemd unit (DayOfWeek Year-Month-Day Hour:Minute:Second).
Type: string
Default:
"01:15:00"Declared by:
services.automysqlbackup.config¶
automysqlbackup configuration. Refer to:file:${pkgs.automysqlbackup}/etc/automysqlbackup.conf for details on supported values.
Type: attribute set of string or signed integer or boolean or list of stringss
Default: ``{
}``
Example:
{ db_names = [ "nextcloud" "matomo" ]; table_exclude = [ "nextcloud.oc_users" "nextcloud.oc_whats_new" ]; mailcontent = "log"; mail_address = "admin@example.org"; }Declared by:
services.autorandr.enable¶
Whether to enable handling of hotplug and sleep events by autorandr.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.autorandr.defaultTarget¶
Fallback if no monitor layout can be detected. See the docs (https://github.com/phillipberndt/autorandr/blob/v1.0/README.md#how-to-use) for further reference.
Type: string
Default:
"default"Declared by:
services.autossh.sessions¶
List of AutoSSH sessions to start as systemd services. Each service is named ‘autossh-{session.name}’.
Type: list of submodules
Default: ``[
]``
Example: ``[
{ extraArguments = “-N -D4343 billremote@socks.host.net”; monitoringPort = 20000; name = “socks-peer”; user = “bill”; }
]``
Declared by:
services.autossh.sessions.*.extraArguments¶
Arguments to be passed to AutoSSH and retransmitted to SSH process. Some meaningful options include -N (don’t run remote command), -D (open SOCKS proxy on local port), -R (forward remote port), -L (forward local port), -v (Enable debug). Check ssh manual for the complete list.
Type: strings concatenated with ” “
Example:
"-N -D4343 bill@socks.example.net"Declared by:
services.autossh.sessions.*.monitoringPort¶
Port to be used by AutoSSH for peer monitoring. Note, that AutoSSH also uses mport+1. Value of 0 disables the keep-alive style monitoring
Type: signed integer
Default:
0Example:
20000Declared by:
services.autossh.sessions.*.name¶
Name of the local AutoSSH session
Type: string
Example:
"socks-peer"Declared by:
services.autossh.sessions.*.user¶
Name of the user the AutoSSH session should run as
Type: string
Example:
"bill"Declared by:
services.avahi.enable¶
Whether to run the Avahi daemon, which allows Avahi clients to use Avahi’s service discovery facilities and also allows the local machine to advertise its presence and services (through the mDNS responder implemented by `avahi-daemon’).
Type: boolean
Default:
falseDeclared by:
services.avahi.allowPointToPoint¶
Whether to use POINTTOPOINT interfaces. Might make mDNS unreliable due to usually large latencies with such links and opens a potential security hole by allowing mDNS access from Internet connections.
Type: boolean
Default:
falseDeclared by:
services.avahi.browseDomains¶
List of non-local DNS domains to be browsed.
Type: list of strings
Default: ``[
]``
Example:
[ "0pointer.de" "zeroconf.org" ]Declared by:
services.avahi.cacheEntriesMax¶
Number of resource records to be cached per interface. Use 0 to disable caching. Avahi daemon defaults to 4096 if not set.
Type: null or signed integer
Default:
nullDeclared by:
services.avahi.domainName¶
Domain name for all advertisements.
Type: string
Default:
"local"Declared by:
services.avahi.extraConfig¶
Extra config to append to avahi-daemon.conf.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.avahi.extraServiceFiles¶
Specify custom service definitions which are placed in the avahi service directory. See the avahi.service5 manpage for detailed information.
Type: attribute set of string or paths
Default: ``{
}``
Example:
{ ssh = "${pkgs.avahi}/etc/avahi/services/ssh.service"; smb = '' <?xml version="1.0" standalone='no'?><!--*-nxml-*--> <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> <service-group> <name replace-wildcards="yes">%h</name> <service> <type>_smb._tcp</type> <port>445</port> </service> </service-group> ''; }Declared by:
services.avahi.hostName¶
Host name advertised on the LAN. If not set, avahi will use the value of .
Type: string
Default:
config.networking.hostNameDeclared by:
services.avahi.interfaces¶
List of network interfaces that should be used by the avahi-daemon. Other interfaces will be ignored. If
null, all local interfaces except loopback and point-to-point will be used.Type: null or list of strings
Default:
nullDeclared by:
services.avahi.ipv4¶
Whether to use IPv4.
Type: boolean
Default:
trueDeclared by:
services.avahi.ipv6¶
Whether to use IPv6.
Type: boolean
Default:
falseDeclared by:
services.avahi.nssmdns¶
Whether to enable the mDNS NSS (Name Service Switch) plug-in. Enabling it allows applications to resolve names in the `.local’ domain by transparently querying the Avahi daemon.
Type: boolean
Default:
falseDeclared by:
services.avahi.openFirewall¶
Whether to open the firewall for UDP port 5353.
Type: boolean
Default:
trueDeclared by:
services.avahi.publish.enable¶
Whether to allow publishing in general.
Type: boolean
Default:
falseDeclared by:
services.avahi.publish.addresses¶
Whether to register mDNS address records for all local IP addresses.
Type: boolean
Default:
falseDeclared by:
services.avahi.publish.domain¶
Whether to announce the locally used domain name for browsing by other hosts.
Type: boolean
Default:
falseDeclared by:
services.avahi.publish.hinfo¶
Whether to register a mDNS HINFO record which contains information about the local operating system and CPU.
Type: boolean
Default:
falseDeclared by:
services.avahi.publish.userServices¶
Whether to publish user services. Will set
addresses=true.Type: boolean
Default:
falseDeclared by:
services.avahi.publish.workstation¶
Whether to register a service of type “_workstation._tcp” on the local LAN.
Type: boolean
Default:
falseDeclared by:
services.avahi.reflector¶
Reflect incoming mDNS requests to all allowed network interfaces.
Type: boolean
Default:
falseDeclared by:
services.avahi.wideArea¶
Whether to enable wide-area service discovery.
Type: boolean
Default:
trueDeclared by:
services.awstats.enable¶
Whether to enable awstats.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.awstats.configs¶
Attribute set of domains to collect stats for.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ "mysite" = { domain = "example.com"; logFile = "/var/spool/nginx/logs/access.log"; }; }Declared by:
services.awstats.configs.<name>.domain¶
The domain name to collect stats for.
Type: string
Default:
"‹name›"Example:
"example.com"Declared by:
services.awstats.configs.<name>.extraConfig¶
Extra configuration to be appendend to awstats.${name}.conf.
Type: attribute set of strings
Default: ``{
}``
Example:
{ "ValidHTTPCodes" = "404"; }Declared by:
services.awstats.configs.<name>.hostAliases¶
List of aliases the site has.
Type: list of strings
Default: ``[
]``
Example:
''[ "www.example.org" ]''Declared by:
services.awstats.configs.<name>.logFile¶
services.awstats.configs.<name>.logFormat¶
The log format being used.
For mail, set this to``%time2 %email %email_r %host %host_r %method %url %code %bytesd``
Type: string
Default:
"1"Declared by:
services.awstats.configs.<name>.type¶
The type of log being collected.
Type: one of “mail”, “web”
Default:
"web"Example:
"mail"Declared by:
services.awstats.configs.<name>.webService.enable¶
Whether to enable awstats web service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.awstats.configs.<name>.webService.hostname¶
The hostname the web service appears under.
Type: string
Default:
"‹name›"Declared by:
services.awstats.configs.<name>.webService.urlPrefix¶
The URL prefix under which the awstats pages appear.
Type: string
Default:
"/awstats"Declared by:
services.awstats.dataDir¶
The directory where awstats data will be stored.
Type: path
Default:
"/var/lib/awstats"Declared by:
services.awstats.updateAt¶
Specification of the time at which awstats will get updated. (in the format described by systemd.time7)
Type: null or string
Default:
nullExample:
"hourly"Declared by:
services.babeld.enable¶
Whether to run the babeld network routing daemon.
Type: unspecified
Default:
falseDeclared by:
services.babeld.extraConfig¶
Options that will be copied to babeld.conf. See babeld8 for details.
Type: unspecified
Default:
""Declared by:
services.babeld.interfaceDefaults¶
A set describing default parameters for babeld interfaces. See babeld8 for options.
Type: null or attribute set of unspecifieds
Default:
nullExample:
{ split-horizon = true; type = "tunnel"; }Declared by:
services.babeld.interfaces¶
A set describing babeld interfaces. See babeld8 for options.
Type: attribute set of attribute set of unspecifiedss
Default: ``{
}``
Example:
{ enp0s2 = { hello-interval = 5; split-horizon = "auto"; type = "wired"; } ; }Declared by:
services.bacula-dir.enable¶
Whether to enable Bacula Director Daemon.
Type: boolean
Default:
falseDeclared by:
services.bacula-dir.extraConfig¶
Extra configuration for Bacula Director Daemon.
Type: strings concatenated with “\n”
Default:
""Example:
'' TODO ''Declared by:
services.bacula-dir.extraDirectorConfig¶
Extra configuration to be passed in Director directive.
Type: unspecified
Default:
""Example:
'' Maximum Concurrent Jobs = 20; Heartbeat Interval = 30; ''Declared by:
services.bacula-dir.extraMessagesConfig¶
Extra configuration to be passed in Messages directive.
Type: unspecified
Default:
""Example:
'' console = all ''Declared by:
services.bacula-dir.name¶
The director name used by the system administrator. This directive is required.
Type: unspecified
Default:
"nixos-dir"Declared by:
services.bacula-dir.password¶
Specifies the password that must be supplied for a Director.
Type: unspecified
Declared by:
services.bacula-dir.port¶
Specify the port (a positive integer) on which the Director daemon will listen for Bacula Console connections. This same port number must be specified in the Director resource of the Console configuration file. The default is 9101, so normally this directive need not be specified. This directive should not be used if you specify DirAddresses (N.B plural) directive.
Type: signed integer
Default:
9101Declared by:
services.bacula-fd.enable¶
Whether to enable the Bacula File Daemon.
Type: boolean
Default:
falseDeclared by:
services.bacula-fd.director¶
This option defines director resources in Bacula File Daemon.
Type: attribute set of submodules
Default: ``{
}``
Declared by:
services.bacula-fd.director.<name>.monitor¶
If Monitor is set to
no, this director will have full access to this Storage daemon. If Monitor is set to``yes``, this director will only be able to fetch the current status of this Storage daemon.Please note that if this director is being used by a Monitor, we highly recommend to set this directive to yes to avoid serious security problems.
Type: unspecified
Default:
"no"Example:
"yes"Declared by:
services.bacula-fd.director.<name>.password¶
Specifies the password that must be supplied for the default Bacula Console to be authorized. The same password must appear in the Director resource of the Console configuration file. For added security, the password is never passed across the network but instead a challenge response hash code created with the password. This directive is required. If you have either /dev/random or bc on your machine, Bacula will generate a random password during the configuration process, otherwise it will be left blank and you must manually supply it.
The password is plain text. It is not generated through any special process but as noted above, it is better to use random text for security reasons.
Type: unspecified
Declared by:
services.bacula-fd.extraClientConfig¶
Extra configuration to be passed in Client directive.
Type: unspecified
Default:
""Example:
'' Maximum Concurrent Jobs = 20; Heartbeat Interval = 30; ''Declared by:
services.bacula-fd.extraMessagesConfig¶
Extra configuration to be passed in Messages directive.
Type: unspecified
Default:
""Example:
'' console = all ''Declared by:
services.bacula-fd.name¶
The client name that must be used by the Director when connecting. Generally, it is a good idea to use a name related to the machine so that error messages can be easily identified if you have multiple Clients. This directive is required.
Type: unspecified
Default:
"nixos-fd"Declared by:
services.bacula-fd.port¶
This specifies the port number on which the Client listens for Director connections. It must agree with the FDPort specified in the Client resource of the Director’s configuration file.
Type: signed integer
Default:
9102Declared by:
services.bacula-sd.enable¶
Whether to enable Bacula Storage Daemon.
Type: boolean
Default:
falseDeclared by:
services.bacula-sd.autochanger¶
This option defines Autochanger resources in Bacula Storage Daemon.
Type: attribute set of submodules
Default: ``{
}``
Declared by:
services.bacula-sd.autochanger.<name>.changerCommand¶
The name-string specifies an external program to be called that will automatically change volumes as required by Bacula. Normally, this directive will be specified only in the AutoChanger resource, which is then used for all devices. However, you may also specify the different Changer Command in each Device resource. Most frequently, you will specify the Bacula supplied mtx-changer script as follows:
"/path/mtx-changer %c %o %S %a %d"and you will install the mtx on your system (found in the depkgs release). An example of this command is in the default bacula-sd.conf file. For more details on the substitution characters that may be specified to configure your autochanger please see the AutochangersAutochangersChapter chapter of this manual. For FreeBSD users, you might want to see one of the several chio scripts in examples/autochangers.
Type: unspecified
Default:
"/etc/bacula/mtx-changer %c %o %S %a %d"Declared by:
services.bacula-sd.autochanger.<name>.changerDevice¶
The specified name-string must be the generic SCSI device name of the autochanger that corresponds to the normal read/write Archive Device specified in the Device resource. This generic SCSI device name should be specified if you have an autochanger or if you have a standard tape drive and want to use the Alert Command (see below). For example, on Linux systems, for an Archive Device name of``/dev/nst0``, you would specify``/dev/sg0`` for the Changer Device name. Depending on your exact configuration, and the number of autochangers or the type of autochanger, what you specify here can vary. This directive is optional. See the Using AutochangersAutochangersChapter chapter of this manual for more details of using this and the following autochanger directives.
Type: unspecified
Declared by:
services.bacula-sd.autochanger.<name>.devices¶
services.bacula-sd.autochanger.<name>.extraAutochangerConfig¶
Extra configuration to be passed in Autochanger directive.
Type: unspecified
Default:
""Example:
'' ''Declared by:
services.bacula-sd.device¶
This option defines Device resources in Bacula Storage Daemon.
Type: attribute set of submodules
Default: ``{
}``
Declared by:
services.bacula-sd.device.<name>.archiveDevice¶
The specified name-string gives the system file name of the storage device managed by this storage daemon. This will usually be the device file name of a removable storage device (tape drive), for example
/dev/nst0or``/dev/rmt/0mbn``. For a DVD-writer, it will be for example/dev/hdc. It may also be a directory name if you are archiving to disk storage. In this case, you must supply the full absolute path to the directory. When specifying a tape device, it is preferable that the “non-rewind” variant of the device file name be given.Type: unspecified
Declared by:
services.bacula-sd.device.<name>.extraDeviceConfig¶
Extra configuration to be passed in Device directive.
Type: unspecified
Default:
""Example:
'' LabelMedia = yes Random Access = no AutomaticMount = no RemovableMedia = no MaximumOpenWait = 60 AlwaysOpen = no ''Declared by:
services.bacula-sd.device.<name>.mediaType¶
The specified name-string names the type of media supported by this device, for example,
DLT7000. Media type names are arbitrary in that you set them to anything you want, but they must be known to the volume database to keep track of which storage daemons can read which volumes. In general, each different storage type should have a unique Media Type associated with it. The same name-string must appear in the appropriate Storage resource definition in the Director’s configuration file.Even though the names you assign are arbitrary (i.e. you choose the name you want), you should take care in specifying them because the Media Type is used to determine which storage device Bacula will select during restore. Thus you should probably use the same Media Type specification for all drives where the Media can be freely interchanged. This is not generally an issue if you have a single Storage daemon, but it is with multiple Storage daemons, especially if they have incompatible media.
For example, if you specify a Media Type of
DDS-4then during the restore, Bacula will be able to choose any Storage Daemon that handlesDDS-4. If you have an autochanger, you might want to name the Media Type in a way that is unique to the autochanger, unless you wish to possibly use the Volumes in other drives. You should also ensure to have unique Media Type names if the Media is not compatible between drives. This specification is required for all devices.In addition, if you are using disk storage, each Device resource will generally have a different mount point or directory. In order for Bacula to select the correct Device resource, each one must have a unique Media Type.
Type: unspecified
Declared by:
services.bacula-sd.director¶
This option defines Director resources in Bacula Storage Daemon.
Type: attribute set of submodules
Default: ``{
}``
Declared by:
services.bacula-sd.director.<name>.monitor¶
If Monitor is set to
no, this director will have full access to this Storage daemon. If Monitor is set to``yes``, this director will only be able to fetch the current status of this Storage daemon.Please note that if this director is being used by a Monitor, we highly recommend to set this directive to yes to avoid serious security problems.
Type: unspecified
Default:
"no"Example:
"yes"Declared by:
services.bacula-sd.director.<name>.password¶
Specifies the password that must be supplied for the default Bacula Console to be authorized. The same password must appear in the Director resource of the Console configuration file. For added security, the password is never passed across the network but instead a challenge response hash code created with the password. This directive is required. If you have either /dev/random or bc on your machine, Bacula will generate a random password during the configuration process, otherwise it will be left blank and you must manually supply it.
The password is plain text. It is not generated through any special process but as noted above, it is better to use random text for security reasons.
Type: unspecified
Declared by:
services.bacula-sd.extraMessagesConfig¶
Extra configuration to be passed in Messages directive.
Type: unspecified
Default:
""Example:
'' console = all ''Declared by:
services.bacula-sd.extraStorageConfig¶
Extra configuration to be passed in Storage directive.
Type: unspecified
Default:
""Example:
'' Maximum Concurrent Jobs = 20; Heartbeat Interval = 30; ''Declared by:
services.bacula-sd.name¶
Specifies the Name of the Storage daemon.
Type: unspecified
Default:
"nixos-sd"Declared by:
services.bacula-sd.port¶
Specifies port number on which the Storage daemon listens for Director connections.
Type: signed integer
Default:
9103Declared by:
services.bamf.enable¶
Whether to enable bamf.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.beanstalkd.enable¶
Whether to enable the Beanstalk work queue.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.beanstalkd.listen.address¶
IP address to listen on.
Type: string
Default:
"127.0.0.1"Example:
"0.0.0.0"Declared by:
services.beanstalkd.listen.port¶
TCP port that will be used to accept client connections.
Type: signed integer
Default:
11300Declared by:
services.beesd.filesystems¶
BTRFS filesystems to run block-level deduplication on.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ root = { spec = "LABEL=root"; hashTableSizeMB = 2048; verbosity = "crit"; extraOptions = [ "--loadavg-target" "5.0" ]; }; }Declared by:
services.beesd.filesystems.<name>.extraOptions¶
Extra command-line options passed to the daemon. See upstream bees documentation.
Type: list of strings
Default: ``[
]``
Example:
[ "--thread-count" "4" ]Declared by:
services.beesd.filesystems.<name>.hashTableSizeMB¶
Hash table size in MB; must be a multiple of 16.
A larger ratio of index size to storage size means smaller blocks of duplicate content are recognized.
If you have 1TB of data, a 4GB hash table (which is to say, a value of 4096) will permit 4KB extents (the smallest possible size) to be recognized, whereas a value of 1024 – creating a 1GB hash table – will recognize only aligned duplicate blocks of 16KB.
Type: signed integer
Default:
1024Declared by:
services.beesd.filesystems.<name>.spec¶
Description of how to identify the filesystem to be duplicated by this instance of bees. Note that deduplication crosses subvolumes; one must not configure multiple instances for subvolumes of the same filesystem (or block devices which are part of the same filesystem), but only for completely independent btrfs filesystems.
This must be in a format usable by findmnt; that could be a key=value pair, or a bare path to a mount point.
Type: string
Example:
"LABEL=MyBulkDataDrive"Declared by:
services.beesd.filesystems.<name>.verbosity¶
Log verbosity (syslog keyword/level).
Type: one of “alert”, “crit”, “debug”, “emerg”, “err”, “info”, “notice”, “warning”, 1, 2, 7, 0, 3, 6, 5, 4
Default:
"info"Declared by:
services.beesd.filesystems.<name>.workDir¶
Name (relative to the root of the filesystem) of the subvolume where the hash table will be stored.
Type: string
Default:
".beeshome"Declared by:
services.bepasty.enable¶
Whether to enable Bepasty servers.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.bepasty.servers¶
configure a number of bepasty servers which will be started with gunicorn.
Type: attribute set of submodules
Default: ``{
}``
Declared by:
services.bepasty.servers.<name>.bind¶
Bind address to be used for this server.
Type: string
Default:
"127.0.0.1:8000"Example:
"0.0.0.0:8000"Declared by:
services.bepasty.servers.<name>.dataDir¶
Path to the directory where the pastes will be saved to
Type: string
Default:
"/var/lib/bepasty/data"Declared by:
services.bepasty.servers.<name>.defaultPermissions¶
default permissions for all unauthenticated accesses.
Type: string
Default:
"read"Example:
"read,create,delete"Declared by:
services.bepasty.servers.<name>.extraConfig¶
Extra configuration for bepasty server to be appended on the configuration. see https://bepasty-server.readthedocs.org/en/latest/quickstart.html#configuring-bepasty for all options.
Type: strings concatenated with “\n”
Default:
""Example:
'' PERMISSIONS = { 'myadminsecret': 'admin,list,create,read,delete', } MAX_ALLOWED_FILE_SIZE = 5 * 1000 * 1000 ''Declared by:
services.bepasty.servers.<name>.secretKey¶
server secret for safe session cookies, must be set.
Warning: this secret is stored in the WORLD-READABLE Nix store!
It’s recommended to use which takes precedence over .
Type: string
Default:
""Declared by:
services.bepasty.servers.<name>.secretKeyFile¶
A file that contains the server secret for safe session cookies, must be set.
takes precedence over .
Warning: when is non-empty defaults to a file in the WORLD-READABLE Nix store containing that secret.
Type: null or string
Default:
nullDeclared by:
services.bepasty.servers.<name>.workDir¶
Path to the working directory (used for config and pidfile). Defaults to the users home directory.
Type: string
Default:
"/var/lib/bepasty"Declared by:
services.bind.enable¶
Whether to enable BIND domain name server.
Type: unspecified
Default:
falseDeclared by:
services.bind.blockedNetworks¶
services.bind.cacheNetworks¶
What networks are allowed to use us as a resolver. Note that this is for recursive queries – all networks are allowed to query zones configured with the `zones` option. It is recommended that you limit cacheNetworks to avoid your server being used for DNS amplification attacks.
Type: unspecified
Default:
[ "127.0.0.0/24" ]Declared by:
services.bind.configFile¶
Overridable config file to use for named. By default, that generated by nixos.
Type: path
Default:
"confFile"Declared by:
services.bind.extraConfig¶
Extra lines to be added verbatim to the generated named configuration file.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.bind.extraOptions¶
Extra lines to be added verbatim to the options section of the generated named configuration file.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.bind.forwarders¶
services.bind.ipv4Only¶
Only use ipv4, even if the host supports ipv6.
Type: unspecified
Default:
falseDeclared by:
services.bind.listenOn¶
Interfaces to listen on.
Type: list of strings
Default:
[ "any" ]Declared by:
services.bind.listenOnIpv6¶
Ipv6 interfaces to listen on.
Type: list of strings
Default:
[ "any" ]Declared by:
services.bind.zones¶
List of zones we claim authority over. master=false means slave server; slaves means addresses who may request zone transfer.
Type: unspecified
Default: ``[
]``
Example: ``[
{ extraConfig = “”; file = “/var/dns/example.com”; master = false; masters = [ “192.168.0.1” ] ; name = “example.com”; slaves = [
}
]``
Declared by:
services.bird.enable¶
Whether to enable BIRD Internet Routing Daemon (1.9.x with IPv4 suport).
Type: boolean
Default:
falseExample:
trueDeclared by:
services.bird.config¶
BIRD Internet Routing Daemon configuration file.` <http://bird.network.cz/>`_
Type: strings concatenated with “\n”
Declared by:
services.bird2.enable¶
Whether to enable BIRD Internet Routing Daemon (2.x).
Type: boolean
Default:
falseExample:
trueDeclared by:
services.bird2.config¶
BIRD Internet Routing Daemon configuration file.` <http://bird.network.cz/>`_
Type: strings concatenated with “\n”
Declared by:
services.bird6.enable¶
Whether to enable BIRD Internet Routing Daemon (1.9.x with IPv6 suport).
Type: boolean
Default:
falseExample:
trueDeclared by:
services.bird6.config¶
BIRD Internet Routing Daemon configuration file.` <http://bird.network.cz/>`_
Type: strings concatenated with “\n”
Declared by:
services.bitcoind.enable¶
Whether to enable Bitcoin daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.bitcoind.package¶
The package providing bitcoin binaries.
Type: package
Default:
"pkgs.bitcoind"Declared by:
services.bitcoind.configFile¶
The configuration file path to supply bitcoind.
Type: path
Default:
*(build of bitcoin.conf)*Example:
"/etc/bitcoind.conf"Declared by:
services.bitcoind.dataDir¶
The data directory for bitcoind.
Type: path
Default:
"/var/lib/bitcoind"Declared by:
services.bitcoind.dbCache¶
Override the default database cache size in megabytes.
Type: null or integer between 4 and 16384 (both inclusive)
Default:
nullExample:
4000Declared by:
services.bitcoind.extraConfig¶
Additional configurations to be appended to
bitcoin.conf.Type: strings concatenated with “\n”
Default:
""Example:
'' par=16 rpcthreads=16 logips=1 ''Declared by:
services.bitcoind.group¶
The group as which to run bitcoind.
Type: string
Default:
"bitcoin"Declared by:
services.bitcoind.port¶
Override the default port on which to listen for connections.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
nullDeclared by:
services.bitcoind.prune¶
Reduce storage requirements by enabling pruning (deleting) of old blocks. This allows the pruneblockchain RPC to be called to delete specific blocks, and enables automatic pruning of old blocks if a target size in MiB is provided. This mode is incompatible with -txindex and -rescan. Warning: Reverting this setting requires re-downloading the entire blockchain. (“disable” = disable pruning blocks, “manual” = allow manual pruning via RPC, >=550 = automatically prune block files to stay under the specified target size in MiB)
Type: null or unsigned integer, meaning >=0 or one of “disable”, “manual” convertible to it
Default:
nullExample:
10000Declared by:
services.bitcoind.rpc.port¶
Override the default port on which to listen for JSON-RPC connections.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
nullDeclared by:
services.bitcoind.rpc.users¶
RPC user information for JSON-RPC connnections.
Type: list or attribute set of submodules
Default: ``{
}``
Example:
{ alice.passwordHMAC = "f7efda5c189b999524f151318c0c86$d5b51b3beffbc02b724e5d095828e0bc8b2456e9ac8757ae3211a5d9b16a22ae"; bob.passwordHMAC = "b2dd077cb54591a2f3139e69a897ac$4e71f08d48b4347cf8eff3815c0e25ae2e9a4340474079f55705f40574f4ec99"; }Declared by:
services.bitcoind.rpc.users.<name?>.name¶
Username for JSON-RPC connections.
Type: string
Example:
"alice"Declared by:
services.bitcoind.rpc.users.<name?>.passwordHMAC¶
Password HMAC-SHA-256 for JSON-RPC connections. Must be a string of the format <SALT-HEX>$<HMAC-HEX>.
Type: string matching the pattern [0-9a-f]+\$[0-9a-f]{64}
Example:
"f7efda5c189b999524f151318c0c86\\$d5b51b3beffbc02b724e5d095828e0bc8b2456e9ac8757ae3211a5d9b16a22ae"Declared by:
services.bitcoind.testnet¶
Whether to use the test chain.
Type: boolean
Default:
falseDeclared by:
services.bitcoind.user¶
The user as which to run bitcoind.
Type: string
Default:
"bitcoin"Declared by:
services.bitlbee.enable¶
Whether 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.
Type: unspecified
Default:
falseDeclared by:
services.bitlbee.authBackend¶
How users are authenticated storage – save passwords internally pam – Linux PAM authentication
Type: one of “storage”, “pam”
Default:
"storage"Declared by:
services.bitlbee.authMode¶
The following authentication modes are available: Open – Accept connections from anyone, use NickServ for user authentication. Closed – Require authorization (using the PASS command during login) before allowing the user to connect at all. Registered – Only allow registered users to use this server; this disables the register- and the account command until the user identifies himself.
Type: one of “Open”, “Closed”, “Registered”
Default:
"Open"Declared by:
services.bitlbee.configDir¶
Specify an alternative directory to store all the per-user configuration files.
Type: path
Default:
"/var/lib/bitlbee"Declared by:
services.bitlbee.extraDefaults¶
Will be inserted in the Default section of the config file.
Type: unspecified
Default:
""Declared by:
services.bitlbee.extraSettings¶
Will be inserted in the Settings section of the config file.
Type: unspecified
Default:
""Declared by:
services.bitlbee.hostName¶
Normally, BitlBee gets a hostname using getsockname(). If you have a nicer alias for your BitlBee daemon, you can set it here and BitlBee will identify itself with that name instead.
Type: string
Default:
""Declared by:
services.bitlbee.interface¶
The interface the BitlBee deamon will be listening to. If `127.0.0.1’, only clients on the local host can connect to it; if `0.0.0.0’, clients can access it from any network interface.
Type: unspecified
Default:
"127.0.0.1"Declared by:
services.bitlbee.libpurple_plugins¶
The list of libpurple plugins to install.
Type: list of packages
Default: ``[
]``
Example:
[ pkgs.purple-matrix ]Declared by:
services.bitlbee.plugins¶
The list of bitlbee plugins to install.
Type: list of packages
Default: ``[
]``
Example:
[ pkgs.bitlbee-facebook ]Declared by:
services.bitlbee.portNumber¶
Number of the port BitlBee will be listening to.
Type: unspecified
Default:
6667Declared by:
services.bitlbee.protocols¶
This option allows to remove the support of protocol, even if compiled in. If nothing is given, there are no restrictions.
Type: string
Default:
""Declared by:
services.bitwarden_rs.enable¶
Whether to enable bitwarden_rs.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.bitwarden_rs.backupDir¶
The directory under which bitwarden_rs will backup its persistent data.
Type: null or string
Default:
nullDeclared by:
services.bitwarden_rs.config¶
The configuration of bitwarden_rs is done through environment variables, therefore the names are converted from camel case (e.g. disable2FARemember) to upper case snake case (e.g. DISABLE_2FA_REMEMBER). In this conversion digits (0-9) are handled just like upper case characters, so foo2 would be converted to FOO_2. Names already in this format remain unchanged, so FOO2 remains FOO2 if passed as such, even though foo2 would have been converted to FOO_2. This allows working around any potential future conflicting naming conventions.
Based on the attributes passed to this config option an environment file will be generated that is passed to bitwarden_rs’s systemd service.
The available configuration options can be found in`the environment template file <https://github.com/dani-garcia/bitwarden_rs/blob/1.13.1/.env.template>`_.
Type: attribute set of null or boolean or signed integer or strings
Default: ``{
}``
Example:
{ domain = https://bw.domain.tld:8443; signupsAllowed = true; rocketPort = 8222; rocketLog = "critical"; }Declared by:
services.bitwarden_rs.dbBackend¶
Which database backend bitwarden_rs will be using.
Type: one of “sqlite”, “mysql”, “postgresql”
Default:
"sqlite"Declared by:
services.bloop.extraOptions¶
Specifies additional command line argument to pass to bloop java process.
Type: list of strings
Default: ``[
]``
Example:
[ "-J-Xmx2G" "-J-XX:MaxInlineLevel=20" "-J-XX:+UseParallelGC" ]Declared by:
services.bloop.install¶
Whether to install a user service for the Bloop server.
The service must be manually started for each user with “systemctl –user start bloop”.
Type: boolean
Default:
falseDeclared by:
services.blueman.enable¶
Whether to enable blueman.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.boinc.enable¶
Whether to enable the BOINC distributed computing client. If this option is set to true, the boinc_client daemon will be run as a background service. The boinccmd command can be used to control the daemon.
Type: boolean
Default:
falseDeclared by:
services.boinc.package¶
Which BOINC package to use.
Type: package
Default:
"pkgs.boinc"Declared by:
services.boinc.allowRemoteGuiRpc¶
If set to true, any remote host can connect to and control this BOINC client (subject to password authentication). If instead set to false, only the hosts listed in
dataDir/remote_hosts.cfg will be allowed to connect.See also: ` <http://boinc.berkeley.edu/wiki/Controlling_BOINC_remotely#Remote_access>`_
Type: boolean
Default:
falseDeclared by:
services.boinc.dataDir¶
The directory in which to store BOINC’s configuration and data files.
Type: path
Default:
"/var/lib/boinc"Declared by:
services.boinc.extraEnvPackages¶
Additional packages to make available in the environment in which BOINC will run. Common choices are:
pkgs.virtualboxThe VirtualBox virtual machine framework. Required by some BOINC projects, such as ATLAS@home.
pkgs.ocl-icdOpenCL infrastructure library. Required by BOINC projects that use OpenCL, in addition to a device-specific OpenCL driver.
pkgs.linuxPackages.nvidia_x11Provides CUDA libraries. Required by BOINC projects that use CUDA. Note that this requires an NVIDIA graphics device to be present on the system.
Also provides OpenCL drivers for NVIDIA GPUs;
pkgs.ocl-icdis also needed in this case.Type: list of packages
Default: ``[
]``
Example:
"[ pkgs.virtualbox ]"Declared by:
services.borgbackup.jobs¶
Deduplicating backups using BorgBackup. Adding a job will cause a borg-job-NAME wrapper to be added to your system path, so that you can perform maintenance easily.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ rootBackup = { paths = "/"; exclude = [ "/nix" ]; repo = "/path/to/local/repo"; encryption = { mode = "repokey"; passphrase = "secret"; }; compression = "auto,lzma"; startAt = "weekly"; }; }Declared by:
services.borgbackup.jobs.<name>.appendFailedSuffix¶
Append a
.failedsuffix to the archive name, which is only removed if:command:borg create has a zero exit status.Type: boolean
Default:
trueDeclared by:
services.borgbackup.jobs.<name>.archiveBaseName¶
How to name the created archives. A timestamp, whose format is determined by , will be appended. The full name can be modified at runtime (
$archiveName). Placeholders like{hostname}must not be used.Type: string matching the pattern [^/{}]+
Default:
"\\${config.networking.hostName}-<name>"Declared by:
services.borgbackup.jobs.<name>.compression¶
Compression method to use. Refer to:command:borg help compression for all available options.
Type: string matching the pattern none|(auto,)?(lz4|zstd|zlib|lzma)(,[[:digit:]]{1,2})?
Default:
"lz4"Example:
"auto,lzma"Declared by:
services.borgbackup.jobs.<name>.dateFormat¶
Arguments passed to date to create a timestamp suffix for the archive name.
Type: string
Default:
"+%Y-%m-%dT%H:%M:%S"Example:
"-u +%s"Declared by:
services.borgbackup.jobs.<name>.doInit¶
Run borg init if the specified does not exist. You should set this to
falseif the repository is located on an external drive that might not always be mounted.Type: boolean
Default:
trueDeclared by:
services.borgbackup.jobs.<name>.encryption.mode¶
Encryption mode to use. Setting a mode other than
"none"requires you to specify a or a .Type: one of “repokey”, “keyfile”, “repokey-blake2”, “keyfile-blake2”, “authenticated”, “authenticated-blake2”, “none”
Declared by:
services.borgbackup.jobs.<name>.encryption.passCommand¶
A command which prints the passphrase to stdout. Mutually exclusive with .
Type: null or string
Default:
nullExample:
"cat /path/to/passphrase_file"Declared by:
services.borgbackup.jobs.<name>.encryption.passphrase¶
The passphrase the backups are encrypted with. Mutually exclusive with . If you do not want the passphrase to be stored in the world-readable Nix store, use .
Type: null or string
Default:
nullDeclared by:
services.borgbackup.jobs.<name>.environment¶
Environment variables passed to the backup script. You can for example specify which SSH key to use.
Type: attribute set of strings
Default: ``{
}``
Example:
{ BORG_RSH = "ssh -i /path/to/key"; }Declared by:
services.borgbackup.jobs.<name>.exclude¶
Exclude paths matching any of the given patterns. See:command:borg help patterns for pattern syntax.
Type: list of strings
Default: ``[
]``
Example:
[ "/home/\*/.cache" "/nix" ]Declared by:
services.borgbackup.jobs.<name>.extraArgs¶
Additional arguments for all borg calls the service has. Handle with care.
Type: string
Default:
""Example:
"--remote-path=/path/to/borg"Declared by:
services.borgbackup.jobs.<name>.extraCreateArgs¶
Additional arguments for borg create. Can also be set at runtime using
$extraCreateArgs.Type: string
Default:
""Example:
"--stats --checkpoint-interval 600"Declared by:
services.borgbackup.jobs.<name>.extraInitArgs¶
Additional arguments for borg init. Can also be set at runtime using
$extraInitArgs.Type: string
Default:
""Example:
"--append-only"Declared by:
services.borgbackup.jobs.<name>.extraPruneArgs¶
Additional arguments for borg prune. Can also be set at runtime using
$extraPruneArgs.Type: string
Default:
""Example:
"--save-space"Declared by:
services.borgbackup.jobs.<name>.group¶
The group borg is run as. User or group needs read permission for the specified .
Type: string
Default:
"root"Declared by:
services.borgbackup.jobs.<name>.paths¶
Path(s) to back up.
Type: list of strings or string convertible to it
Example:
"/home/user"Declared by:
services.borgbackup.jobs.<name>.postCreate¶
Shell commands to run after borg create. The name of the created archive is stored in
$archiveName.Type: strings concatenated with “\n”
Default:
""Declared by:
services.borgbackup.jobs.<name>.postHook¶
Shell commands to run just before exit. They are executed even if a previous command exits with a non-zero exit code. The latter is available as
$exitStatus.Type: strings concatenated with “\n”
Default:
""Declared by:
services.borgbackup.jobs.<name>.postInit¶
Shell commands to run after borg init.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.borgbackup.jobs.<name>.postPrune¶
Shell commands to run after borg prune.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.borgbackup.jobs.<name>.preHook¶
Shell commands to run before the backup. This can for example be used to mount file systems.
Type: strings concatenated with “\n”
Default:
""Example:
'' # To add excluded paths at runtime extraCreateArgs="$extraCreateArgs --exclude /some/path" ''Declared by:
services.borgbackup.jobs.<name>.privateTmp¶
Set the
PrivateTmpoption for the systemd-service. Set to false if you need sockets or other files from global /tmp.Type: boolean
Default:
trueDeclared by:
services.borgbackup.jobs.<name>.prune.keep¶
Prune a repository by deleting all archives not matching any of the specified retention options. See borg help prune for the available options.
Type: attribute set of signed integer or string matching the pattern [[:digit:]]+[Hdwmy]s
Default: ``{
}``
Example:
{ within = "1d"; # Keep all archives from the last day daily = 7; weekly = 4; monthly = -1; # Keep at least one archive for each month }Declared by:
services.borgbackup.jobs.<name>.prune.prefix¶
Only consider archive names starting with this prefix for pruning. By default, only archives created by this job are considered. Use
""to consider all archives.Type: string
Default:
"\\${archiveBaseName}"Declared by:
services.borgbackup.jobs.<name>.readWritePaths¶
By default, borg cannot write anywhere on the system but``$HOME/.config/borg`` and
$HOME/.cache/borg. If, for example, your preHook script needs to dump files somewhere, put those directories here.Type: list of paths
Default: ``[
]``
Example:
[ "/var/backup/mysqldump" ]Declared by:
services.borgbackup.jobs.<name>.removableDevice¶
Whether the repo (which must be local) is a removable device.
Type: boolean
Default:
falseDeclared by:
services.borgbackup.jobs.<name>.repo¶
Remote or local repository to back up to.
Type: string
Example:
"user@machine:/path/to/repo"Declared by:
services.borgbackup.jobs.<name>.startAt¶
When or how often the backup should run. Must be in the format described insystemd.time7. If you do not want the backup to start automatically, use
[ ].Type: string or list of strings
Default:
"daily"Declared by:
services.borgbackup.jobs.<name>.user¶
The user borg is run as. User or group need read permission for the specified .
Type: string
Default:
"root"Declared by:
services.borgbackup.repos¶
Serve BorgBackup repositories to given public SSH keys, restricting their access to the repository only. Also, clients do not need to specify the absolute path when accessing the repository, i.e.
user@machine:.is enough. (Note colon and dot.)Type: attribute set of submodules
Default: ``{
}``
Declared by:
services.borgbackup.repos.<name>.allowSubRepos¶
Allow clients to create repositories in subdirectories of the specified . These can be accessed using``user@machine:path/to/subrepo``. Note that a applies to repositories independently. Therefore, if this is enabled, clients can create multiple repositories and upload an arbitrary amount of data.
Type: boolean
Default:
falseDeclared by:
services.borgbackup.repos.<name>.authorizedKeys¶
Public SSH keys that are given full write access to this repository. You should use a different SSH key for each repository you write to, because the specified keys are restricted to running borg serve and can only access this single repository.
Type: list of strings
Default: ``[
]``
Declared by:
services.borgbackup.repos.<name>.authorizedKeysAppendOnly¶
Public SSH keys that can only be used to append new data (archives) to the repository. Note that archives can still be marked as deleted and are subsequently removed from disk upon accessing the repo with full write access, e.g. when pruning.
Type: list of strings
Default: ``[
]``
Declared by:
services.borgbackup.repos.<name>.group¶
The group borg serve is run as. User or group needs write permission for the specified .
Type: string
Default:
"borg"Declared by:
services.borgbackup.repos.<name>.path¶
Where to store the backups. Note that the directory is created automatically, with correct permissions.
Type: path
Default:
"/var/lib/borgbackup"Declared by:
services.borgbackup.repos.<name>.quota¶
Storage quota for the repository. This quota is ensured for all sub-repositories if is enabled but not for the overall storage space used.
Type: null or string matching the pattern [[:digit:].]+[KMGTP]?
Default:
nullExample:
"100G"Declared by:
services.borgbackup.repos.<name>.user¶
The user borg serve is run as. User or group needs write permission for the specified .
Type: string
Default:
"borg"Declared by:
services.bosun.enable¶
Whether to run bosun.
Type: boolean
Default:
falseDeclared by:
services.bosun.package¶
bosun binary to use.
Type: package
Default:
"pkgs.bosun"Example:
pkgs.bosunDeclared by:
services.bosun.checkFrequency¶
Bosun’s check frequency
Type: string
Default:
"5m"Declared by:
services.bosun.extraConfig¶
Extra configuration options for Bosun. You should describe your desired templates, alerts, macros, etc through this configuration option.
A detailed description of the supported syntax can be found at-spi2-atk http://bosun.org/configuration.html
Type: strings concatenated with “\n”
Default:
""Declared by:
services.bosun.group¶
Group account under which bosun runs.
Type: string
Default:
"bosun"Declared by:
services.bosun.influxHost¶
Host and port of the influxdb database.
Type: null or string
Default:
nullExample:
"localhost:8086"Declared by:
services.bosun.ledisDir¶
Path to bosun’s ledis data dir
Type: path
Default:
"/var/lib/bosun/ledis_data"Declared by:
services.bosun.listenAddress¶
The host address and port that bosun’s web interface will listen on.
Type: string
Default:
":8070"Declared by:
services.bosun.opentsdbHost¶
Host and port of the OpenTSDB database that stores bosun data. To disable opentsdb you can pass null as parameter.
Type: null or string
Default:
"localhost:4242"Declared by:
services.bosun.stateFile¶
Path to bosun’s state file.
Type: path
Default:
"/var/lib/bosun/bosun.state"Declared by:
services.bosun.user¶
User account under which bosun runs.
Type: string
Default:
"bosun"Declared by:
services.brltty.enable¶
Whether to enable the BRLTTY daemon.
Type: boolean
Default:
falseDeclared by:
services.btrfs.autoScrub.enable¶
Whether to enable regular btrfs scrub.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.btrfs.autoScrub.fileSystems¶
List of paths to btrfs filesystems to regularily call btrfs scrub on. Defaults to all mount points with btrfs filesystems. If you mount a filesystem multiple times or additionally mount subvolumes, you need to manually specify this list to avoid scrubbing multiple times.
Type: list of paths
Example:
[ "/" ]Declared by:
services.btrfs.autoScrub.interval¶
Systemd calendar expression for when to scrub btrfs filesystems. The recommended period is a month but could be less (btrfs-scrub8). Seesystemd.time7 for more information on the syntax.
Type: string
Default:
"monthly"Example:
"weekly"Declared by:
services.buildbot-master.enable¶
Whether to enable the Buildbot continuous integration server.
Type: boolean
Default:
falseDeclared by:
services.buildbot-master.package¶
Package to use for buildbot.
Type: package
Default:
"pkgs.python3Packages.buildbot-full"Example:
pkgs.python3Packages.buildbotDeclared by:
services.buildbot-master.packages¶
Packages to add to PATH for the buildbot process.
Type: list of packages
Default:
[ *(build of git-minimal-2.25.1)* ]Example:
[ pkgs.git ]Declared by:
services.buildbot-master.bpPort¶
Port where the master will listen to Buildbot Worker.
Type: signed integer
Default:
9989Declared by:
services.buildbot-master.buildbotDir¶
Specifies the Buildbot directory.
Type: path
Default:
"/home/buildbot/master"Declared by:
services.buildbot-master.buildbotUrl¶
Specifies the Buildbot URL.
Type: string
Default:
"http://localhost:8010/"Declared by:
services.buildbot-master.builders¶
List of Builders.
Type: list of strings
Default:
[ "util.BuilderConfig(name='runtests',workernames=['example-worker'],factory=factory)" ]Declared by:
services.buildbot-master.changeSource¶
List of Change Sources.
Type: list of strings
Default: ``[
]``
Example:
[ "changes.GitPoller('git://github.com/buildbot/pyflakes.git', workdir='gitpoller-workdir', branch='master', pollinterval=300)" ]Declared by:
services.buildbot-master.dbUrl¶
Specifies the database connection string.
Type: string
Default:
"sqlite:///state.sqlite"Declared by:
services.buildbot-master.extraConfig¶
Extra configuration to append to master.cfg
Type: string
Default:
"c['buildbotNetUsageData'] = None"Declared by:
services.buildbot-master.extraGroups¶
List of extra groups that the buildbot user should be a part of.
Type: list of strings
Default: ``[
]``
Declared by:
services.buildbot-master.factorySteps¶
Factory Steps
Type: list of strings
Default: ``[
]``
Example:
[ "steps.Git(repourl='git://github.com/buildbot/pyflakes.git', mode='incremental')" "steps.ShellCommand(command=['trial', 'pyflakes'])" ]Declared by:
services.buildbot-master.group¶
Primary group of buildbot user.
Type: string
Default:
"buildbot"Declared by:
services.buildbot-master.home¶
Buildbot home directory.
Type: path
Default:
"/home/buildbot"Declared by:
services.buildbot-master.listenAddress¶
Specifies the bind address on which the buildbot HTTP interface listens.
Type: string
Default:
"0.0.0.0"Declared by:
services.buildbot-master.masterCfg¶
Optionally pass master.cfg path. Other options in this configuration will be ignored.
Type: path
Default:
*(build of master.cfg)*Example:
"/etc/nixos/buildbot/master.cfg"Declared by:
services.buildbot-master.port¶
Specifies port number on which the buildbot HTTP interface listens.
Type: signed integer
Default:
8010Declared by:
services.buildbot-master.pythonPackages¶
Packages to add the to the PYTHONPATH of the buildbot process.
Type: unspecified
Default:
"pythonPackages: with pythonPackages; [ ]"Example:
pythonPackages: with pythonPackages; [ requests ]Declared by:
services.buildbot-master.schedulers¶
List of Schedulers.
Type: list of strings
Default:
[ "schedulers.SingleBranchScheduler(name='all', change_filter=util.ChangeFilter(branch='master'), treeStableTimer=None, builderNames=['runtests'])" "schedulers.ForceScheduler(name='force',builderNames=['runtests'])" ]Declared by:
services.buildbot-master.status¶
services.buildbot-master.title¶
Specifies the Buildbot Title.
Type: string
Default:
"Buildbot"Declared by:
services.buildbot-master.titleUrl¶
Specifies the Buildbot TitleURL.
Type: string
Default:
"Buildbot"Declared by:
services.buildbot-master.user¶
User the buildbot server should execute under.
Type: string
Default:
"buildbot"Declared by:
services.buildbot-master.workers¶
List of Workers.
Type: list of strings
Default:
[ "worker.Worker('example-worker', 'pass')" ]Declared by:
services.buildbot-worker.enable¶
Whether to enable the Buildbot Worker.
Type: boolean
Default:
falseDeclared by:
services.buildbot-worker.package¶
Package to use for buildbot worker.
Type: package
Default:
"pkgs.python3Packages.buildbot-worker"Example:
pkgs.python2Packages.buildbot-workerDeclared by:
services.buildbot-worker.packages¶
Packages to add to PATH for the buildbot process.
Type: list of packages
Default:
[ *(build of )* ]Example:
[ pkgs.git ]Declared by:
services.buildbot-worker.adminMessage¶
Name of the administrator of this worker
Type: null or string
Default:
nullDeclared by:
services.buildbot-worker.buildbotDir¶
Specifies the Buildbot directory.
Type: path
Default:
"/home/bbworker/worker"Declared by:
services.buildbot-worker.extraGroups¶
List of extra groups that the Buildbot Worker user should be a part of.
Type: list of strings
Default: ``[
]``
Declared by:
services.buildbot-worker.group¶
Primary group of buildbot Worker user.
Type: string
Default:
"bbworker"Declared by:
services.buildbot-worker.home¶
Buildbot home directory.
Type: path
Default:
"/home/bbworker"Declared by:
services.buildbot-worker.hostMessage¶
Description of this worker
Type: null or string
Default:
nullDeclared by:
services.buildbot-worker.masterUrl¶
Specifies the Buildbot Worker connection string.
Type: string
Default:
"localhost:9989"Declared by:
services.buildbot-worker.user¶
User the buildbot Worker should execute under.
Type: string
Default:
"bbworker"Declared by:
services.buildbot-worker.workerPass¶
Specifies the Buildbot Worker password.
Type: string
Default:
"pass"Declared by:
services.buildbot-worker.workerPassFile¶
File used to store the Buildbot Worker password
Type: path
Declared by:
services.buildbot-worker.workerUser¶
Specifies the Buildbot Worker user.
Type: string
Default:
"example-worker"Declared by:
services.buildkite-agents¶
Attribute set of buildkite agents. The attribute key is combined with the hostname and a unique integer to create the final agent name. This can be overridden by setting the `name` attribute.
Type: attribute set of submodules
Default: ``{
}``
Declared by:
services.buildkite-agents.<name>.enable¶
Whether to enable this buildkite agent
Type: boolean
Default:
trueDeclared by:
services.buildkite-agents.<name>.package¶
Which buildkite-agent derivation to use
Type: package
Default:
"pkgs.buildkite-agent"Declared by:
services.buildkite-agents.<name>.dataDir¶
The workdir for the agent
Type: string
Default:
"/var/lib/buildkite-agent-‹name›"Declared by:
services.buildkite-agents.<name>.extraConfig¶
Extra lines to be added verbatim to the configuration file.
Type: strings concatenated with “\n”
Default:
""Example:
"debug=true"Declared by:
services.buildkite-agents.<name>.hooks.checkout¶
The `checkout` hook script will replace the default checkout routine of the bootstrap.sh script. You can use this hook to do your own SCM checkout behaviour
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.buildkite-agents.<name>.hooks.command¶
The `command` hook script will replace the default implementation of running the build command.
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.buildkite-agents.<name>.hooks.environment¶
The `environment` hook will run before all other commands, and can be used to set up secrets, data, etc. Anything exported in hooks will be available to the build script.
Note: the contents of this file will be copied to the world-readable Nix store.
Type: null or strings concatenated with “\n”
Default:
nullExample:
'' export SECRET_VAR=`head -1 /run/keys/secret` ''Declared by:
services.buildkite-agents.<name>.hooks.post-artifact¶
The `post-artifact` hook will run just after artifacts are uploaded
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.buildkite-agents.<name>.hooks.post-checkout¶
The `post-checkout` hook will run after the bootstrap script has checked out your projects source code.
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.buildkite-agents.<name>.hooks.post-command¶
The `post-command` hook will run after the bootstrap script has run your build commands
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.buildkite-agents.<name>.hooks.pre-artifact¶
The `pre-artifact` hook will run just before artifacts are uploaded
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.buildkite-agents.<name>.hooks.pre-checkout¶
The `pre-checkout` hook will run just before your projects source code is checked out from your SCM provider
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.buildkite-agents.<name>.hooks.pre-command¶
The `pre-command` hook will run just before your build command runs
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.buildkite-agents.<name>.hooks.pre-exit¶
The `pre-exit` hook will run just before your build job finishes
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.buildkite-agents.<name>.hooksPath¶
Path to the directory storing the hooks. Consider using instead.
Type: path
Default:
"generated from services.buildkite-agents.<name>.hooks"Declared by:
services.buildkite-agents.<name>.name¶
The name of the agent as seen in the buildkite dashboard.
Type: string
Default:
"%hostname-‹name›-%n"Declared by:
services.buildkite-agents.<name>.privateSshKeyPath¶
OpenSSH private key
A run-time path to the key file, which is supposed to be provisioned outside of Nix store.
Type: null or path
Default:
nullDeclared by:
services.buildkite-agents.<name>.runtimePackages¶
Add programs to the buildkite-agent environment
Type: list of packages
Default:
"[ pkgs.bash pkgs.gnutar pkgs.gzip pkgs.git pkgs.nix ]"Declared by:
services.buildkite-agents.<name>.shell¶
Command that buildkite-agent 3 will execute when it spawns a shell.
Type: string
Default:
"\\${pkgs.bash}/bin/bash -e -c"Declared by:
services.buildkite-agents.<name>.tags¶
Tags for the agent.
Type: attribute set of strings
Default: ``{
}``
Example:
{ docker = "true"; queue = "default"; ruby2 = "true"; }Declared by:
services.buildkite-agents.<name>.tokenPath¶
The token from your Buildkite “Agents” page.
A run-time path to the token file, which is supposed to be provisioned outside of Nix store.
Type: path
Declared by:
services.cachefilesd.enable¶
Whether to enable cachefilesd network filesystems caching daemon.
Type: boolean
Default:
falseDeclared by:
services.cachefilesd.cacheDir¶
Directory to contain filesystem cache.
Type: string
Default:
"/var/cache/fscache"Declared by:
services.cachefilesd.extraConfig¶
Additional configuration file entries. See cachefilesd.conf(5) for more information.
Type: strings concatenated with “\n”
Default:
""Example:
"brun 10%"Declared by:
services.caddy.enable¶
Whether to enable Caddy web server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.caddy.package¶
Caddy package to use.
Type: package
Default:
"pkgs.caddy"Declared by:
services.caddy.agree¶
Agree to Let’s Encrypt Subscriber Agreement
Type: boolean
Default:
falseDeclared by:
services.caddy.ca¶
Certificate authority ACME server. The default (Let’s Encrypt production server) should be fine for most people.
Type: string
Default:
"https://acme-v02.api.letsencrypt.org/directory"Example:
"https://acme-staging-v02.api.letsencrypt.org/directory"Declared by:
services.caddy.config¶
Verbatim Caddyfile to use
Type: strings concatenated with “\n”
Default:
""Example:
'' example.com { gzip minify log syslog root /srv/http } ''Declared by:
services.caddy.dataDir¶
The data directory, for storing certificates. Before 17.09, this would create a .caddy directory. With 17.09 the contents of the .caddy directory are in the specified data directory instead.
Type: path
Default:
"/var/lib/caddy"Declared by:
services.caddy.email¶
Email address (for Let’s Encrypt certificate)
Type: string
Default:
""Declared by:
services.cadvisor.enable¶
Whether to enable cadvisor service.
Type: boolean
Default:
falseDeclared by:
services.cadvisor.extraOptions¶
Additional cadvisor options.
See ` <https://github.com/google/cadvisor/blob/master/docs/runtime_options.md>`_ for available options.
Type: list of strings
Default: ``[
]``
Declared by:
services.cadvisor.listenAddress¶
Cadvisor listening host
Type: string
Default:
"127.0.0.1"Declared by:
services.cadvisor.port¶
Cadvisor listening port
Type: signed integer
Default:
8080Declared by:
services.cadvisor.storageDriver¶
Cadvisor storage driver.
Type: null or string
Default:
nullExample:
"influxdb"Declared by:
services.cadvisor.storageDriverDb¶
Cadvisord storage driver database name.
Type: string
Default:
"root"Declared by:
services.cadvisor.storageDriverHost¶
Cadvisor storage driver host.
Type: string
Default:
"localhost:8086"Declared by:
services.cadvisor.storageDriverPassword¶
Cadvisor storage driver password.
Warning: this password is stored in the world-readable Nix store. It’s recommended to use the option since that gives you control over the security of the password. also takes precedence over .
Type: string
Default:
"root"Declared by:
services.cadvisor.storageDriverPasswordFile¶
File that contains the cadvisor storage driver password.
takes precedence over
Warning: when is non-empty this defaults to a file in the world-readable Nix store that contains the value of .
It’s recommended to override this with a path not in the Nix store. Tip: use nixops key management
Type: string
Declared by:
services.cadvisor.storageDriverSecure¶
Cadvisor storage driver, enable secure communication.
Type: boolean
Default:
falseDeclared by:
services.cadvisor.storageDriverUser¶
Cadvisor storage driver username.
Type: string
Default:
"root"Declared by:
services.calibre-server.enable¶
Whether to enable calibre-server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.calibre-server.libraryDir¶
The directory where the Calibre library to serve is.
Type: path
Declared by:
services.canto-daemon.enable¶
Whether to enable the canto RSS daemon.
Type: boolean
Default:
falseDeclared by:
services.cassandra.enable¶
Whether to enable Apache Cassandra – Scalable and highly available database. .
Type: boolean
Default:
falseExample:
trueDeclared by:
services.cassandra.package¶
The Apache Cassandra package to use.
Type: package
Default:
"pkgs.cassandra"Example:
pkgs.cassandra_3_11Declared by:
services.cassandra.allowClients¶
Enables or disables the native transport server (CQL binary protocol). This server uses the same address as the
rpcAddress, but the port it uses is notrpc_portbut``native_transport_port``. See the official Cassandra docs for more information on these variables and set them using``extraConfig``.Type: boolean
Default:
trueDeclared by:
services.cassandra.clusterName¶
The name of the cluster. This setting prevents nodes in one logical cluster from joining another. All nodes in a cluster must have the same value.
Type: string
Default:
"Test Cluster"Declared by:
services.cassandra.extraConfig¶
Extra options to be merged into cassandra.yaml as nix attribute set.
Type: attribute set
Default: ``{
}``
Example:
{ commitlog_sync_batch_window_in_ms = 3; }Declared by:
services.cassandra.fullRepairInterval¶
Set the interval how often full repairs are run, i.e.``nodetool repair –full`` is executed. See https://cassandra.apache.org/doc/latest/operating/repair.html for more information.
Set to
nullto disable full repairs.Type: null or string
Default:
"3w"Example:
nullDeclared by:
services.cassandra.fullRepairOptions¶
Options passed through to the full repair command.
Type: list of strings
Default: ``[
]``
Example:
[ "--partitioner-range" ]Declared by:
services.cassandra.group¶
Run Apache Cassandra under this group.
Type: string
Default:
"cassandra"Declared by:
services.cassandra.heapNewSize¶
Must be left blank or set together with heapNewSize. If left blank a sensible value for the available amount of RAM and CPU cores is calculated.
Override to set the amount of memory to allocate to the JVM at start-up. For production use you may wish to adjust this for your environment. HEAP_NEWSIZE refers to the size of the young generation.
The main trade-off for the young generation is that the larger it is, the longer GC pause times will be. The shorter it is, the more expensive GC will be (usually).
The example HEAP_NEWSIZE assumes a modern 8-core+ machine for decent pause times. If in doubt, and if you do not particularly want to tweak, go with 100 MB per physical CPU core.
Type: null or string
Default:
nullExample:
"800M"Declared by:
services.cassandra.homeDir¶
Home directory for Apache Cassandra.
Type: path
Default:
"/var/lib/cassandra"Declared by:
services.cassandra.incrementalRepairInterval¶
Set the interval how often incremental repairs are run, i.e.``nodetool repair`` is executed. See https://cassandra.apache.org/doc/latest/operating/repair.html for more information.
Set to
nullto disable incremental repairs.Type: null or string
Default:
"3d"Example:
nullDeclared by:
services.cassandra.incrementalRepairOptions¶
Options passed through to the incremental repair command.
Type: list of strings
Default: ``[
]``
Example:
[ "--partitioner-range" ]Declared by:
services.cassandra.jmxPort¶
Specifies the default port over which Cassandra will be available for JMX connections. For security reasons, you should not expose this port to the internet. Firewall it if needed.
Type: signed integer
Default:
7199Declared by:
services.cassandra.jmxRoles¶
Roles that are allowed to access the JMX (e.g. nodetool) BEWARE: The passwords will be stored world readable in the nix-store. It’s recommended to use your own protected file using
jmxRolesFileDoesn’t work in versions older than 3.11 because they don’t like that it’s world readable.
Type: list of submodules
Default: ``[
]``
Declared by:
services.cassandra.jmxRoles.*.password¶
services.cassandra.jmxRoles.*.username¶
services.cassandra.jmxRolesFile¶
Specify your own jmx roles file.
Make sure the permissions forbid “others” from reading the file if you’re using Cassandra below version 3.11.
Type: null or path
Default:
*(build of jmx-roles-file)*Example:
"/var/lib/cassandra/jmx.password"Declared by:
services.cassandra.jvmOpts¶
services.cassandra.listenAddress¶
Address or interface to bind to and tell other Cassandra nodes to connect to. You _must_ change this if you want multiple nodes to be able to communicate!
Set listenAddress OR listenInterface, not both.
Leaving it blank leaves it up to InetAddress.getLocalHost(). This will always do the Right Thing _if_ the node is properly configured (hostname, name resolution, etc), and the Right Thing is to use the address associated with the hostname (it might not be).
Setting listen_address to 0.0.0.0 is always wrong.
Type: null or string
Default:
"127.0.0.1"Example:
nullDeclared by:
services.cassandra.listenInterface¶
Set listenAddress OR listenInterface, not both. Interfaces must correspond to a single address, IP aliasing is not supported.
Type: null or string
Default:
nullExample:
"eth1"Declared by:
services.cassandra.logbackConfig¶
XML logback configuration for cassandra
Type: strings concatenated with “\n”
Default:
'' <configuration scan="false"> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%-5level %date{HH:mm:ss,SSS} %msg%n</pattern> </encoder> </appender> <root level="INFO"> <appender-ref ref="STDOUT" /> </root> <logger name="com.thinkaurelius.thrift" level="ERROR"/> </configuration> ''Declared by:
services.cassandra.mallocArenaMax¶
Set this to control the amount of arenas per-thread in glibc.
Type: null or signed integer
Default:
nullExample:
4Declared by:
services.cassandra.maxHeapSize¶
Must be left blank or set together with heapNewSize. If left blank a sensible value for the available amount of RAM and CPU cores is calculated.
Override to set the amount of memory to allocate to the JVM at start-up. For production use you may wish to adjust this for your environment. MAX_HEAP_SIZE is the total amount of memory dedicated to the Java heap. HEAP_NEWSIZE refers to the size of the young generation.
The main trade-off for the young generation is that the larger it is, the longer GC pause times will be. The shorter it is, the more expensive GC will be (usually).
Type: null or string
Default:
nullExample:
"4G"Declared by:
services.cassandra.remoteJmx¶
Cassandra ships with JMX accessible *only* from localhost. To enable remote JMX connections set to true.
Be sure to also enable authentication and/or TLS. See: https://wiki.apache.org/cassandra/JmxSecurity
Type: boolean
Default:
falseDeclared by:
services.cassandra.rpcAddress¶
The address or interface to bind the native transport server to.
Set rpcAddress OR rpcInterface, not both.
Leaving rpcAddress blank has the same effect as on listenAddress (i.e. it will be based on the configured hostname of the node).
Note that unlike listenAddress, you can specify 0.0.0.0, but you must also set extraConfig.broadcast_rpc_address to a value other than 0.0.0.0.
For security reasons, you should not expose this port to the internet. Firewall it if needed.
Type: null or string
Default:
"127.0.0.1"Example:
nullDeclared by:
services.cassandra.rpcInterface¶
Set rpcAddress OR rpcInterface, not both. Interfaces must correspond to a single address, IP aliasing is not supported.
Type: null or string
Default:
nullExample:
"eth1"Declared by:
services.cassandra.seedAddresses¶
The addresses of hosts designated as contact points in the cluster. A joining node contacts one of the nodes in the seeds list to learn the topology of the ring. Set to 127.0.0.1 for a single node cluster.
Type: list of strings
Default:
[ "127.0.0.1" ]Declared by:
services.cassandra.user¶
Run Apache Cassandra under this user.
Type: string
Default:
"cassandra"Declared by:
services.ceph.enable¶
Whether to enable Ceph global configuration.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.ceph.client.enable¶
Whether to enable Ceph client configuration.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.ceph.client.extraConfig¶
Extra configuration to add to the client section. Configuration for rados gateways would be added here, with their own sections, see example.
Type: attribute set of strings
Default: ``{
}``
Example:
'' { # This would create a section for a radosgw daemon named node0 and related # configuration for it "client.radosgw.node0" = { "some config option" = "true"; }; }; ''Declared by:
services.ceph.extraConfig¶
Extra configuration to add to the global section. Use for setting values that are common for all daemons in the cluster.
Type: attribute set of strings
Default: ``{
}``
Example:
'' { "ms bind ipv6" = "true"; }; ''Declared by:
services.ceph.global.authClientRequired¶
Enables requiring the cluster to authenticate itself to the client.
Type: one of “cephx”, “none”
Default:
"cephx"Declared by:
services.ceph.global.authClusterRequired¶
Enables requiring daemons to authenticate with eachother in the cluster.
Type: one of “cephx”, “none”
Default:
"cephx"Declared by:
services.ceph.global.authServiceRequired¶
Enables requiring clients to authenticate with the cluster to access services in the cluster (e.g. radosgw, mds or osd).
Type: one of “cephx”, “none”
Default:
"cephx"Declared by:
services.ceph.global.clusterName¶
Name of cluster
Type: string
Default:
"ceph"Declared by:
services.ceph.global.clusterNetwork¶
A comma-separated list of subnets that will be used as cluster networks in the cluster.
Type: null or strings concatenated with “,”
Default:
nullExample:
'' 10.10.0.0/24, 192.168.0.0/24 ''Declared by:
services.ceph.global.fsid¶
Filesystem ID, a generated uuid, its must be generated and set before attempting to start a cluster
Type: string
Example:
'' 433a2193-4f8a-47a0-95d2-209d7ca2cca5 ''Declared by:
services.ceph.global.maxOpenFiles¶
Max open files for each OSD daemon.
Type: signed integer
Default:
131072Declared by:
services.ceph.global.mgrModulePath¶
Path at which to find ceph-mgr modules.
Type: path
Default:
"\\${pkgs.ceph.lib}/lib/ceph/mgr"Declared by:
services.ceph.global.monHost¶
List of hostname shortnames/IP addresses of the initial monitors.
Type: null or strings concatenated with “,”
Default:
nullExample:
'' 10.10.0.1, 10.10.0.2, 10.10.0.3 ''Declared by:
services.ceph.global.monInitialMembers¶
List of hosts that will be used as monitors at startup.
Type: null or strings concatenated with “,”
Default:
nullExample:
'' node0, node1, node2 ''Declared by:
services.ceph.global.publicNetwork¶
A comma-separated list of subnets that will be used as public networks in the cluster.
Type: null or strings concatenated with “,”
Default:
nullExample:
'' 10.20.0.0/24, 192.168.1.0/24 ''Declared by:
services.ceph.global.rgwMimeTypesFile¶
Path to mime types used by radosgw.
Type: null or path
Default:
"\\${pkgs.mime-types}/etc/mime.types"Declared by:
services.ceph.mds.enable¶
Whether to enable Ceph MDS daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.ceph.mds.daemons¶
A list of metadata service daemons that should have a service created. The names correspond to the id part in ceph i.e. [ “name1” ] would result in mds.name1
Type: list of strings
Default: ``[
]``
Example:
'' [ "name1" "name2" ]; ''Declared by:
services.ceph.mds.extraConfig¶
Extra configuration to add to the MDS section.
Type: attribute set of strings
Default: ``{
}``
Declared by:
services.ceph.mgr.enable¶
Whether to enable Ceph MGR daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.ceph.mgr.daemons¶
A list of names for manager daemons that should have a service created. The names correspond to the id part in ceph i.e. [ “name1” ] would result in mgr.name1
Type: list of strings
Default: ``[
]``
Example:
'' [ "name1" "name2" ]; ''Declared by:
services.ceph.mgr.extraConfig¶
Extra configuration to add to the global section for manager daemons.
Type: attribute set of strings
Default: ``{
}``
Declared by:
services.ceph.mon.enable¶
Whether to enable Ceph MON daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.ceph.mon.daemons¶
A list of monitor daemons that should have a service created. The names correspond to the id part in ceph i.e. [ “name1” ] would result in mon.name1
Type: list of strings
Default: ``[
]``
Example:
'' [ "name1" "name2" ]; ''Declared by:
services.ceph.mon.extraConfig¶
Extra configuration to add to the monitor section.
Type: attribute set of strings
Default: ``{
}``
Declared by:
services.ceph.osd.enable¶
Whether to enable Ceph OSD daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.ceph.osd.daemons¶
A list of OSD daemons that should have a service created. The names correspond to the id part in ceph i.e. [ “name1” ] would result in osd.name1
Type: list of strings
Default: ``[
]``
Example:
'' [ "name1" "name2" ]; ''Declared by:
services.ceph.osd.extraConfig¶
Extra configuration to add to the OSD section.
Type: attribute set of strings
Default:
{ osd crush chooseleaf type = "1"; osd journal size = "10000"; osd pool default min size = "2"; osd pool default pg num = "200"; osd pool default pgp num = "200"; osd pool default size = "3"; }Declared by:
services.ceph.rgw.enable¶
Whether to enable Ceph RadosGW daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.ceph.rgw.daemons¶
A list of rados gateway daemons that should have a service created. The names correspond to the id part in ceph i.e. [ “name1” ] would result in client.name1, radosgw daemons aren’t daemons to cluster in the sense that OSD, MGR or MON daemons are. They are simply daemons, from ceph, that uses the cluster as a backend.
Type: list of strings
Default: ``[
]``
Example:
'' [ "name1" "name2" ]; ''Declared by:
services.certmgr.enable¶
Whether to enable certmgr.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.certmgr.package¶
Which certmgr package to use in the service.
Type: package
Default:
"pkgs.certmgr"Declared by:
services.certmgr.defaultRemote¶
The default CA host:port to use.
Type: string
Default:
"127.0.0.1:8888"Declared by:
services.certmgr.metricsAddress¶
The address for the Prometheus HTTP endpoint.
Type: string
Default:
"127.0.0.1"Declared by:
services.certmgr.metricsPort¶
The port for the Prometheus HTTP endpoint.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
9488Declared by:
services.certmgr.renewInterval¶
How often to check certificate expirations and how often to update the cert_next_expires metric.
Type: string
Default:
"30m"Declared by:
services.certmgr.specs¶
Certificate specs as described by:` <https://github.com/cloudflare/certmgr#certificate-specs>`_ These will be added to the Nix store, so they will be world readable.
Type: attribute set of path or submodules
Default: ``{
}``
Example:
{ exampleCert = let domain = "example.com"; secret = name: "/var/lib/secrets/${name}.pem"; in { service = "nginx"; action = "reload"; authority = { file.path = secret "ca"; }; certificate = { path = secret domain; }; private_key = { owner = "root"; group = "root"; mode = "0600"; path = secret "${domain}-key"; }; request = { CN = domain; hosts = [ "mail.${domain}" "www.${domain}" ]; key = { algo = "rsa"; size = 2048; }; names = { O = "Example Organization"; C = "USA"; }; }; }; otherCert = "/var/certmgr/specs/other-cert.json"; }Declared by:
services.certmgr.svcManager¶
This specifies the service manager to use for restarting or reloading services. See: ` <https://github.com/cloudflare/certmgr#certmgryaml>`_. For how to use the “command” service manager in particular, see: ` <https://github.com/cloudflare/certmgr#command-svcmgr-and-how-to-use-it>`_.
Type: one of “circus”, “command”, “dummy”, “openrc”, “systemd”, “sysv”
Default:
"systemd"Declared by:
services.certmgr.validMin¶
The interval before a certificate expires to start attempting to renew it.
Type: string
Default:
"72h"Declared by:
services.cfdyndns.enable¶
Whether to enable Cloudflare Dynamic DNS Client.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.cfdyndns.apikey¶
The API Key to use to authenticate to CloudFlare.
Type: string
Declared by:
services.cfdyndns.email¶
The email address to use to authenticate to CloudFlare.
Type: string
Declared by:
services.cfdyndns.records¶
The records to update in CloudFlare.
Type: list of strings
Default: ``[
]``
Example:
[ "host.tld" ]Declared by:
services.cfssl.enable¶
Whether to enable the CFSSL CA api-server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.cfssl.address¶
Address to bind.
Type: string
Default:
"127.0.0.1"Declared by:
services.cfssl.ca¶
CA used to sign the new certificate – accepts ‘[file:]fname’ or ‘env:varname’.
Type: string
Default:
"\\${cfg.dataDir}/ca.pem"Declared by:
services.cfssl.caBundle¶
Path to root certificate store.
Type: null or path
Default:
nullDeclared by:
services.cfssl.caKey¶
CA private key – accepts ‘[file:]fname’ or ‘env:varname’.
Type: string
Default:
"file:\\${cfg.dataDir}/ca-key.pem"Declared by:
services.cfssl.configFile¶
Path to configuration file. Do not put this in nix-store as it might contain secrets.
Type: null or string
Default:
nullDeclared by:
services.cfssl.dataDir¶
Cfssl work directory.
Type: path
Default:
"/var/lib/cfssl"Declared by:
services.cfssl.dbConfig¶
Certificate db configuration file. Path must be writeable.
Type: null or path
Default:
nullDeclared by:
services.cfssl.intBundle¶
Path to intermediate certificate store.
Type: null or path
Default:
nullDeclared by:
services.cfssl.intDir¶
Intermediates directory.
Type: null or path
Default:
nullDeclared by:
services.cfssl.logLevel¶
Log level (0 = DEBUG, 5 = FATAL).
Type: one of 0, 1, 2, 3, 4, 5
Default:
1Declared by:
services.cfssl.metadata¶
Metadata file for root certificate presence. The content of the file is a json dictionary (k,v): each key k is a SHA-1 digest of a root certificate while value v is a list of key store filenames.
Type: null or path
Default:
nullDeclared by:
services.cfssl.mutualTlsCa¶
Mutual TLS - require clients be signed by this CA.
Type: null or path
Default:
nullDeclared by:
services.cfssl.mutualTlsClientCert¶
Mutual TLS - client certificate to call remote instance requiring client certs.
Type: null or path
Default:
nullDeclared by:
services.cfssl.mutualTlsClientKey¶
Mutual TLS - client key to call remote instance requiring client certs. Do not put this in nix-store.
Type: null or path
Default:
nullDeclared by:
services.cfssl.mutualTlsCn¶
Mutual TLS - regex for whitelist of allowed client CNs.
Type: null or string
Default:
nullDeclared by:
services.cfssl.port¶
Port to bind.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
8888Declared by:
services.cfssl.remote¶
Remote CFSSL server.
Type: null or string
Default:
nullDeclared by:
services.cfssl.responder¶
Certificate for OCSP responder.
Type: null or path
Default:
nullDeclared by:
services.cfssl.responderKey¶
Private key for OCSP responder certificate. Do not put this in nix-store.
Type: null or string
Default:
nullDeclared by:
services.cfssl.tlsCert¶
Other endpoint’s CA to set up TLS protocol.
Type: null or path
Default:
nullDeclared by:
services.cfssl.tlsKey¶
Other endpoint’s CA private key. Do not put this in nix-store.
Type: null or string
Default:
nullDeclared by:
services.cfssl.tlsRemoteCa¶
CAs to trust for remote TLS requests.
Type: null or path
Default:
nullDeclared by:
services.cgmanager.enable¶
Whether to enable cgmanager.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.cgminer.enable¶
Whether to enable cgminer, an ASIC/FPGA/GPU miner for bitcoin and litecoin.
Type: unspecified
Default:
falseDeclared by:
services.cgminer.package¶
Which cgminer derivation to use.
Type: package
Default:
"pkgs.cgminer"Declared by:
services.cgminer.config¶
Additional config
Type: unspecified
Default: ``{
}``
Example:
{ auto-fan = true; auto-gpu = true; expiry = 120; failover-only = true; gpu-threads = 2; log = 5; queue = 1; scan-time = 60; temp-histeresys = 3; }Declared by:
services.cgminer.hardware¶
List of config options for every GPU
Type: unspecified
Default: ``[
]``
Example: ``[
{ gpu-engine = “0-985”; gpu-fan = “0-85”; gpu-memclock = 860; gpu-powertune = 20; intensity = 9; temp-cutoff = 95; temp-overheat = 85; temp-target = 75; }
{ gpu-engine = “0-950”; gpu-fan = “0-85”; gpu-memclock = 825; gpu-powertune = 20; intensity = 9; temp-cutoff = 95; temp-overheat = 85; temp-target = 75; }
]``
Declared by:
services.cgminer.pools¶
List of pools where to mine
Type: unspecified
Default: ``[
]``
Example: ``[
{ password = “X”; url = “http://p2pool.org:9332”; username = “17EUZxTvs9uRmPsjPZSYUU3zCz9iwstudk”; }
]``
Declared by:
services.cgminer.user¶
User account under which cgminer runs
Type: unspecified
Default:
"cgminer"Declared by:
services.charybdis.enable¶
Whether to enable Charybdis IRC daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.charybdis.config¶
Charybdis IRC daemon configuration file.
Type: string
Declared by:
services.charybdis.group¶
Charybdis IRC daemon group.
Type: string
Default:
"ircd"Declared by:
services.charybdis.motd¶
Charybdis MOTD text.
Charybdis will read its MOTD from /etc/charybdis/ircd.motd . If set, the value of this option will be written to this path.
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.charybdis.statedir¶
Location of the state directory of charybdis.
Type: path
Default:
"/var/lib/charybdis"Declared by:
services.charybdis.user¶
Charybdis IRC daemon user.
Type: string
Default:
"ircd"Declared by:
services.chronos.enable¶
Whether to enable graphite web frontend.
Type: boolean
Default:
falseDeclared by:
services.chronos.httpPort¶
Chronos listening port
Type: signed integer
Default:
4400Declared by:
services.chronos.master¶
Chronos mesos master zookeeper address
Type: string
Default:
"zk://localhost:2181/mesos"Declared by:
services.chronos.zookeeperHosts¶
Chronos mesos zookepper addresses
Type: list of strings
Default:
[ "localhost:2181" ]Declared by:
services.chrony.enable¶
Whether to synchronise your machine’s time using chrony. Make sure you disable NTP if you enable this service.
Type: unspecified
Default:
falseDeclared by:
services.chrony.extraConfig¶
Extra configuration directives that should be added to``chrony.conf``
Type: strings concatenated with “\n”
Default:
""Declared by:
services.chrony.extraFlags¶
Extra flags passed to the chronyd command.
Type: list of strings
Default: ``[
]``
Example:
[ "-s" ]Declared by:
services.chrony.initstepslew¶
Allow chronyd to make a rapid measurement of the system clock error at boot time, and to correct the system clock by stepping before normal operation begins.
Type: unspecified
Default:
{ enabled = true; threshold = 1000; }Declared by:
services.chrony.servers¶
The set of NTP servers from which to synchronise.
Type: unspecified
Default:
[ "0.nixos.pool.ntp.org" "1.nixos.pool.ntp.org" "2.nixos.pool.ntp.org" "3.nixos.pool.ntp.org" ]Declared by:
services.cjdns.enable¶
Whether to enable the cjdns network encryption and routing engine. A file at /etc/cjdns.keys will be created if it does not exist to contain a random secret key that your IPv6 address will be derived from.
Type: boolean
Default:
falseDeclared by:
services.cjdns.ETHInterface.beacon¶
Auto-connect to other cjdns nodes on the same network. Options: 0: Disabled. 1: Accept beacons, this will cause cjdns to accept incoming beacon messages and try connecting to the sender. 2: Accept and send beacons, this will cause cjdns to broadcast messages on the local network which contain a randomly generated per-session password, other nodes which have this set to 1 or 2 will hear the beacon messages and connect automatically.
Type: signed integer
Default:
2Declared by:
services.cjdns.ETHInterface.bind¶
Bind to this device for native ethernet operation.``all`` is a pseudo-name which will try to connect to all devices.
Type: string
Default:
""Example:
"eth0"Declared by:
services.cjdns.ETHInterface.connectTo¶
Credentials for connecting look similar to UDP credientials except they begin with the mac address.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ 01:02:03:04:05:06 = { hostname = "homer.hype"; password = "5kG15EfpdcKNX3f2GSQ0H1HC7yIfxoCoImnO5FHM"; publicKey = "371zpkgs8ss387tmr81q04mp0hg1skb51hw34vk1cq644mjqhup0.k"; } ; }Declared by:
services.cjdns.ETHInterface.connectTo.<name>.hostname¶
Optional hostname to add to /etc/hosts; prevents reverse lookup failures.
Type: string
Default:
""Example:
"foobar.hype"Declared by:
services.cjdns.ETHInterface.connectTo.<name>.password¶
Authorized password to the opposite end of the tunnel.
Type: string
Declared by:
services.cjdns.ETHInterface.connectTo.<name>.publicKey¶
Public key at the opposite end of the tunnel.
Type: string
Declared by:
services.cjdns.UDPInterface.bind¶
Address and port to bind UDP tunnels to.
Type: string
Default:
""Example:
"192.168.1.32:43211"Declared by:
services.cjdns.UDPInterface.connectTo¶
Credentials for making UDP tunnels.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ 192.168.1.1:27313 = { hostname = "homer.hype"; password = "5kG15EfpdcKNX3f2GSQ0H1HC7yIfxoCoImnO5FHM"; publicKey = "371zpkgs8ss387tmr81q04mp0hg1skb51hw34vk1cq644mjqhup0.k"; } ; }Declared by:
services.cjdns.UDPInterface.connectTo.<name>.hostname¶
Optional hostname to add to /etc/hosts; prevents reverse lookup failures.
Type: string
Default:
""Example:
"foobar.hype"Declared by:
services.cjdns.UDPInterface.connectTo.<name>.password¶
Authorized password to the opposite end of the tunnel.
Type: string
Declared by:
services.cjdns.UDPInterface.connectTo.<name>.publicKey¶
Public key at the opposite end of the tunnel.
Type: string
Declared by:
services.cjdns.addExtraHosts¶
Whether to add cjdns peers with an associated hostname to:file:/etc/hosts. Beware that enabling this incurs heavy eval-time costs.
Type: boolean
Default:
falseDeclared by:
services.cjdns.admin.bind¶
Bind the administration port to this address and port.
Type: string
Default:
"127.0.0.1:11234"Declared by:
services.cjdns.authorizedPasswords¶
Any remote cjdns nodes that offer these passwords on connection will be allowed to route through this node.
Type: list of strings
Default: ``[
]``
Example:
[ "snyrfgkqsc98qh1y4s5hbu0j57xw5s0" "z9md3t4p45mfrjzdjurxn4wuj0d8swv" "49275fut6tmzu354pq70sr5b95qq0vj" ]Declared by:
services.cjdns.confFile¶
Ignore all other cjdns options and load configuration from this file.
Type: null or path
Default:
nullExample:
"/etc/cjdroute.conf"Declared by:
services.cjdns.extraConfig¶
Extra configuration, given as attrs, that will be merged recursively with the rest of the JSON generated by this module, at the root node.
Type: attribute set
Default: ``{
}``
Example:
{ router = { interface = { tunDevice = "tun10"; } ; } ; }Declared by:
services.clamav.daemon.enable¶
Whether to enable ClamAV clamd daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.clamav.daemon.extraConfig¶
Extra configuration for clamd. Contents will be added verbatim to the configuration file.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.clamav.updater.enable¶
Whether to enable ClamAV freshclam updater.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.clamav.updater.extraConfig¶
Extra configuration for freshclam. Contents will be added verbatim to the configuration file.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.clamav.updater.frequency¶
Number of database checks per day.
Type: signed integer
Default:
12Declared by:
services.clamav.updater.interval¶
How often freshclam is invoked. See systemd.time(7) for more information about the format.
Type: string
Default:
"hourly"Declared by:
services.clamsmtp.enable¶
Whether to enable clamsmtp.
Type: boolean
Default:
falseDeclared by:
services.clamsmtp.instances¶
Instances of clamsmtp to run.
Type: list of submodules
Declared by:
services.clamsmtp.instances.*.action¶
Action to take when a virus is detected.
Note that viruses often spoof sender addresses, so bouncing is in most cases not a good idea.
Type: one of “bounce”, “drop”, “pass”
Default:
"drop"Declared by:
services.clamsmtp.instances.*.header¶
A header to add to scanned messages. See clamsmtpd.conf(5) for more details. Empty means no header.
Type: string
Default:
""Example:
"X-Virus-Scanned: ClamAV using ClamSMTP"Declared by:
services.clamsmtp.instances.*.keepAlives¶
Number of seconds to wait between each NOOP sent to the sending server. 0 to disable.
This is meant for slow servers where the sending MTA times out waiting for clamd to scan the file.
Type: signed integer
Default:
0Declared by:
services.clamsmtp.instances.*.listen¶
Address to wait for incoming SMTP connections on. See clamsmtpd.conf(5) for more details.
Type: string
Example:
"127.0.0.1:10025"Declared by:
services.clamsmtp.instances.*.maxConnections¶
Maximum number of connections to accept at once.
Type: signed integer
Default:
64Declared by:
services.clamsmtp.instances.*.outAddress¶
Address of the SMTP server to send email to once it has been scanned.
Type: string
Declared by:
services.clamsmtp.instances.*.quarantine¶
Whether to quarantine files that contain viruses by leaving them in the temporary directory.
Type: boolean
Default:
falseDeclared by:
services.clamsmtp.instances.*.tempDirectory¶
Temporary directory that needs to be accessible to both clamd and clamsmtpd.
Type: string
Default:
"/tmp"Declared by:
services.clamsmtp.instances.*.timeout¶
Time-out for network connections.
Type: signed integer
Default:
180Declared by:
services.clamsmtp.instances.*.transparentProxy¶
Enable clamsmtp’s transparent proxy support.
Type: boolean
Default:
falseDeclared by:
services.clamsmtp.instances.*.virusAction¶
Command to run when a virus is found. Please see VIRUS ACTION in clamsmtpd(8) for a discussion of this option and its safe use.
Type: null or path
Default:
nullDeclared by:
services.clamsmtp.instances.*.xClient¶
Send the XCLIENT command to the receiving server, for forwarding client addresses and connection information if the receiving server supports this feature.
Type: boolean
Default:
falseDeclared by:
services.clickhouse.enable¶
Whether to enable ClickHouse database server.
Type: unspecified
Default:
falseDeclared by:
services.clight.enable¶
Whether to enable clight or not.
Type: boolean
Default:
falseDeclared by:
services.clight.settings¶
Additional configuration to extend clight.conf. See` <https://github.com/FedeDP/Clight/blob/master/Extra/clight.conf>`_ for a sample configuration file.
Type: attribute set of null or signed integer or string or boolean or floating point number or list of signed integer or string or boolean or floating point numberss
Default: ``{
}``
Example:
{ ac_capture_timeouts = [ 120 300 60 ] ; captures = 20; gamma_long_transition = true; }Declared by:
services.clight.temperature.day¶
Colour temperature to use during the day, between``1000`` and
25000K.Type: signed integer
Default:
5500Declared by:
services.clight.temperature.night¶
Colour temperature to use at night, between``1000`` and
25000K.Type: signed integer
Default:
3700Declared by:
services.cloud-init.enable¶
Enable the cloud-init service. This services reads configuration metadata in a cloud environment and configures the machine according to this metadata.
This configuration is not completely compatible with the NixOS way of doing configuration, as configuration done by cloud-init might be overriden by a subsequent nixos-rebuild call. However, some parts of cloud-init fall outside of NixOS’s responsibility, like filesystem resizing and ssh public key provisioning, and cloud-init is useful for that parts. Thus, be wary that using cloud-init in NixOS might come as some cost.
Type: boolean
Default:
falseDeclared by:
services.cloud-init.btrfs.enable¶
Allow the cloud-init service to operate `btrfs` filesystem.
Type: boolean
Default:
falseDeclared by:
services.cloud-init.config¶
cloud-init configuration.
Type: string
Default:
'' system_info: distro: nixos users: - root disable_root: false preserve_hostname: false cloud_init_modules: - migrator - seed_random - bootcmd - write-files - growpart - resizefs - update_etc_hosts - ca-certs - rsyslog - users-groups cloud_config_modules: - disk_setup - mounts - ssh-import-id - set-passwords - timezone - disable-ec2-metadata - runcmd - ssh cloud_final_modules: - rightscale_userdata - scripts-vendor - scripts-per-once - scripts-per-boot - scripts-per-instance - scripts-user - ssh-authkey-fingerprints - keys-to-console - phone-home - final-message - power-state-change ''Declared by:
services.cloud-init.ext4.enable¶
Allow the cloud-init service to operate `ext4` filesystem.
Type: boolean
Default:
trueDeclared by:
services.cntlm.enable¶
Whether to enable the cntlm, which start a local proxy.
Type: unspecified
Default:
falseDeclared by:
services.cntlm.configText¶
Verbatim contents of
cntlm.conf.Type: strings concatenated with “\n”
Default:
""Declared by:
services.cntlm.domain¶
Proxy account domain/workgroup name.
Type: unspecified
Declared by:
services.cntlm.extraConfig¶
Additional config appended to the end of the generated
cntlm.conf.Type: strings concatenated with “\n”
Default:
""Declared by:
services.cntlm.netbios_hostname¶
The hostname of your machine.
Type: string
Default:
""Declared by:
services.cntlm.noproxy¶
A list of domains where the proxy is skipped.
Type: unspecified
Default: ``[
]``
Example:
[ "\*.example.com" "example.com" ]Declared by:
services.cntlm.password¶
Proxy account password. Note: use chmod 0600 on /etc/cntlm.password for security.
Type: string
Default:
"/etc/cntlm.password"Declared by:
services.cntlm.port¶
Specifies on which ports the cntlm daemon listens.
Type: unspecified
Default:
[ 3128 ]Declared by:
services.cntlm.proxy¶
A list of NTLM/NTLMv2 authenticating HTTP proxies.
Parent proxy, which requires authentication. The same as proxy on the command-line, can be used more than once to specify unlimited number of proxies. Should one proxy fail, cntlm automatically moves on to the next one. The connect request fails only if the whole list of proxies is scanned and (for each request) and found to be invalid. Command-line takes precedence over the configuration file.
Type: unspecified
Example:
[ "proxy.example.com:81" ]Declared by:
services.cntlm.username¶
Proxy account name, without the possibility to include domain name (‘at’ sign is interpreted literally).
Type: unspecified
Declared by:
services.cockroachdb.enable¶
Whether to enable CockroachDB Server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.cockroachdb.package¶
The CockroachDB derivation to use for running the service.
This would primarily be useful to enable Enterprise Edition features in your own custom CockroachDB build (Nixpkgs CockroachDB binaries only contain open source features and open source code).
Type: package
Default:
"pkgs.cockroachdb"Declared by:
services.cockroachdb.cache¶
The total size for caches.
This can be a percentage, expressed with a fraction sign or as a decimal-point number, or any bytes-based unit. For example,``”25%”
, ``"0.25"both represent 25% of the available system memory. The values``”1000000000”`` and"1GB"both represent 1 gigabyte of memory.Type: string
Default:
"25%"Declared by:
services.cockroachdb.certsDir¶
The path to the certificate directory.
Type: null or path
Default:
nullDeclared by:
services.cockroachdb.group¶
User account under which CockroachDB runs
Type: string
Default:
"cockroachdb"Declared by:
services.cockroachdb.http.address¶
Address to bind to for http-based Admin UI
Type: string
Default:
"localhost"Declared by:
services.cockroachdb.http.port¶
Port to bind to for http-based Admin UI
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
8080Declared by:
services.cockroachdb.insecure¶
Run in insecure mode.
Type: boolean
Default:
falseDeclared by:
services.cockroachdb.join¶
The addresses for connecting the node to a cluster.
Type: null or string
Default:
nullDeclared by:
services.cockroachdb.listen.address¶
Address to bind to for intra-cluster communication
Type: string
Default:
"localhost"Declared by:
services.cockroachdb.listen.port¶
Port to bind to for intra-cluster communication
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
26257Declared by:
services.cockroachdb.locality¶
An ordered, comma-separated list of key-value pairs that describe the topography of the machine. Topography might include country, datacenter or rack designations. Data is automatically replicated to maximize diversities of each tier. The order of tiers is used to determine the priority of the diversity, so the more inclusive localities like country should come before less inclusive localities like datacenter. The tiers and order must be the same on all nodes. Including more tiers is better than including fewer. For example:
``country=us,region=us-west,datacenter=us-west-1b,rack=12 country=ca,region=ca-east,datacenter=ca-east-2,rack=4
planet=earth,province=manitoba,colo=secondary,power=3``
Type: null or string
Default:
nullDeclared by:
services.cockroachdb.maxSqlMemory¶
The maximum in-memory storage capacity available to store temporary data for SQL queries.
This can be a percentage, expressed with a fraction sign or as a decimal-point number, or any bytes-based unit. For example,``”25%”
, ``"0.25"both represent 25% of the available system memory. The values``”1000000000”`` and"1GB"both represent 1 gigabyte of memory.Type: string
Default:
"25%"Declared by:
services.cockroachdb.openPorts¶
Open firewall ports for cluster communication by default
Type: boolean
Default:
falseDeclared by:
services.cockroachdb.user¶
User account under which CockroachDB runs
Type: string
Default:
"cockroachdb"Declared by:
services.codimd.enable¶
Whether to enable the CodiMD Markdown Editor.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.codimd.configuration.allowAnonymous¶
Whether to allow anonymous usage.
Type: boolean
Default:
trueDeclared by:
services.codimd.configuration.allowAnonymousEdits¶
Whether to allow guests to edit existing notes with the `freely’ permission, when is enabled.
Type: boolean
Default:
falseDeclared by:
services.codimd.configuration.allowEmailRegister¶
Wether to enable email registration.
Type: boolean
Default:
trueDeclared by:
services.codimd.configuration.allowFreeURL¶
Whether to allow note creation by accessing a nonexistent note URL.
Type: boolean
Default:
falseDeclared by:
services.codimd.configuration.allowGravatar¶
Whether to use gravatar as profile picture source.
Type: boolean
Default:
trueDeclared by:
services.codimd.configuration.allowOrigin¶
List of domains to whitelist.
Type: list of strings
Default: ``[
]``
Example:
[ "localhost" "codimd.org" ]Declared by:
services.codimd.configuration.allowPDFExport¶
Whether to enable PDF exports.
Type: boolean
Default:
trueDeclared by:
services.codimd.configuration.azure¶
Configure the azure third-party integration.
Type: null or submodule
Default:
nullDeclared by:
services.codimd.configuration.azure.connectionString¶
Azure Blob Storage connection string.
Type: string
Declared by:
services.codimd.configuration.azure.container¶
Azure Blob Storage container name. It will be created if non-existent.
Type: string
Declared by:
services.codimd.configuration.csp¶
Specify the Content Security Policy which is passed to Helmet. For configuration details see https://helmetjs.github.io/docs/csp/.
Type: null or attribute set
Default:
nullExample:
{ enable = true; directives = { scriptSrc = "trustworthy.scripts.example.com"; }; upgradeInsecureRequest = "auto"; addDefaults = true; }Declared by:
services.codimd.configuration.db¶
Specify the configuration for sequelize. CodiMD supports mysql, postgres, sqlite and mssql. See https://sequelize.readthedocs.io/en/v3/ for more information. Note: This option overrides .
Type: attribute set
Default: ``{
}``
Example:
{ dialect = "sqlite"; storage = "/var/lib/codimd/db.codimd.sqlite"; }Declared by:
services.codimd.configuration.dbURL¶
Specify which database to use. CodiMD supports mysql, postgres, sqlite and mssql. See https://sequelize.readthedocs.io/en/v3/ for more information. Note: This option overrides .
Type: null or string
Default:
nullExample:
'' postgres://user:pass@host:5432/dbname ''Declared by:
services.codimd.configuration.debug¶
Whether to enable debug mode.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.codimd.configuration.defaultNotePath¶
Path to the default Note file. (Non-canonical paths are relative to CodiMD’s base directory)
Type: null or string
Default:
"./public/default.md"Declared by:
services.codimd.configuration.defaultPermission¶
Default permissions for notes. This only applies for signed-in users.
Type: one of “freely”, “editable”, “limited”, “locked”, “private”
Default:
"editable"Declared by:
services.codimd.configuration.dhParamPath¶
Path to the SSL dh params. Needed when is enabled.
Type: null or string
Default:
nullExample:
"/var/lib/codimd/dhparam.pem"Declared by:
services.codimd.configuration.docsPath¶
Path to the docs directory. (Non-canonical paths are relative to CodiMD’s base directory)
Type: null or string
Default:
"./public/docs"Declared by:
services.codimd.configuration.documentMaxLength¶
Specify the maximum document length.
Type: signed integer
Default:
100000Declared by:
services.codimd.configuration.domain¶
Domain name for the CodiMD instance.
Type: null or string
Default:
nullExample:
"codimd.org"Declared by:
services.codimd.configuration.dropbox¶
Configure the Dropbox third-party integration.
Type: null or submodule
Default:
nullDeclared by:
services.codimd.configuration.dropbox.appKey¶
services.codimd.configuration.dropbox.clientID¶
Dropbox API client ID.
Type: string
Declared by:
services.codimd.configuration.dropbox.clientSecret¶
Dropbox API client secret.
Type: string
Declared by:
services.codimd.configuration.email¶
Whether to enable email sign-in.
Type: boolean
Default:
trueDeclared by:
services.codimd.configuration.errorPath¶
Path to the error template file. (Non-canonical paths are relative to CodiMD’s base directory)
Type: null or string
Default:
"./public/views/error.ejs"Declared by:
services.codimd.configuration.facebook¶
Configure the facebook third-party integration
Type: null or submodule
Default:
nullDeclared by:
services.codimd.configuration.facebook.clientID¶
Facebook API client ID.
Type: string
Declared by:
services.codimd.configuration.facebook.clientSecret¶
Facebook API client secret.
Type: string
Declared by:
services.codimd.configuration.github¶
Configure the GitHub third-party integration.
Type: null or submodule
Default:
nullDeclared by:
services.codimd.configuration.github.clientID¶
GitHub API client ID.
Type: string
Declared by:
services.codimd.configuration.github.clientSecret¶
Github API client secret.
Type: string
Declared by:
services.codimd.configuration.gitlab¶
Configure the GitLab third-party integration.
Type: null or submodule
Default:
nullDeclared by:
services.codimd.configuration.gitlab.baseURL¶
GitLab API authentication endpoint. Only needed for other endpoints than gitlab.com.
Type: string
Default:
""Declared by:
services.codimd.configuration.gitlab.clientID¶
GitLab API client ID.
Type: string
Declared by:
services.codimd.configuration.gitlab.clientSecret¶
GitLab API client secret.
Type: string
Declared by:
services.codimd.configuration.gitlab.scope¶
GitLab API requested scope. GitLab snippet import/export requires api scope.
Type: one of “api”, “read_user”
Default:
"api"Declared by:
services.codimd.configuration.google¶
Configure the Google third-party integration.
Type: null or submodule
Default:
nullDeclared by:
services.codimd.configuration.google.clientID¶
Google API client ID.
Type: string
Declared by:
services.codimd.configuration.google.clientSecret¶
Google API client secret.
Type: string
Declared by:
services.codimd.configuration.hackmdPath¶
Path to the hackmd template file. (Non-canonical paths are relative to CodiMD’s base directory)
Type: null or string
Default:
"./public/views/hackmd.ejs"Declared by:
services.codimd.configuration.heartbeatInterval¶
Specify the socket.io heartbeat interval.
Type: signed integer
Default:
5000Declared by:
services.codimd.configuration.heartbeatTimeout¶
Specify the socket.io heartbeat timeout.
Type: signed integer
Default:
10000Declared by:
services.codimd.configuration.host¶
Address to listen on.
Type: string
Default:
"localhost"Declared by:
services.codimd.configuration.hsts.enable¶
Wheter to enable HSTS if HTTPS is also enabled.
Type: boolean
Default:
trueDeclared by:
services.codimd.configuration.hsts.includeSubdomains¶
Whether to include subdomains in HSTS.
Type: boolean
Default:
trueDeclared by:
services.codimd.configuration.hsts.maxAgeSeconds¶
Max duration for clients to keep the HSTS status.
Type: signed integer
Default:
31536000Declared by:
services.codimd.configuration.hsts.preload¶
Whether to allow preloading of the site’s HSTS status.
Type: boolean
Default:
trueDeclared by:
services.codimd.configuration.imageUploadType¶
Specify where to upload images.
Type: one of “imgur”, “s3”, “minio”, “filesystem”
Default:
"filesystem"Declared by:
services.codimd.configuration.imgur.clientId¶
Imgur API client ID.
Type: null or string
Default:
nullDeclared by:
services.codimd.configuration.indexPath¶
Path to the index template file. (Non-canonical paths are relative to CodiMD’s base directory)
Type: null or string
Default:
"./public/views/index.ejs"Declared by:
services.codimd.configuration.ldap¶
Configure the LDAP integration.
Type: null or submodule
Default:
nullDeclared by:
services.codimd.configuration.ldap.bindCredentials¶
Bind credentials for LDAP access.
Type: string
Declared by:
services.codimd.configuration.ldap.bindDn¶
Bind DN for LDAP access.
Type: string
Declared by:
services.codimd.configuration.ldap.providerName¶
Optional name to be displayed at login form, indicating the LDAP provider.
Type: string
Default:
""Declared by:
services.codimd.configuration.ldap.searchAttributes¶
LDAP attributes to search with.
Type: list of strings
Example:
[ "displayName" "mail" ]Declared by:
services.codimd.configuration.ldap.searchBase¶
LDAP directory to begin search from.
Type: string
Example:
"o=users,dc=example,dc=com"Declared by:
services.codimd.configuration.ldap.searchFilter¶
LDAP filter to search with.
Type: string
Example:
"(uid={{username}})"Declared by:
services.codimd.configuration.ldap.tlsca¶
Root CA for LDAP TLS in PEM format.
Type: string
Example:
"server-cert.pem,root.pem"Declared by:
services.codimd.configuration.ldap.url¶
URL of LDAP server.
Type: string
Example:
"ldap://localhost"Declared by:
services.codimd.configuration.ldap.userNameField¶
LDAP field which is used as the username on CodiMD. By default is used.
Type: string
Default:
""Declared by:
services.codimd.configuration.ldap.useridField¶
LDAP field which is a unique identifier for users on CodiMD.
Type: string
Example:
"uid"Declared by:
services.codimd.configuration.mattermost¶
Configure the Mattermost third-party integration.
Type: null or submodule
Default:
nullDeclared by:
services.codimd.configuration.mattermost.baseURL¶
Mattermost authentication endpoint.
Type: string
Declared by:
services.codimd.configuration.mattermost.clientID¶
Mattermost API client ID.
Type: string
Declared by:
services.codimd.configuration.mattermost.clientSecret¶
Mattermost API client secret.
Type: string
Declared by:
services.codimd.configuration.minio¶
Configure the minio third-party integration.
Type: null or submodule
Default:
nullDeclared by:
services.codimd.configuration.minio.accessKey¶
services.codimd.configuration.minio.endpoint¶
services.codimd.configuration.minio.port¶
Minio listen port.
Type: signed integer
Default:
9000Declared by:
services.codimd.configuration.minio.secretKey¶
services.codimd.configuration.minio.secure¶
Whether to use HTTPS for Minio.
Type: boolean
Default:
trueDeclared by:
services.codimd.configuration.oauth2¶
Configure the OAuth integration.
Type: null or submodule
Default:
nullDeclared by:
services.codimd.configuration.oauth2.authorizationURL¶
Specify the OAuth authorization URL.
Type: string
Declared by:
services.codimd.configuration.oauth2.clientID¶
Specify the OAuth client ID.
Type: string
Declared by:
services.codimd.configuration.oauth2.clientSecret¶
Specify the OAuth client secret.
Type: string
Declared by:
services.codimd.configuration.oauth2.tokenURL¶
Specify the OAuth token URL.
Type: string
Declared by:
services.codimd.configuration.path¶
Specify where a UNIX domain socket should be placed.
Type: null or string
Default:
nullExample:
"/run/codimd.sock"Declared by:
services.codimd.configuration.port¶
Port to listen on.
Type: signed integer
Default:
3000Example:
"80"Declared by:
services.codimd.configuration.prettyPath¶
Path to the pretty template file. (Non-canonical paths are relative to CodiMD’s base directory)
Type: null or string
Default:
"./public/views/pretty.ejs"Declared by:
services.codimd.configuration.protocolUseSSL¶
Enable to use TLS for resource paths. This only applies when is set.
Type: boolean
Default:
falseDeclared by:
services.codimd.configuration.s3¶
Configure the s3 third-party integration.
Type: null or submodule
Default:
nullDeclared by:
services.codimd.configuration.s3.accessKeyId¶
services.codimd.configuration.s3.region¶
services.codimd.configuration.s3.secretAccessKey¶
services.codimd.configuration.s3bucket¶
Specify the bucket name for upload types
s3andminio.Type: null or string
Default:
nullDeclared by:
services.codimd.configuration.saml¶
Configure the SAML integration.
Type: null or submodule
Default:
nullDeclared by:
services.codimd.configuration.saml.attribute.email¶
Attribute map for `email’. Defaults to `NameID’ of SAML response if has the default value.
Type: string
Default:
""Declared by:
services.codimd.configuration.saml.attribute.id¶
Attribute map for `id’. Defaults to `NameID’ of SAML response.
Type: string
Default:
""Declared by:
services.codimd.configuration.saml.attribute.username¶
Attribute map for `username’. Defaults to `NameID’ of SAML response.
Type: string
Default:
""Declared by:
services.codimd.configuration.saml.externalGroups¶
Excluded group names.
Type: list of strings
Default: ``[
]``
Example:
[ "Temporary-staff" "External-users" ]Declared by:
services.codimd.configuration.saml.groupAttribute¶
Optional attribute name for group list.
Type: string
Default:
""Example:
"memberOf"Declared by:
services.codimd.configuration.saml.identifierFormat¶
Optional name identifier format.
Type: string
Default:
"urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"Declared by:
services.codimd.configuration.saml.idpCert¶
Path to IdP certificate file in PEM format.
Type: path
Example:
"/path/to/cert.pem"Declared by:
services.codimd.configuration.saml.idpSsoUrl¶
IdP authentication endpoint.
Type: string
Example:
"https://idp.example.com/sso"Declared by:
services.codimd.configuration.saml.issuer¶
Optional identity of the service provider. This defaults to the server URL.
Type: string
Default:
""Declared by:
services.codimd.configuration.saml.requiredGroups¶
Required group names.
Type: list of strings
Default: ``[
]``
Example:
[ "Hackmd-users" "Codimd-users" ]Declared by:
services.codimd.configuration.sessionLife¶
Session life time in milliseconds.
Type: signed integer
Default:
1209600000Declared by:
services.codimd.configuration.sessionName¶
Specify the name of the session cookie.
Type: string
Default:
"connect.sid"Declared by:
services.codimd.configuration.sessionSecret¶
Specify the secret used to sign the session cookie. If unset, one will be generated on startup.
Type: null or string
Default:
nullDeclared by:
services.codimd.configuration.slidePath¶
Path to the slide template file. (Non-canonical paths are relative to CodiMD’s base directory)
Type: null or string
Default:
"./public/views/slide.hbs"Declared by:
services.codimd.configuration.sslCAPath¶
SSL ca chain. Needed when is enabled.
Type: list of strings
Default: ``[
]``
Example:
[ "/var/lib/codimd/ca.crt" ]Declared by:
services.codimd.configuration.sslCertPath¶
Path to the SSL cert. Needed when is enabled.
Type: null or string
Default:
nullExample:
"/var/lib/codimd/codimd.crt"Declared by:
services.codimd.configuration.sslKeyPath¶
Path to the SSL key. Needed when is enabled.
Type: null or string
Default:
nullExample:
"/var/lib/codimd/codimd.key"Declared by:
services.codimd.configuration.tmpPath¶
Path to the temp directory CodiMD should use. Note that is enabled for the CodiMD systemd service by default. (Non-canonical paths are relative to CodiMD’s base directory)
Type: string
Default:
"/tmp"Declared by:
services.codimd.configuration.twitter¶
Configure the Twitter third-party integration.
Type: null or submodule
Default:
nullDeclared by:
services.codimd.configuration.twitter.consumerKey¶
Twitter API consumer key.
Type: string
Declared by:
services.codimd.configuration.twitter.consumerSecret¶
Twitter API consumer secret.
Type: string
Declared by:
services.codimd.configuration.uploadsPath¶
Path under which uploaded files are saved.
Type: string
Default:
"/var/lib/codimd/uploads"Declared by:
services.codimd.configuration.urlAddPort¶
Enable to add the port to callback URLs. This only applies when is set and only for ports other than 80 and 443.
Type: boolean
Default:
falseDeclared by:
services.codimd.configuration.urlPath¶
Path under which CodiMD is accessible.
Type: null or string
Default:
nullExample:
"/url/path/to/codimd"Declared by:
services.codimd.configuration.useCDN¶
Whether to use CDN resources or not.
Type: boolean
Default:
trueDeclared by:
services.codimd.configuration.useSSL¶
Enable to use SSL server. This will also enable.
Type: boolean
Default:
falseDeclared by:
services.codimd.groups¶
Groups to which the codimd user should be added.
Type: list of strings
Default: ``[
]``
Declared by:
services.codimd.workDir¶
Working directory for the CodiMD service.
Type: path
Default:
"/var/lib/codimd"Declared by:
services.collectd.enable¶
Whether to enable collectd agent.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.collectd.package¶
Which collectd package to use.
Type: package
Default:
"pkgs.collectd"Declared by:
services.collectd.autoLoadPlugin¶
Enable plugin autoloading.
Type: boolean
Default:
falseDeclared by:
services.collectd.buildMinimalPackage¶
Build a minimal collectd package with only the configured `services.collectd.plugins`
Type: boolean
Default:
falseDeclared by:
services.collectd.dataDir¶
Data directory for collectd agent.
Type: path
Default:
"/var/lib/collectd"Declared by:
services.collectd.extraConfig¶
Extra configuration for collectd.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.collectd.include¶
services.collectd.plugins¶
Attribute set of plugin names to plugin config segments
Type: attribute set of strings
Default: ``{
}``
Example:
{ cpu = ""; memory = ""; network = "Server 192.168.1.1 25826"; }Declared by:
services.collectd.user¶
User under which to run collectd.
Type: null or string
Default:
"collectd"Declared by:
services.colord.enable¶
Whether to enable colord, the color management daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.compton¶
services.confd.enable¶
Whether to enable confd service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.confd.package¶
Confd package to use.
Type: package
Default:
"pkgs.confd"Declared by:
services.confd.backend¶
Confd config storage backend to use.
Type: one of “etcd”, “consul”, “redis”, “zookeeper”
Default:
"etcd"Declared by:
services.confd.confDir¶
The path to the confd configs.
Type: path
Default:
"/etc/confd"Declared by:
services.confd.interval¶
Confd check interval.
Type: signed integer
Default:
10Declared by:
services.confd.logLevel¶
Confd log level.
Type: one of “info”, “debug”
Default:
"info"Declared by:
services.confd.nodes¶
Confd list of nodes to connect to.
Type: list of strings
Default:
[ "http://127.0.0.1:2379" ]Declared by:
services.confd.prefix¶
The string to prefix to keys.
Type: path
Default:
"/"Declared by:
services.confd.watch¶
Confd, whether to watch etcd config for changes.
Type: boolean
Default:
trueDeclared by:
services.confluence.enable¶
Whether to enable Atlassian Confluence service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.confluence.package¶
Atlassian Confluence package to use.
Type: package
Default:
"pkgs.atlassian-confluence"Declared by:
services.confluence.catalinaOptions¶
Java options to pass to catalina/tomcat.
Type: list of strings
Default: ``[
]``
Example:
[ "-Xms1024m" "-Xmx2048m" "-Dconfluence.disable.peopledirectory.all=true" ]Declared by:
services.confluence.group¶
Group which runs confluence.
Type: string
Default:
"confluence"Declared by:
services.confluence.home¶
Home directory of the confluence instance.
Type: string
Default:
"/var/lib/confluence"Declared by:
services.confluence.jrePackage¶
Note that Atlassian only support the Oracle JRE (JRASERVER-46152).
Type: package
Default:
"pkgs.oraclejre8"Declared by:
services.confluence.listenAddress¶
Address to listen on.
Type: string
Default:
"127.0.0.1"Declared by:
services.confluence.listenPort¶
Port to listen on.
Type: signed integer
Default:
8090Declared by:
services.confluence.proxy.enable¶
Whether to enable proxy support.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.confluence.proxy.name¶
Virtual hostname at the proxy
Type: string
Example:
"confluence.example.com"Declared by:
services.confluence.proxy.port¶
Port used at the proxy
Type: signed integer
Default:
443Example:
80Declared by:
services.confluence.proxy.scheme¶
Protocol used at the proxy.
Type: string
Default:
"https"Example:
"http"Declared by:
services.confluence.sso.enable¶
Whether to enable SSO with Atlassian Crowd.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.confluence.sso.applicationName¶
Exact name of this Confluence instance in Crowd
Type: string
Example:
"jira"Declared by:
services.confluence.sso.applicationPassword¶
Application password of this Confluence instance in Crowd
Type: string
Declared by:
services.confluence.sso.crowd¶
Crowd Base URL without trailing slash
Type: string
Example:
"http://localhost:8095/crowd"Declared by:
services.confluence.sso.validationInterval¶
Set to 0, if you want authentication checks to occur on each request. Otherwise set to the number of minutes between request to validate if the user is logged in or out of the Crowd SSO server. Setting this value to 1 or higher will increase the performance of Crowd’s integration.
Type: signed integer
Default:
2Example:
0Declared by:
services.confluence.user¶
User which runs confluence.
Type: string
Default:
"confluence"Declared by:
services.connman.enable¶
Whether to use ConnMan for managing your network connections.
Type: boolean
Default:
falseDeclared by:
services.connman.enableVPN¶
Whether to enable ConnMan VPN service.
Type: boolean
Default:
trueDeclared by:
services.connman.extraConfig¶
Configuration lines appended to the generated connman configuration file.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.connman.extraFlags¶
Extra flags to pass to connmand
Type: list of strings
Default: ``[
]``
Example:
[ "--nodnsproxy" ]Declared by:
services.connman.networkInterfaceBlacklist¶
Default blacklisted interfaces, this includes NixOS containers interfaces (ve).
Type: list of strings
Default:
[ "vmnet" "vboxnet" "virbr" "ifb" "ve" ]Declared by:
services.connman.wifi.backend¶
Specify the Wi-Fi backend used. Currently supported are or .
Type: one of “wpa_supplicant”, “iwd”
Default:
"wpa_supplicant"Declared by:
services.consul.enable¶
Enables the consul daemon.
Type: boolean
Default:
falseDeclared by:
services.consul.package¶
The package used for the Consul agent and CLI.
Type: package
Default:
"pkgs.consul"Declared by:
services.consul.alerts.enable¶
Whether to enable consul-alerts.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.consul.alerts.package¶
Package to use for consul-alerts.
Type: package
Default:
"pkgs.consul-alerts"Declared by:
services.consul.alerts.consulAddr¶
Consul api listening adddress
Type: string
Default:
"localhost:8500"Declared by:
services.consul.alerts.listenAddr¶
Api listening address.
Type: string
Default:
"localhost:9000"Declared by:
services.consul.alerts.watchChecks¶
Whether to enable check watcher.
Type: boolean
Default:
trueDeclared by:
services.consul.alerts.watchEvents¶
Whether to enable event watcher.
Type: boolean
Default:
trueDeclared by:
services.consul.dropPrivileges¶
Whether the consul agent should be run as a non-root consul user.
Type: boolean
Default:
trueDeclared by:
services.consul.extraConfig¶
Extra configuration options which are serialized to json and added to the config.json file.
Type: unspecified
Default: ``{
}``
Declared by:
services.consul.extraConfigFiles¶
Additional configuration files to pass to consul NOTE: These will not trigger the service to be restarted when altered.
Type: list of strings
Default: ``[
]``
Declared by:
services.consul.forceIpv4¶
Whether we should force the interfaces to only pull ipv4 addresses.
Type: boolean
Default:
falseDeclared by:
services.consul.interface.advertise¶
The name of the interface to pull the advertise_addr from.
Type: null or string
Default:
nullDeclared by:
services.consul.interface.bind¶
The name of the interface to pull the bind_addr from.
Type: null or string
Default:
nullDeclared by:
services.consul.leaveOnStop¶
If enabled, causes a leave action to be sent when closing consul. This allows a clean termination of the node, but permanently removes it from the cluster. You probably don’t want this option unless you are running a node which going offline in a permanent / semi-permanent fashion.
Type: boolean
Default:
falseDeclared by:
services.consul.webUi¶
Enables the web interface on the consul http port.
Type: boolean
Default:
falseDeclared by:
services.coredns.enable¶
Whether to enable Coredns dns server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.coredns.package¶
Coredns package to use.
Type: package
Default:
"pkgs.coredns"Declared by:
services.coredns.config¶
Verbatim Corefile to use. See ` <https://coredns.io/manual/toc/#configuration>`_ for details.
Type: strings concatenated with “\n”
Default:
""Example:
'' . { whoami } ''Declared by:
services.corerad.enable¶
Whether to enable CoreRAD IPv6 NDP RA daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.corerad.package¶
CoreRAD package to use.
Type: package
Default:
pkgs.coreradDeclared by:
services.corerad.configFile¶
Path to CoreRAD TOML configuration file.
Type: path
Example:
"${pkgs.corerad}/etc/corerad/corerad.toml"Declared by:
services.coturn.enable¶
Whether to enable coturn TURN server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.coturn.alt-listening-port¶
Alternative listening port for UDP and TCP listeners; default (or zero) value means “listening port plus one”. This is needed for RFC 5780 support (STUN extension specs, NAT behavior discovery). The TURN Server supports RFC 5780 only if it is started with more than one listening IP address of the same family (IPv4 or IPv6). RFC 5780 is supported only by UDP protocol, other protocols are listening to that endpoint only for “symmetry”.
Type: signed integer
Default:
"listening-port + 1"Declared by:
services.coturn.alt-tls-listening-port¶
Alternative listening port for TLS and DTLS protocols.
Type: signed integer
Default:
"tls-listening-port + 1"Declared by:
services.coturn.cert¶
Certificate file in PEM format.
Type: null or string
Default:
nullExample:
"/var/lib/acme/example.com/fullchain.pem"Declared by:
services.coturn.cli-ip¶
Local system IP address to be used for CLI server endpoint.
Type: string
Default:
"127.0.0.1"Declared by:
services.coturn.cli-password¶
CLI access password. For the security reasons, it is recommended to use the encrypted for of the password (see the -P command in the turnadmin utility).
Type: null or string
Default:
nullDeclared by:
services.coturn.cli-port¶
CLI server port.
Type: signed integer
Default:
5766Declared by:
services.coturn.dh-file¶
Use custom DH TLS key, stored in PEM format in the file.
Type: null or string
Default:
nullDeclared by:
services.coturn.extraConfig¶
Additional configuration options
Type: strings concatenated with “\n”
Default:
""Declared by:
services.coturn.listening-ips¶
Listener IP addresses of relay server. If no IP(s) specified in the config file or in the command line options, then all IPv4 and IPv6 system IPs will be used for listening.
Type: list of strings
Default: ``[
]``
Example:
[ "203.0.113.42" "2001:DB8::42" ]Declared by:
services.coturn.listening-port¶
TURN listener port for UDP and TCP. Note: actually, TLS and DTLS sessions can connect to the “plain” TCP and UDP port(s), too - if allowed by configuration.
Type: signed integer
Default:
3478Declared by:
services.coturn.lt-cred-mech¶
Use long-term credential mechanism.
Type: boolean
Default:
falseDeclared by:
services.coturn.max-port¶
Upper bound of UDP relay endpoints
Type: signed integer
Default:
65535Declared by:
services.coturn.min-port¶
Lower bound of UDP relay endpoints
Type: signed integer
Default:
49152Declared by:
services.coturn.no-auth¶
This option is opposite to lt-cred-mech. (TURN Server with no-auth option allows anonymous access). If neither option is defined, and no users are defined, then no-auth is default. If at least one user is defined, in this file or in command line or in usersdb file, then lt-cred-mech is default.
Type: boolean
Default:
falseDeclared by:
services.coturn.no-cli¶
Turn OFF the CLI support.
Type: boolean
Default:
falseDeclared by:
services.coturn.no-dtls¶
Disable DTLS client listener
Type: boolean
Default:
falseDeclared by:
services.coturn.no-tcp¶
Disable TCP client listener
Type: boolean
Default:
falseDeclared by:
services.coturn.no-tcp-relay¶
Disable TCP relay endpoints
Type: boolean
Default:
falseDeclared by:
services.coturn.no-tls¶
Disable TLS client listener
Type: boolean
Default:
falseDeclared by:
services.coturn.no-udp¶
Disable UDP client listener
Type: boolean
Default:
falseDeclared by:
services.coturn.no-udp-relay¶
Disable UDP relay endpoints
Type: boolean
Default:
falseDeclared by:
services.coturn.pkey¶
Private key file in PEM format.
Type: null or string
Default:
nullExample:
"/var/lib/acme/example.com/key.pem"Declared by:
services.coturn.realm¶
The default realm to be used for the users when no explicit origin/realm relationship was found in the database, or if the TURN server is not using any database (just the commands-line settings and the userdb file). Must be used with long-term credentials mechanism or with TURN REST API.
Type: string
Default:
"nixos"Example:
"example.com"Declared by:
services.coturn.relay-ips¶
Relay address (the local IP address that will be used to relay the packets to the peer). Multiple relay addresses may be used. The same IP(s) can be used as both listening IP(s) and relay IP(s).
If no relay IP(s) specified, then the turnserver will apply the default policy: it will decide itself which relay addresses to be used, and it will always be using the client socket IP address as the relay IP address of the TURN session (if the requested relay address family is the same as the family of the client socket).
Type: list of strings
Default: ``[
]``
Example:
[ "203.0.113.42" "2001:DB8::42" ]Declared by:
services.coturn.secure-stun¶
Require authentication of the STUN Binding request. By default, the clients are allowed anonymous access to the STUN Binding functionality.
Type: boolean
Default:
falseDeclared by:
services.coturn.static-auth-secret¶
‘Static’ authentication secret value (a string) for TURN REST API only. If not set, then the turn server will try to use the ‘dynamic’ value in turn_secret table in user database (if present). The database-stored value can be changed on-the-fly by a separate program, so this is why that other mode is ‘dynamic’.
Type: null or string
Default:
nullDeclared by:
services.coturn.tls-listening-port¶
TURN listener port for TLS. Note: actually, “plain” TCP and UDP sessions can connect to the TLS and DTLS port(s), too - if allowed by configuration. The TURN server “automatically” recognizes the type of traffic. Actually, two listening endpoints (the “plain” one and the “tls” one) are equivalent in terms of functionality; but we keep both endpoints to satisfy the RFC 5766 specs. For secure TCP connections, we currently support SSL version 3 and TLS version 1.0, 1.1 and 1.2. For secure UDP connections, we support DTLS version 1.
Type: signed integer
Default:
5349Declared by:
services.coturn.use-auth-secret¶
TURN REST API flag. Flag that sets a special authorization option that is based upon authentication secret. This feature can be used with the long-term authentication mechanism, only. This feature purpose is to support “TURN Server REST API”, see “TURN REST API” link in the project’s page https://github.com/coturn/coturn/
This option is used with timestamp:
usercombo -> “timestamp:userid” turn user -> usercombo turn password -> base64(hmac(secret key, usercombo))
This allows TURN credentials to be accounted for a specific user id. If you don’t have a suitable id, the timestamp alone can be used. This option is just turning on secret-based authentication. The actual value of the secret is defined either by option static-auth-secret, or can be found in the turn_secret table in the database.
Type: boolean
Default:
falseDeclared by:
services.couchdb.enable¶
Whether to run CouchDB Server.
Type: boolean
Default:
falseDeclared by:
services.couchdb.package¶
CouchDB package to use.
Type: package
Default:
"pkgs.couchdb"Example:
pkgs.couchdbDeclared by:
services.couchdb.bindAddress¶
Defines the IP address by which CouchDB will be accessible.
Type: string
Default:
"127.0.0.1"Declared by:
services.couchdb.configFile¶
Configuration file for persisting runtime changes. File needs to be readable and writable from couchdb user/group.
Type: path
Declared by:
services.couchdb.databaseDir¶
Specifies location of CouchDB database files (*.couch named). This location should be writable and readable for the user the CouchDB service runs as (couchdb by default).
Type: path
Default:
"/var/lib/couchdb"Declared by:
services.couchdb.extraConfig¶
Extra configuration. Overrides any other cofiguration.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.couchdb.group¶
Group account under which couchdb runs.
Type: string
Default:
"couchdb"Declared by:
services.couchdb.logFile¶
Specifies the location of file for logging output.
Type: path
Default:
"/var/log/couchdb.log"Declared by:
services.couchdb.port¶
Defined the port number to listen.
Type: signed integer
Default:
5984Declared by:
services.couchdb.uriFile¶
This file contains the full URI that can be used to access this instance of CouchDB. It is used to help discover the port CouchDB is running on (if it was set to 0 (e.g. automatically assigned any free one). This file should be writable and readable for the user that runs the CouchDB service (couchdb by default).
Type: path
Default:
"/run/couchdb/couchdb.uri"Declared by:
services.couchdb.user¶
User account under which couchdb runs.
Type: string
Default:
"couchdb"Declared by:
services.couchdb.viewIndexDir¶
Specifies location of CouchDB view index files. This location should be writable and readable for the user that runs the CouchDB service (couchdb by default).
Type: path
Default:
"/var/lib/couchdb"Declared by:
services.couchpotato.enable¶
Whether to enable CouchPotato Server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.cpuminer-cryptonight.enable¶
Whether to enable the cpuminer cryptonight miner.
Type: boolean
Default:
falseDeclared by:
services.cpuminer-cryptonight.pass¶
Password for mining server
Type: string
Default:
"x"Declared by:
services.cpuminer-cryptonight.threads¶
Number of miner threads, defaults to available processors
Type: signed integer
Default:
0Declared by:
services.cpuminer-cryptonight.url¶
URL of mining server
Type: string
Declared by:
services.cpuminer-cryptonight.user¶
Username for mining server
Type: string
Declared by:
services.cron.enable¶
Whether to enable the Vixie cron daemon.
Type: boolean
Default:
falseDeclared by:
services.cron.cronFiles¶
A list of extra crontab files that will be read and appended to the main crontab file when the cron service starts.
Type: list of paths
Default: ``[
]``
Declared by:
services.cron.mailto¶
Email address to which job output will be mailed.
Type: null or string
Default:
nullDeclared by:
services.cron.systemCronJobs¶
A 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
If neither /var/cron/cron.deny nor /var/cron/cron.allow exist only root 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.
Many nixos modules set systemCronJobs, so if you decide to disable vixie cron and enable another cron daemon, you may want it to get its system crontab based on systemCronJobs.
Type: list of strings
Default: ``[
]``
Example:
[ "* * * * * test ls -l / > /tmp/cronout 2>&1" "* * * * * eelco echo Hello World > /home/eelco/cronout" ]Declared by:
services.crowd.enable¶
Whether to enable Atlassian Crowd service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.crowd.package¶
Atlassian Crowd package to use.
Type: package
Default:
"pkgs.atlassian-crowd"Declared by:
services.crowd.catalinaOptions¶
Java options to pass to catalina/tomcat.
Type: list of strings
Default: ``[
]``
Example:
[ "-Xms1024m" "-Xmx2048m" ]Declared by:
services.crowd.group¶
Group which runs Crowd.
Type: string
Default:
"crowd"Declared by:
services.crowd.home¶
Home directory of the Crowd instance.
Type: string
Default:
"/var/lib/crowd"Declared by:
services.crowd.jrePackage¶
Note that Atlassian only support the Oracle JRE (JRASERVER-46152).
Type: package
Default:
"pkgs.oraclejre8"Declared by:
services.crowd.listenAddress¶
Address to listen on.
Type: string
Default:
"127.0.0.1"Declared by:
services.crowd.listenPort¶
Port to listen on.
Type: signed integer
Default:
8092Declared by:
services.crowd.openidPassword¶
Application password for OpenID server.
Type: string
Declared by:
services.crowd.proxy.enable¶
Whether to enable reverse proxy support.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.crowd.proxy.name¶
Virtual hostname at the proxy
Type: string
Example:
"crowd.example.com"Declared by:
services.crowd.proxy.port¶
Port used at the proxy
Type: signed integer
Default:
443Example:
80Declared by:
services.crowd.proxy.scheme¶
Protocol used at the proxy.
Type: string
Default:
"https"Example:
"http"Declared by:
services.crowd.proxy.secure¶
Whether the connections to the proxy should be considered secure.
Type: boolean
Default:
trueDeclared by:
services.crowd.user¶
User which runs Crowd.
Type: string
Default:
"crowd"Declared by:
services.cryptpad.enable¶
Whether to enable the Cryptpad service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.cryptpad.package¶
Cryptpad package to use.
Type: package
Default:
"pkgs.cryptpad"Declared by:
services.cryptpad.configFile¶
Path to the JavaScript configuration file.
See ` <https://github.com/xwiki-labs/cryptpad/blob/master/config/config.example.js>`_ for a configuration example.
Type: path
Default:
"\\${cfg.package}/lib/node_modules/cryptpad/config/config.example.js"Declared by:
services.dante.enable¶
Whether to enable Dante SOCKS proxy.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.dante.config¶
Contents of Dante’s configuration file. NOTE: user.privileged, user.unprivileged and logoutput are set by the service.
Type: strings concatenated with “\n”
Declared by:
services.darkhttpd.enable¶
Whether to enable DarkHTTPd web server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.darkhttpd.address¶
Address to listen on. Pass `all` to listen on all interfaces.
Type: string
Default:
"127.0.0.1"Declared by:
services.darkhttpd.extraArgs¶
Additional configuration passed to the executable.
Type: list of strings
Default: ``[
]``
Declared by:
services.darkhttpd.hideServerId¶
Don’t identify the server type in headers or directory listings.
Type: boolean
Default:
trueDeclared by:
services.darkhttpd.port¶
Port to listen on. Pass 0 to let the system choose any free port for you.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
80Declared by:
services.darkhttpd.rootDir¶
Path from which to serve files.
Type: path
Declared by:
services.das_watchdog.enable¶
Whether to enable realtime watchdog.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.datadog-agent.enable¶
Whether to enable the datadog-agent v6 monitoring service
Type: boolean
Default:
falseDeclared by:
services.datadog-agent.enableLiveProcessCollection¶
Whether to enable the live process collection agent.
Type: boolean
Default:
falseDeclared by:
services.datadog-agent.enableTraceAgent¶
Whether to enable the trace agent.
Type: boolean
Default:
falseDeclared by:
services.datadog-agent.package¶
Which DataDog v6 agent package to use. Note that the provided package is expected to have an overridable `pythonPackages`-attribute which configures the Python environment with the Datadog checks.
Type: package
Default:
"pkgs.datadog-agent"Declared by:
services.datadog-agent.apiKeyFile¶
Path to a file containing the Datadog API key to associate the agent with your account.
Type: path
Example:
"/run/keys/datadog_api_key"Declared by:
services.datadog-agent.checks¶
Configuration for all Datadog checks. Keys of this attribute set will be used as the name of the check to create the appropriate configuration in `conf.d/$check.d/conf.yaml`.
The configuration is converted into JSON from the plain Nix language configuration, meaning that you should write configuration adhering to Datadog’s documentation - but in Nix language.
Refer to the implementation of this module (specifically the definition of `defaultChecks`) for an example.
Note: The ‘disk’ and ‘network’ check are configured in separate options because they exist by default. Attempting to override their configuration here will have no effect.
Type: attribute set of attribute sets
Default: ``{
}``
Example: ``{ http_check = { init_config = null; instances = [
{ name = “some-service”; tags = [ “some-service” ] ; url = “http://localhost:1337/healthz”; }
}``
Declared by:
services.datadog-agent.diskCheck¶
Disk check config
Type: attribute set
Default: ``{ init_config = {
} ; instances = [
{ use_mount = “false”; }
}``
Declared by:
services.datadog-agent.extraConfig¶
Extra configuration options that will be merged into the main config file
datadog.yaml.Type: attribute set
Default: ``{
}``
Declared by:
services.datadog-agent.extraIntegrations¶
Extra integrations from the Datadog core-integrations repository that should be built and included.
By default the included integrations are disk, mongo, network, nginx and postgres.
To include additional integrations the name of the derivation and a function to filter its dependencies from the Python package set must be provided.
Type: attribute set
Default: ``{
}``
Example:
{ ntp = "<function>"; }Declared by:
services.datadog-agent.hostname¶
The hostname to show in the Datadog dashboard (optional)
Type: null or string
Default:
nullExample:
"mymachine.mydomain"Declared by:
services.datadog-agent.logLevel¶
Logging verbosity.
Type: null or one of “DEBUG”, “INFO”, “WARN”, “ERROR”
Default:
nullDeclared by:
services.datadog-agent.networkCheck¶
Network check config
Type: attribute set
Default: ``{ init_config = {
} ; instances = [
{ collect_connection_state = false; excluded_interfaces = [ “lo” “lo0” ] ; }
}``
Declared by:
services.datadog-agent.tags¶
The tags to mark this Datadog agent
Type: null or list of strings
Default:
nullExample:
[ "test" "service" ]Declared by:
services.davfs2.enable¶
Whether to enable davfs2.
Type: boolean
Default:
falseDeclared by:
services.davfs2.davGroup¶
The group of the running mount.davfs daemon. Ordinary users must be member of this group in order to mount a davfs2 file system. Value must be given as name, not as numerical id.
Type: string
Default:
"davfs2"Declared by:
services.davfs2.davUser¶
When invoked by root the mount.davfs daemon will run as this user. Value must be given as name, not as numerical id.
Type: string
Default:
"davfs2"Declared by:
services.davfs2.extraConfig¶
Extra lines appended to the configuration of davfs2.
Type: strings concatenated with “\n”
Default:
""Example:
'' kernel_fs coda proxy foo.bar:8080 use_locks 0 ''Declared by:
services.davmail.enable¶
Whether to enable davmail, an MS Exchange gateway.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.davmail.config¶
Davmail configuration. Refer to` <http://davmail.sourceforge.net/serversetup.html>`_ and ` <http://davmail.sourceforge.net/advanced.html>`_ for details on supported values.
Type: davmail config type (str, int, bool or attribute set thereof)
Default: ``{
}``
Example:
{ davmail.allowRemote = true; davmail.imapPort = 55555; davmail.bindAddress = "10.0.1.2"; davmail.smtpSaveInSent = true; davmail.folderSizeLimit = 10; davmail.caldavAutoSchedule = false; log4j.logger.rootLogger = "DEBUG"; }Declared by:
services.davmail.url¶
Outlook Web Access URL to access the exchange server, i.e. the base webmail URL.
Type: string
Example:
"https://outlook.office365.com/EWS/Exchange.asmx"Declared by:
services.dbus.packages¶
Packages whose D-Bus configuration files should be included in the configuration of the D-Bus system-wide or session-wide message bus. Specifically, files in the following directories will be included into their respective DBus configuration paths:
NoneNoneNoneNoneNoneNoneType: list of paths
Default: ``[
]``
Declared by:
services.dbus.socketActivated¶
Make the user instance socket activated.
Type: boolean
Default:
falseDeclared by:
services.dd-agent.enable¶
Whether to enable the dd-agent v5 monitoring service. For datadog-agent v6, see .
Type: boolean
Default:
falseDeclared by:
services.dd-agent.api_key¶
The Datadog API key to associate the agent with your account.
Warning: this key is stored in cleartext within the world-readable Nix store! Consider using the new v6 module instead.
Type: string
Example:
"ae0aa6a8f08efa988ba0a17578f009ab"Declared by:
services.dd-agent.hostname¶
The hostname to show in the Datadog dashboard (optional)
Type: null or string
Default:
nullExample:
"mymachine.mydomain"Declared by:
services.dd-agent.jmxConfig¶
JMX integration configuration
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.dd-agent.mongoConfig¶
MongoDB integration configuration
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.dd-agent.nginxConfig¶
Datadog nginx integration configuration
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.dd-agent.postgresqlConfig¶
Datadog PostgreSQL integration configuration
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.dd-agent.processConfig¶
Process integration configuration See ` <https://docs.datadoghq.com/integrations/process/>`_
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.dd-agent.tags¶
The tags to mark this Datadog agent
Type: null or list of strings
Default:
nullExample:
[ "test" "service" ]Declared by:
services.ddclient.enable¶
Whether to synchronise your machine’s IP address with a dynamic DNS provider (e.g. dyndns.org).
Type: boolean
Default:
falseDeclared by:
services.ddclient.configFile¶
Path to configuration file. When set to the default ‘/etc/ddclient.conf’ it will be populated with the various other options in this module. When it is changed (for example: ‘/root/nixos/secrets/ddclient.conf’) the file read directly to configure ddclient. This is a source of impurity. The purpose of this is to avoid placing secrets into the store.
Type: path
Default:
"/etc/ddclient.conf"Example:
"/root/nixos/secrets/ddclient.conf"Declared by:
services.ddclient.domains¶
Domain name(s) to synchronize.
Type: list of strings
Default:
[ "" ]Declared by:
services.ddclient.extraConfig¶
Extra configuration. Contents will be added verbatim to the configuration file.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.ddclient.interval¶
The interval at which to run the check and update. See man 7 systemd.time for the format.
Type: string
Default:
"10min"Declared by:
services.ddclient.password¶
Password. WARNING: The password becomes world readable in the Nix store.
Type: string
Default:
""Declared by:
services.ddclient.protocol¶
Protocol to use with dynamic DNS provider (see https://sourceforge.net/p/ddclient/wiki/protocols).
Type: string
Default:
"dyndns2"Declared by:
services.ddclient.quiet¶
Print no messages for unnecessary updates.
Type: boolean
Default:
falseDeclared by:
services.ddclient.script¶
script as required by some providers.
Type: string
Default:
""Declared by:
services.ddclient.server¶
Server address.
Type: string
Default:
""Declared by:
services.ddclient.ssl¶
Whether to use to use SSL/TLS to connect to dynamic DNS provider.
Type: boolean
Default:
trueDeclared by:
services.ddclient.use¶
Method to determine the IP address to send to the dynamic DNS provider.
Type: string
Default:
"web, web=checkip.dyndns.com/, web-skip='Current IP Address: '"Declared by:
services.ddclient.username¶
User name.
Type: string
Default:
""Declared by:
services.ddclient.verbose¶
Print verbose information.
Type: boolean
Default:
trueDeclared by:
services.ddclient.zone¶
zone as required by some providers.
Type: string
Default:
""Declared by:
services.deepin.core.enable¶
Whether to enable Basic dbus and systemd services, groups and users needed by the Deepin Desktop Environment. .
Type: boolean
Default:
falseExample:
trueDeclared by:
services.deepin.deepin-turbo.enable¶
Whether to enable Turbo service for the Deepin Desktop Environment. It is a daemon that helps to launch applications faster. .
Type: boolean
Default:
falseExample:
trueDeclared by:
services.deluge.enable¶
Whether to enable Deluge daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.deluge.authFile¶
The file managing the authentication for deluge, the format of this file is straightforward, each line contains a username:password:level tuple in plaintext. It only has an effect when is set to``true``. See ` <https://dev.deluge-torrent.org/wiki/UserGuide/Authentication>`_ for more informations.
Type: path
Example:
"/run/keys/deluge-auth"Declared by:
services.deluge.config¶
Deluge core configuration for the core.conf file. Only has an effect when is set to``true``. String values must be quoted, integer and boolean values must not. See` <https://git.deluge-torrent.org/deluge/tree/deluge/core/preferencesmanager.py#n41>`_ for the availaible options.
Type: attribute set
Default: ``{
}``
Example:
{ download_location = "/srv/torrents/"; max_upload_speed = "1000.0"; share_ratio_limit = "2.0"; allow_remote = true; daemon_port = 58846; listen_ports = [ 6881 6889 ]; }Declared by:
services.deluge.dataDir¶
The directory where deluge will create files.
Type: path
Default:
"/var/lib/deluge"Declared by:
services.deluge.declarative¶
Whether to use a declarative deluge configuration. Only if set to
true, the options, and will be applied.Type: boolean
Default:
falseDeclared by:
services.deluge.extraPackages¶
Extra packages available at runtime to enable Deluge’s plugins. For example, extraction utilities are required for the built-in “Extractor” plugin. This always contains unzip, gnutar, xz, p7zip and bzip2.
Type: list of packages
Default: ``[
]``
Declared by:
services.deluge.group¶
Group under which deluge runs.
Type: string
Default:
"deluge"Declared by:
services.deluge.openFilesLimit¶
Number of files to allow deluged to open.
Type: unspecified
Default:
4096Declared by:
services.deluge.openFirewall¶
Whether to open the firewall for the ports in. It only takes effet if is set to``true``.
It does NOT apply to the daemon port nor the web UI port. To access those ports secuerly check the documentation` <https://dev.deluge-torrent.org/wiki/UserGuide/ThinClient#CreateSSHTunnel>`_ or use a VPN or configure certificates for deluge.
Type: boolean
Default:
falseDeclared by:
services.deluge.user¶
User account under which deluge runs.
Type: string
Default:
"deluge"Declared by:
services.deluge.web.enable¶
Whether to enable Deluge Web daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.deluge.web.openFirewall¶
Open ports in the firewall for deluge web daemon
Type: boolean
Default:
falseDeclared by:
services.deluge.web.port¶
Deluge web UI port.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
8112Declared by:
services.devmon.enable¶
Whether to enable devmon, an automatic device mounting daemon.
Type: unspecified
Default:
falseDeclared by:
services.dhcpd4.enable¶
Whether to enable the DHCPv4 server.
Type: boolean
Default:
falseDeclared by:
services.dhcpd4.configFile¶
The path of the DHCP server configuration file. If no file is specified, a file is generated using the other options.
Type: null or path
Default:
nullDeclared by:
services.dhcpd4.extraConfig¶
Extra text to be appended to the DHCP server configuration file. Currently, you almost certainly need to specify something there, such as the options specifying the subnet mask, DNS servers, etc.
Type: strings concatenated with “\n”
Default:
""Example:
'' option subnet-mask 255.255.255.0; option broadcast-address 192.168.1.255; option routers 192.168.1.5; option domain-name-servers 130.161.158.4, 130.161.33.17, 130.161.180.1; option domain-name "example.org"; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.100 192.168.1.200; } ''Declared by:
services.dhcpd4.extraFlags¶
Additional command line flags to be passed to the dhcpd daemon.
Type: list of strings
Default: ``[
]``
Declared by:
services.dhcpd4.interfaces¶
The interfaces on which the DHCP server should listen.
Type: list of strings
Default:
[ "eth0" ]Declared by:
services.dhcpd4.machines¶
A list mapping Ethernet addresses to IPv4 addresses for the DHCP server.
Type: list of submodules
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:
services.dhcpd4.machines.*.ethernetAddress¶
MAC address of the machine.
Type: string
Example:
"00:16:76:9a:32:1d"Declared by:
services.dhcpd4.machines.*.hostName¶
Hostname which is assigned statically to the machine.
Type: string
Example:
"foo"Declared by:
services.dhcpd4.machines.*.ipAddress¶
IP address of the machine.
Type: string
Example:
"192.168.1.10"Declared by:
services.dhcpd4.stateDir¶
State directory for the DHCP server.
Type: path
Default:
"/var/lib/dhcp"Declared by:
services.dhcpd6.enable¶
Whether to enable the DHCPv6 server.
Type: boolean
Default:
falseDeclared by:
services.dhcpd6.configFile¶
The path of the DHCP server configuration file. If no file is specified, a file is generated using the other options.
Type: null or path
Default:
nullDeclared by:
services.dhcpd6.extraConfig¶
Extra text to be appended to the DHCP server configuration file. Currently, you almost certainly need to specify something there, such as the options specifying the subnet mask, DNS servers, etc.
Type: strings concatenated with “\n”
Default:
""Example:
'' option subnet-mask 255.255.255.0; option broadcast-address 192.168.1.255; option routers 192.168.1.5; option domain-name-servers 130.161.158.4, 130.161.33.17, 130.161.180.1; option domain-name "example.org"; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.100 192.168.1.200; } ''Declared by:
services.dhcpd6.extraFlags¶
Additional command line flags to be passed to the dhcpd daemon.
Type: list of strings
Default: ``[
]``
Declared by:
services.dhcpd6.interfaces¶
The interfaces on which the DHCP server should listen.
Type: list of strings
Default:
[ "eth0" ]Declared by:
services.dhcpd6.machines¶
A list mapping Ethernet addresses to IPv6 addresses for the DHCP server.
Type: list of submodules
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:
services.dhcpd6.machines.*.ethernetAddress¶
MAC address of the machine.
Type: string
Example:
"00:16:76:9a:32:1d"Declared by:
services.dhcpd6.machines.*.hostName¶
Hostname which is assigned statically to the machine.
Type: string
Example:
"foo"Declared by:
services.dhcpd6.machines.*.ipAddress¶
IP address of the machine.
Type: string
Example:
"192.168.1.10"Declared by:
services.dhcpd6.stateDir¶
State directory for the DHCP server.
Type: path
Default:
"/var/lib/dhcp6"Declared by:
services.dictd.enable¶
Whether to enable the DICT.org dictionary server.
Type: boolean
Default:
falseDeclared by:
services.dictd.DBs¶
List of databases to make available.
Type: list of packages
Default:
"with pkgs.dictdDBs; [ wiktionary wordnet ]"Example:
[ pkgs.dictdDBs.nld2eng ]Declared by:
services.diod.enable¶
Whether to enable the diod 9P file server.
Type: boolean
Default:
falseDeclared by:
services.diod.allsquash¶
Remap all users to “nobody”. The attaching user need not be present in the password file.
Type: boolean
Default:
trueDeclared by:
services.diod.authRequired¶
Allow clients to connect without authentication, i.e. without a valid MUNGE credential.
Type: boolean
Default:
falseDeclared by:
services.diod.exportall¶
Export all file systems listed in /proc/mounts. If new file systems are mounted after diod has started, they will become immediately mountable. If there is a duplicate entry for a file system in the exports list, any options listed in the exports entry will apply.
Type: boolean
Default:
trueDeclared by:
services.diod.exportopts¶
Establish a default set of export options. These are overridden, not appended to, by opts attributes in an “exports” entry.
Type: list of strings
Default: ``[
]``
Declared by:
services.diod.exports¶
List the file systems that clients will be allowed to mount. All paths should be fully qualified. The exports table can include two types of element: a string element (as above), or an alternate table element form { path=”/path”, opts=”ro” }. In the alternate form, the (optional) opts attribute is a comma-separated list of export options. The two table element forms can be mixed in the exports table. Note that although diod will not traverse file system boundaries for a given mount due to inode uniqueness constraints, subdirectories of a file system can be separately exported.
Type: list of strings
Default: ``[
]``
Declared by:
services.diod.extraConfig¶
Extra configuration options for diod.conf.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.diod.listen¶
[ “IP:PORT” [,”IP:PORT”,…] ] List the interfaces and ports that diod should listen on.
Type: list of strings
Default:
[ "0.0.0.0:564" ]Declared by:
services.diod.logdest¶
Set the destination for logging. The value has the form of “syslog:facility:level” or “filename”.
Type: string
Default:
"syslog:daemon:err"Declared by:
services.diod.nwthreads¶
Sets the (fixed) number of worker threads created to handle 9P requests for a unique aname.
Type: signed integer
Default:
16Declared by:
services.diod.squashuser¶
Change the squash user. The squash user must be present in the password file.
Type: string
Default:
"nobody"Declared by:
services.diod.statfsPassthru¶
This option configures statfs to return the host file system’s type rather than V9FS_MAGIC.
Type: boolean
Default:
falseDeclared by:
services.diod.userdb¶
This option disables password/group lookups. It allows any uid to attach and assumes gid=uid, and supplementary groups contain only the primary gid.
Type: boolean
Default:
falseDeclared by:
services.disnix.enable¶
Whether to enable Disnix
Type: unspecified
Default:
falseDeclared by:
services.disnix.enableMultiUser¶
Whether to support multi-user mode by enabling the Disnix D-Bus service
Type: boolean
Default:
trueDeclared by:
services.disnix.package¶
The Disnix package
Type: path
Default:
"pkgs.disnix"Declared by:
services.disnix.useWebServiceInterface¶
Whether to enable the DisnixWebService interface running on Apache Tomcat
Type: unspecified
Default:
falseDeclared by:
services.dkimproxy-out.enable¶
Whether to enable dkimproxy_out.
Note that a key will be auto-generated, and can be found in /var/lib/dkimproxy-out.
Type: boolean
Default:
falseDeclared by:
services.dkimproxy-out.domains¶
List of domains DKIMproxy can sign for.
Type: list of strings
Example:
[ "example.org" "example.com" ]Declared by:
services.dkimproxy-out.keySize¶
Size of the RSA key to use to sign outgoing emails. Note that the maximum mandatorily verified as per RFC6376 is 2048.
Type: signed integer
Default:
2048Declared by:
services.dkimproxy-out.listen¶
Address:port DKIMproxy should listen on.
Type: string
Example:
"127.0.0.1:10027"Declared by:
services.dkimproxy-out.relay¶
Address:port DKIMproxy should forward mail to.
Type: string
Example:
"127.0.0.1:10028"Declared by:
services.dkimproxy-out.selector¶
The selector to use for DKIM key identification.
For example, if ‘selector1’ is used here, then for each domain ‘example.org’ given in `domain`, ‘selector1._domainkey.example.org’ should contain the TXT record indicating the public key is the one in /var/lib/dkimproxy-out/public.key: “v=DKIM1; t=s; p=[THE PUBLIC KEY]”.
Type: string
Example:
"selector1"Declared by:
services.dleyna-renderer.enable¶
Whether to enable dleyna-renderer service, a DBus service for handling DLNA renderers.
Type: boolean
Default:
falseDeclared by:
services.dleyna-server.enable¶
Whether to enable dleyna-server service, a DBus service for handling DLNA servers.
Type: boolean
Default:
falseDeclared by:
services.dnscache.enable¶
Whether to run the dnscache caching dns server.
Type: boolean
Default:
falseDeclared by:
services.dnscache.clientIps¶
Client IP addresses (or prefixes) from which to accept connections.
Type: list of strings
Default:
[ "127.0.0.1" ]Example:
[ "192.168" "172.23.75.82" ]Declared by:
services.dnscache.domainServers¶
Table of {hostname: server} pairs to use as authoritative servers for hosts (and subhosts). If entry for @ is not specified predefined list of root servers is used.
Type: attribute set of list of stringss
Default: ``{
}``
Example:
{ @ = [ "8.8.8.8" "8.8.4.4" ] ; example.com = [ "192.168.100.100" ] ; }Declared by:
services.dnscache.forwardOnly¶
Whether to treat root servers (for @) as caching servers, requesting addresses the same way a client does. This is needed if you want to use e.g. Google DNS as your upstream DNS.
Type: boolean
Default:
falseDeclared by:
services.dnscache.ip¶
IP address on which to listen for connections.
Type: string
Default:
"0.0.0.0"Declared by:
services.dnschain.enable¶
Whether to enable DNSChain, a blockchain based DNS + HTTP server. To resolve .bit domains set
services.namecoind.enable = true;and an RPC username/password. .Type: boolean
Default:
falseExample:
trueDeclared by:
services.dnschain.api.hostname¶
The hostname (or IP address) the DNSChain API server will bind to.
Type: string
Default:
"0.0.0.0"Declared by:
services.dnschain.api.port¶
The port the DNSChain API server (HTTP) will bind to.
Type: signed integer
Default:
8080Declared by:
services.dnschain.api.tlsPort¶
The port the DNSChain API server (HTTPS) will bind to.
Type: signed integer
Default:
4433Declared by:
services.dnschain.dns.address¶
The IP address the DNSChain resolver will bind to. Leave this unchanged if you do not wish to directly expose the resolver.
Type: string
Default:
"127.0.0.1"Declared by:
services.dnschain.dns.externalAddress¶
The IP address used by clients to reach the resolver and the value of the
namecoin.dnsrecord. Set this in case the bind address is not the actual IP address (e.g. the machine is behind a NAT).Type: string
Default:
"127.0.0.1"Declared by:
services.dnschain.dns.port¶
The port the DNSChain resolver will bind to.
Type: signed integer
Default:
5333Declared by:
services.dnschain.extraConfig¶
Additional options that will be appended to the configuration file.
Type: strings concatenated with “\n”
Default:
""Example:
'' [log] level = debug ''Declared by:
services.dnscrypt-proxy2.enable¶
Whether to enable dnscrypt-proxy2.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.dnscrypt-proxy2.configFile¶
Path to TOML config file. See: ` <https://github.com/DNSCrypt/dnscrypt-proxy/blob/master/dnscrypt-proxy/example-dnscrypt-proxy.toml>`_ If this option is set, it will override any configuration done in options.services.dnscrypt-proxy2.settings.
Type: path
Default:
TOML file generated from services.dnscrypt-proxy2.settingsExample:
"/etc/dnscrypt-proxy/dnscrypt-proxy.toml"Declared by:
services.dnscrypt-proxy2.settings¶
Attrset that is converted and passed as TOML config file. For available params, see: ` <https://github.com/DNSCrypt/dnscrypt-proxy/blob/master/dnscrypt-proxy/example-dnscrypt-proxy.toml>`_
Type: attribute set
Default: ``{
}``
Example:
{ sources.public-resolvers = { urls = [ "https://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md" ]; cache_file = "public-resolvers.md"; minisign_key = "RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3"; refresh_delay = 72; }; }Declared by:
services.dnscrypt-wrapper.enable¶
Whether to enable DNSCrypt wrapper.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.dnscrypt-wrapper.address¶
The DNSCrypt wrapper will bind to this IP address.
Type: string
Default:
"127.0.0.1"Declared by:
services.dnscrypt-wrapper.keys.checkInterval¶
The time interval (in minutes) between key expiration checks.
Type: signed integer
Default:
1440Declared by:
services.dnscrypt-wrapper.keys.expiration¶
The duration (in days) of the time-limited secret key. This will be automatically rotated before expiration.
Type: signed integer
Default:
30Declared by:
services.dnscrypt-wrapper.port¶
The DNSCrypt wrapper will listen for DNS queries on this port.
Type: signed integer
Default:
5353Declared by:
services.dnscrypt-wrapper.providerName¶
The name that will be given to this DNSCrypt resolver. Note: the resolver name must start with
2.dnscrypt-cert..Type: string
Default:
"2.dnscrypt-cert.nixos"Example:
"2.dnscrypt-cert.myresolver"Declared by:
services.dnscrypt-wrapper.upstream.address¶
The IP address of the upstream DNS server DNSCrypt will “wrap”.
Type: string
Default:
"127.0.0.1"Declared by:
services.dnscrypt-wrapper.upstream.port¶
The port of the upstream DNS server DNSCrypt will “wrap”.
Type: signed integer
Default:
53Declared by:
services.dnsdist.enable¶
Whether to enable dnsdist domain name server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.dnsdist.extraConfig¶
Extra lines to be added verbatim to dnsdist.conf.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.dnsdist.listenAddress¶
Listen IP Address
Type: string
Default:
"0.0.0.0"Declared by:
services.dnsdist.listenPort¶
Listen port
Type: signed integer
Default:
53Declared by:
services.dnsmasq.enable¶
Whether to run dnsmasq.
Type: boolean
Default:
falseDeclared by:
services.dnsmasq.alwaysKeepRunning¶
If enabled, systemd will always respawn dnsmasq even if shut down manually. The default, disabled, will only restart it on error.
Type: boolean
Default:
falseDeclared by:
services.dnsmasq.extraConfig¶
Extra configuration directives that should be added to``dnsmasq.conf``.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.dnsmasq.resolveDNSChainQueries¶
Resolve
.bittop-level domains using DNSChain and namecoin.Type: boolean
Default:
falseDeclared by:
services.dnsmasq.resolveLocalQueries¶
Whether dnsmasq should resolve local queries (i.e. add 127.0.0.1 to /etc/resolv.conf).
Type: boolean
Default:
trueDeclared by:
services.dnsmasq.servers¶
The DNS servers which dnsmasq should query.
Type: list of strings
Default: ``[
]``
Example:
[ "8.8.8.8" "8.8.4.4" ]Declared by:
services.do-agent.enable¶
Whether to enable do-agent, the DigitalOcean droplet metrics agent.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.dockerRegistry.enable¶
Whether to enable Docker Registry.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.dockerRegistry.enableDelete¶
Enable delete for manifests and blobs.
Type: boolean
Default:
falseDeclared by:
services.dockerRegistry.enableGarbageCollect¶
Whether to enable garbage collect.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.dockerRegistry.enableRedisCache¶
Whether to enable redis as blob cache.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.dockerRegistry.extraConfig¶
Docker extra registry configuration via environment variables.
Type: attribute set
Default: ``{
}``
Declared by:
services.dockerRegistry.garbageCollectDates¶
Specification (in the format described bysystemd.time7) of the time at which the garbage collect will occur.
Type: string
Default:
"daily"Declared by:
services.dockerRegistry.listenAddress¶
Docker registry host or ip to bind to.
Type: string
Default:
"127.0.0.1"Declared by:
services.dockerRegistry.port¶
Docker registry port to bind to.
Type: signed integer
Default:
5000Declared by:
services.dockerRegistry.redisPassword¶
Set redis password.
Type: string
Default:
""Declared by:
services.dockerRegistry.redisUrl¶
Set redis host and port.
Type: string
Default:
"localhost:6379"Declared by:
services.dockerRegistry.storagePath¶
Docker registry storage path for the filesystem storage backend. Set to null to configure another backend via extraConfig.
Type: null or path
Default:
"/var/lib/docker-registry"Declared by:
services.documize.enable¶
Whether to enable Documize Wiki.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.documize.package¶
Which package to use for documize.
Type: package
Default:
*(build of documize-community-3.7.0)*Declared by:
services.documize.cert¶
The
cert.pemfile used for https.Type: null or string
Default:
nullDeclared by:
services.documize.db¶
Database specific connection string for example:
- MySQL/Percona/MariaDB:
user:password@tcp(host:3306)/documize- MySQLv8+:
user:password@tcp(host:3306)/documize?allowNativePasswords=true- PostgreSQL:
host=localhost port=5432 dbname=documize user=admin password=secret sslmode=disable- MSSQL:
sqlserver://username:password@localhost:1433?database=Documizeorsqlserver://sa@localhost/SQLExpress?database=DocumizeType: string
Declared by:
services.documize.dbtype¶
Specify the database provider:
mysql,percona,mariadb,postgresql,sqlserverType: one of “mysql”, “percona”, “mariadb”, “postgresql”, “sqlserver”
Default:
"postgresql"Declared by:
services.documize.forcesslport¶
Redirect given http port number to TLS.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
nullDeclared by:
services.documize.key¶
The
key.pemfile used for https.Type: null or string
Default:
nullDeclared by:
services.documize.location¶
reserved
Type: null or string
Default:
nullDeclared by:
services.documize.offline¶
Set
truefor offline mode.Type: boolean
Default:
falseDeclared by:
services.documize.port¶
The http/https port number.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
5001Declared by:
services.documize.salt¶
The salt string used to encode JWT tokens, if not set a random value will be generated.
Type: null or string
Default:
nullExample:
"3edIYV6c8B28b19fh"Declared by:
services.documize.stateDirectoryName¶
The name of the directory below
/var/lib/privatewhere documize runs in and stores, for example, backups.Type: string
Default:
"documize"Declared by:
services.dokuwiki.enable¶
Whether to enable DokuWiki web application..
Type: boolean
Default:
falseExample:
trueDeclared by:
services.dokuwiki.acl¶
Access Control Lists: see ` <https://www.dokuwiki.org/acl>`_ Mutually exclusive with services.dokuwiki.aclFile Set this to a value other than null to take precedence over aclFile option.
Type: null or strings concatenated with “\n”
Default:
nullExample:
"* @ALL 8"Declared by:
services.dokuwiki.aclFile¶
Location of the dokuwiki acl rules. Mutually exclusive with services.dokuwiki.acl Mutually exclusive with services.dokuwiki.acl which is preferred. Consult documentation ` <https://www.dokuwiki.org/acl>`_ for further instructions. Example: ` <https://github.com/splitbrain/dokuwiki/blob/master/conf/acl.auth.php.dist>`_
Type: null or path
Default:
nullDeclared by:
services.dokuwiki.aclUse¶
Necessary for users to log in into the system. Also limits anonymous users. When disabled, everyone is able to create and edit content.
Type: boolean
Default:
trueDeclared by:
services.dokuwiki.extraConfig¶
DokuWiki configuration. Refer to` <https://www.dokuwiki.org/config>`_ for details on supported values.
Type: null or strings concatenated with “\n”
Default:
nullExample:
'' $conf['title'] = 'My Wiki'; $conf['userewrite'] = 1; ''Declared by:
services.dokuwiki.hostName¶
FQDN for the instance.
Type: string
Default:
"localhost"Declared by:
services.dokuwiki.nginx¶
With this option, you can customize the nginx virtualHost which already has sensible defaults for DokuWiki.
Type: submodule
Default:
{ enableACME = true; forceSSL = true; }Example:
{ enableACME = false; serverAliases = [ "wiki.\\${config.networking.domain}" ] ; }Declared by:
services.dokuwiki.nginx.enableACME¶
Whether to ask Let’s Encrypt to sign a certificate for this vhost. Alternately, you can use an existing certificate through .
Type: boolean
Default:
trueDeclared by:
services.dokuwiki.nginx.acmeFallbackHost¶
Host which to proxy requests to if acme challenge is not found. Useful if you want multiple hosts to be able to verify the same domain name.
Type: null or string
Default:
nullDeclared by:
services.dokuwiki.nginx.acmeRoot¶
Directory for the acme challenge which is PUBLIC, don’t put certs or keys in here
Type: string
Default:
"/var/lib/acme/acme-challenge"Declared by:
services.dokuwiki.nginx.addSSL¶
Whether to enable HTTPS in addition to plain HTTP. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443).
Type: boolean
Default:
falseDeclared by:
services.dokuwiki.nginx.basicAuth¶
Basic Auth protection for a vhost.
WARNING: This is implemented to store the password in plain text in the nix store.
Type: attribute set of strings
Default: ``{
}``
Example:
{ user = "password"; };Declared by:
services.dokuwiki.nginx.basicAuthFile¶
Basic Auth password file for a vhost. Can be created via: htpasswd -c <filename> <username>
Type: null or path
Default:
nullDeclared by:
services.dokuwiki.nginx.default¶
Makes this vhost the default.
Type: boolean
Default:
falseDeclared by:
services.dokuwiki.nginx.extraConfig¶
These lines go to the end of the vhost verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.dokuwiki.nginx.forceSSL¶
Whether to add a separate nginx server block that permanently redirects (301) all plain HTTP traffic to HTTPS. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443), where the non-SSL listens are used for the redirect vhosts.
Type: boolean
Default:
trueDeclared by:
services.dokuwiki.nginx.globalRedirect¶
If set, all requests for this host are redirected permanently to the given hostname.
Type: null or string
Default:
nullExample:
"newserver.example.org"Declared by:
services.dokuwiki.nginx.http2¶
Whether to enable HTTP 2. Note that (as of writing) due to nginx’s implementation, to disable HTTP 2 you have to disable it on all vhosts that use a given IP address / port. If there is one server block configured to enable http2,then it is enabled for all server blocks on this IP. See https://stackoverflow.com/a/39466948/263061.
Type: boolean
Default:
trueDeclared by:
services.dokuwiki.nginx.listen¶
Listen addresses and ports for this virtual host. IPv6 addresses must be enclosed in square brackets. Note: this option overrides
addSSLandonlySSL.Type: list of submodules
Default: ``[
]``
Example: ``[
{ addr = “195.154.1.1”; port = 443; ssl = true; }
{ addr = “192.154.1.1”; port = 80; }
]``
Declared by:
services.dokuwiki.nginx.listen.*.addr¶
services.dokuwiki.nginx.listen.*.extraParameters¶
Extra parameters of this listen directive.
Type: list of strings
Default: ``[
]``
Example:
[ "reuseport" "deferred" ]Declared by:
services.dokuwiki.nginx.listen.*.port¶
Port number.
Type: signed integer
Default:
80Declared by:
services.dokuwiki.nginx.listen.*.ssl¶
Enable SSL.
Type: boolean
Default:
falseDeclared by:
services.dokuwiki.nginx.locations¶
Declarative location config
Type: attribute set of submodules
Default: ``{
}``
Example:
{ "/" = { proxyPass = "http://localhost:3000"; }; };Declared by:
services.dokuwiki.nginx.locations.<name>.alias¶
Alias directory for requests.
Type: null or path
Default:
nullExample:
"/your/alias/directory"Declared by:
services.dokuwiki.nginx.locations.<name>.extraConfig¶
These lines go to the end of the location verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.dokuwiki.nginx.locations.<name>.index¶
Adds index directive.
Type: null or string
Default:
nullExample:
"index.php index.html"Declared by:
services.dokuwiki.nginx.locations.<name>.priority¶
Order of this location block in relation to the others in the vhost. The semantics are the same as with `lib.mkOrder`. Smaller values have a greater priority.
Type: signed integer
Default:
1000Declared by:
services.dokuwiki.nginx.locations.<name>.proxyPass¶
Adds proxy_pass directive and sets recommended proxy headers if recommendedProxySettings is enabled.
Type: null or string
Default:
nullExample:
"http://www.example.org/"Declared by:
services.dokuwiki.nginx.locations.<name>.proxyWebsockets¶
Whether to supporty proxying websocket connections with HTTP/1.1.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.dokuwiki.nginx.locations.<name>.return¶
Adds a return directive, for e.g. redirections.
Type: null or string
Default:
nullExample:
"301 http://example.com\\$request_uri"Declared by:
services.dokuwiki.nginx.locations.<name>.root¶
Root directory for requests.
Type: null or path
Default:
nullExample:
"/your/root/directory"Declared by:
services.dokuwiki.nginx.locations.<name>.tryFiles¶
Adds try_files directive.
Type: null or string
Default:
nullExample:
"\\$uri =404"Declared by:
services.dokuwiki.nginx.onlySSL¶
Whether to enable HTTPS and reject plain HTTP connections. This will set defaults for
listento listen on all interfaces on port 443.Type: boolean
Default:
falseDeclared by:
services.dokuwiki.nginx.root¶
The path of the web root directory.
Type: null or path
Default:
nullExample:
"/data/webserver/docs"Declared by:
services.dokuwiki.nginx.serverAliases¶
Additional names of virtual hosts served by this virtual host configuration.
Type: list of strings
Default: ``[
]``
Example:
[ "www.example.org" "example.org" ]Declared by:
services.dokuwiki.nginx.serverName¶
Name of this virtual host. Defaults to attribute name in virtualHosts.
Type: null or string
Default:
nullExample:
"example.org"Declared by:
services.dokuwiki.nginx.sslCertificate¶
Path to server SSL certificate.
Type: path
Example:
"/var/host.cert"Declared by:
services.dokuwiki.nginx.sslCertificateKey¶
Path to server SSL certificate key.
Type: path
Example:
"/var/host.key"Declared by:
services.dokuwiki.nginx.sslTrustedCertificate¶
Path to root SSL certificate for stapling and client certificates.
Type: null or path
Default:
nullExample:
"/var/root.cert"Declared by:
services.dokuwiki.nginx.useACMEHost¶
A host of an existing Let’s Encrypt certificate to use. This is useful if you have many subdomains and want to avoid hitting the`rate limit <https://letsencrypt.org/docs/rate-limits/>`_. Alternately, you can generate a certificate through .*Note that this option does not create any certificates, nor it does add subdomains to existing ones – you will need to create them manually using security.acme.certs.*
Type: null or string
Default:
nullDeclared by:
services.dokuwiki.pluginsConfig¶
List of the dokuwiki (un)loaded plugins.
Type: strings concatenated with “\n”
Default:
'' $plugins['authad'] = 0; $plugins['authldap'] = 0; $plugins['authmysql'] = 0; $plugins['authpgsql'] = 0; ''Declared by:
services.dokuwiki.poolConfig¶
Options for the dokuwiki PHP pool. See the documentation on
php-fpm.conffor details on configuration directives.Type: attribute set of string or signed integer or booleans
Default:
{ pm = "dynamic"; pm.max_children = 32; pm.max_requests = 500; pm.max_spare_servers = 4; pm.min_spare_servers = 2; pm.start_servers = 2; }Declared by:
services.dokuwiki.stateDir¶
Location of the dokuwiki state directory.
Type: path
Default:
"/var/lib/dokuwiki/data"Declared by:
services.dokuwiki.superUser¶
You can set either a username, a list of usernames (“admin1,admin2”), or the name of a group by prepending an @ char to the groupname Consult documentation ` <https://www.dokuwiki.org/config:superuser>`_ for further instructions.
Type: null or string
Default:
"@admin"Declared by:
services.dokuwiki.usersFile¶
Location of the dokuwiki users file. List of users. Format: login:passwordhash:Real Name:email:groups,comma,separated Create passwordHash easily by using:$ mkpasswd -5 password `pwgen 8 1` Example: ` <https://github.com/splitbrain/dokuwiki/blob/master/conf/users.auth.php.dist>`_
Type: null or path
Default:
nullDeclared by:
services.dovecot2.enable¶
Whether to enable Dovecot 2.x POP3/IMAP server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.dovecot2.enableImap¶
Start the IMAP listener (when Dovecot is enabled).
Type: boolean
Default:
trueDeclared by:
services.dovecot2.enableLmtp¶
Start the LMTP listener (when Dovecot is enabled).
Type: boolean
Default:
falseDeclared by:
services.dovecot2.enablePAM¶
Whether to create a own Dovecot PAM service and configure PAM user logins.
Type: boolean
Default:
trueDeclared by:
services.dovecot2.enablePop3¶
Start the POP3 listener (when Dovecot is enabled).
Type: boolean
Default:
falseDeclared by:
services.dovecot2.enableQuota¶
Whether to enable the dovecot quota service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.dovecot2.configFile¶
Config file used for the whole dovecot configuration.
Type: null or path
Default:
nullDeclared by:
services.dovecot2.createMailUser¶
Whether to automatically create the user given in and the group given in .
Type: boolean
Default:
trueDeclared by:
services.dovecot2.extraConfig¶
Additional entries to put verbatim into Dovecot’s config file.
Type: strings concatenated with “\n”
Default:
""Example:
"mail_debug = yes"Declared by:
services.dovecot2.group¶
Dovecot group name.
Type: string
Default:
"dovecot2"Declared by:
services.dovecot2.mailGroup¶
Default group to store mail for virtual users.
Type: null or string
Default:
nullDeclared by:
services.dovecot2.mailLocation¶
Location that dovecot will use for mail folders. Dovecot mail_location option.
Type: string
Default:
"maildir:/var/spool/mail/%u"Example:
"maildir:~/mail:INBOX=/var/spool/mail/%u"Declared by:
services.dovecot2.mailUser¶
Default user to store mail for virtual users.
Type: null or string
Default:
nullDeclared by:
services.dovecot2.mailboxes¶
services.dovecot2.mailboxes.*.auto¶
Whether to automatically create or create and subscribe to the mailbox or not.
Type: one of “no”, “create”, “subscribe”
Default:
"no"Example:
"subscribe"Declared by:
services.dovecot2.mailboxes.*.name¶
The name of the mailbox.
Type: string matching the pattern [^”]+
Example:
"Spam"Declared by:
services.dovecot2.mailboxes.*.specialUse¶
Null if no special use flag is set. Other than that every use flag mentioned in the RFC is valid.
Type: null or one of “All”, “Archive”, “Drafts”, “Flagged”, “Junk”, “Sent”, “Trash”
Default:
nullExample:
"Junk"Declared by:
services.dovecot2.modules¶
Symlinks the contents of lib/dovecot of every given package into /etc/dovecot/modules. This will make the given modules available if a dovecot package with the module_dir patch applied is being used.
Type: list of packages
Default: ``[
]``
Example:
[ pkgs.dovecot_pigeonhole ]Declared by:
services.dovecot2.protocols¶
Additional listeners to start when Dovecot is enabled.
Type: list of strings
Default: ``[
]``
Declared by:
services.dovecot2.quotaGlobalPerUser¶
Quota limit for the user in bytes. Supports suffixes b, k, M, G, T and %.
Type: string
Default:
"100G"Example:
"10G"Declared by:
services.dovecot2.quotaPort¶
The Port the dovecot quota service binds to. If using postfix, add check_policy_service inet:localhost:12340 to your smtpd_recipient_restrictions in your postfix config.
Type: string
Default:
"12340"Declared by:
services.dovecot2.showPAMFailure¶
Show the PAM failure message on authentication error (useful for OTPW).
Type: boolean
Default:
falseDeclared by:
services.dovecot2.sieveScripts¶
Sieve scripts to be executed. Key is a sequence, e.g. ‘before2’, ‘after’ etc.
Type: attribute set of paths
Default: ``{
}``
Declared by:
services.dovecot2.sslCACert¶
Path to the server’s CA certificate key.
Type: null or string
Default:
nullDeclared by:
services.dovecot2.sslServerCert¶
Path to the server’s public key.
Type: null or string
Default:
nullDeclared by:
services.dovecot2.sslServerKey¶
Path to the server’s private key.
Type: null or string
Default:
nullDeclared by:
services.dovecot2.user¶
Dovecot user name.
Type: string
Default:
"dovecot2"Declared by:
services.drbd.enable¶
Whether to enable support for DRBD, the Distributed Replicated Block Device.
Type: boolean
Default:
falseDeclared by:
services.drbd.config¶
Contents of the
drbd.confconfiguration file.Type: strings concatenated with “\n”
Default:
""Declared by:
services.dspam.enable¶
Whether to enable the dspam spam filter.
Type: boolean
Default:
falseDeclared by:
services.dspam.domainSocket¶
Path to local domain socket which is used for communication with the daemon. Set to null to disable UNIX socket.
Type: null or path
Default:
"/run/dspam/dspam.sock"Declared by:
services.dspam.extraConfig¶
Additional dspam configuration.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.dspam.group¶
Group for the dspam daemon.
Type: string
Default:
"dspam"Declared by:
services.dspam.maintenanceInterval¶
If set, maintenance script will be run at specified (in systemd.timer format) interval
Type: null or string
Default:
nullDeclared by:
services.dspam.storageDriver¶
Storage driver backend to use for dspam.
Type: string
Default:
"hash"Declared by:
services.dspam.user¶
User for the dspam daemon.
Type: string
Default:
"dspam"Declared by:
services.duplicati.enable¶
Whether to enable Duplicati.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.duplicati.interface¶
Listening interface for the web UI Set it to “any” to listen on all available interfaces
Type: string
Default:
"127.0.0.1"Declared by:
services.duplicati.port¶
Port serving the web interface
Type: signed integer
Default:
8200Declared by:
services.duplicati.user¶
Duplicati runs as it’s own user. It will only be able to backup world-readable files. Run as root with special care.
Type: string
Default:
"duplicati"Declared by:
services.duplicity.enable¶
Whether to enable backups with duplicity.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.duplicity.exclude¶
List of paths to exclude from backups. See the FILE SELECTION section induplicity1 for details on the syntax.
Type: list of strings
Default: ``[
]``
Declared by:
services.duplicity.extraFlags¶
Extra command-line flags passed to duplicity. Seeduplicity1.
Type: list of strings
Default: ``[
]``
Example:
[ "--full-if-older-than" "1M" ]Declared by:
services.duplicity.frequency¶
Run duplicity with the given frequency (seesystemd.time7 for the format). If null, do not run automatically.
Type: null or string
Default:
"daily"Declared by:
services.duplicity.include¶
List of paths to include into the backups. See the FILE SELECTION section in duplicity1 for details on the syntax.
Type: list of strings
Default: ``[
]``
Example:
[ "/home" ]Declared by:
services.duplicity.root¶
Root directory to backup.
Type: path
Default:
"/"Declared by:
services.duplicity.secretFile¶
Path of a file containing secrets (gpg passphrase, access key…) in the format of EnvironmentFile as described bysystemd.exec5. For example:
PASSPHRASE=*...* AWS_ACCESS_KEY_ID=*...* AWS_SECRET_ACCESS_KEY=*...*Type: null or path
Default:
nullDeclared by:
services.duplicity.targetUrl¶
Target url to backup to. See the URL FORMAT section induplicity1 for supported urls.
Type: string
Example:
"s3://host:port/prefix"Declared by:
services.dwm-status.enable¶
Whether to enable dwm-status user service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.dwm-status.package¶
Which dwm-status package to use.
Type: package
Default:
"pkgs.dwm-status"Example:
"pkgs.dwm-status.override { enableAlsaUtils = false; }"Declared by:
services.dwm-status.extraConfig¶
Extra config in TOML format.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.dwm-status.order¶
List of enabled features in order.
Type: list of one of “audio”, “backlight”, “battery”, “cpu_load”, “network”, “time”s
Declared by:
services.earlyoom.enable¶
Enable early out of memory killing.
Type: boolean
Default:
falseDeclared by:
services.earlyoom.enableDebugInfo¶
Enable debugging messages.
Type: boolean
Default:
falseDeclared by:
services.earlyoom.freeMemThreshold¶
Minimum of availabe memory (in percent). If the free memory falls below this threshold and the analog is true for the killing begins.
Type: signed integer
Default:
10Declared by:
services.earlyoom.freeSwapThreshold¶
Minimum of availabe swap space (in percent). If the available swap space falls below this threshold and the analog is true for the killing begins.
Type: signed integer
Default:
10Declared by:
services.earlyoom.ignoreOOMScoreAdjust¶
Ignore oom_score_adjust values of processes. User-space implementation only.
Type: boolean
Default:
falseDeclared by:
services.earlyoom.notificationsCommand¶
Command used to send notifications.
See README for details.
Type: null or string
Default:
nullExample:
"sudo -u example_user DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send"Declared by:
services.earlyoom.useKernelOOMKiller¶
Use kernel OOM killer instead of own user-space implementation.
Type: boolean
Default:
falseDeclared by:
services.ecs-agent.enable¶
Whether to enable Amazon ECS agent.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.ecs-agent.package¶
The ECS agent package to use
Type: path
Default:
"pkgs.ecs-agent"Declared by:
services.ecs-agent.extra-environment¶
The environment the ECS agent should run with. See the ECS agent documentation for keys that work here.
Type: attribute set of strings
Default: ``{
}``
Declared by:
services.ejabberd.enable¶
Whether to enable ejabberd server
Type: boolean
Default:
falseDeclared by:
services.ejabberd.package¶
ejabberd server package to use
Type: package
Default:
"pkgs.ejabberd"Declared by:
services.ejabberd.configFile¶
Configuration file for ejabberd in YAML format
Type: null or path
Default:
nullDeclared by:
services.ejabberd.ctlConfig¶
Configuration of ejabberdctl
Type: strings concatenated with “\n”
Default:
""Declared by:
services.ejabberd.group¶
Group under which ejabberd is ran
Type: string
Default:
"ejabberd"Declared by:
services.ejabberd.imagemagick¶
Add ImageMagick to server’s path; allows for image thumbnailing
Type: boolean
Default:
falseDeclared by:
services.ejabberd.loadDumps¶
Configuration dumps that should be loaded on the first startup
Type: list of paths
Default: ``[
]``
Example:
[ ./myejabberd.dump ]Declared by:
services.ejabberd.logsDir¶
Location of the logfile directory of ejabberd
Type: path
Default:
"/var/log/ejabberd"Declared by:
services.ejabberd.spoolDir¶
Location of the spooldir of ejabberd
Type: path
Default:
"/var/lib/ejabberd"Declared by:
services.ejabberd.user¶
User under which ejabberd is ran
Type: string
Default:
"ejabberd"Declared by:
services.elasticsearch.enable¶
Whether to enable elasticsearch.
Type: boolean
Default:
falseDeclared by:
services.elasticsearch.package¶
Elasticsearch package to use.
Type: package
Default:
"pkgs.elasticsearch"Declared by:
services.elasticsearch.cluster_name¶
Elasticsearch name that identifies your cluster for auto-discovery.
Type: string
Default:
"elasticsearch"Declared by:
services.elasticsearch.dataDir¶
Data directory for elasticsearch.
Type: path
Default:
"/var/lib/elasticsearch"Declared by:
services.elasticsearch.extraCmdLineOptions¶
Extra command line options for the elasticsearch launcher.
Type: list of strings
Default: ``[
]``
Declared by:
services.elasticsearch.extraConf¶
Extra configuration for elasticsearch.
Type: string
Default:
""Example:
'' node.name: "elasticsearch" node.master: true node.data: false ''Declared by:
services.elasticsearch.extraJavaOptions¶
Extra command line options for Java.
Type: list of strings
Default: ``[
]``
Example:
[ "-Djava.net.preferIPv4Stack=true" ]Declared by:
services.elasticsearch.listenAddress¶
Elasticsearch listen address.
Type: string
Default:
"127.0.0.1"Declared by:
services.elasticsearch.logging¶
Elasticsearch logging configuration.
Type: string
Default:
'' logger.action.name = org.elasticsearch.action logger.action.level = info appender.console.type = Console appender.console.name = console appender.console.layout.type = PatternLayout appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n rootLogger.level = info rootLogger.appenderRef.console.ref = console ''Declared by:
services.elasticsearch.plugins¶
Extra elasticsearch plugins
Type: list of packages
Default: ``[
]``
Example:
[ pkgs.elasticsearchPlugins.discovery-ec2 ]Declared by:
services.elasticsearch.port¶
Elasticsearch port to listen for HTTP traffic.
Type: signed integer
Default:
9200Declared by:
services.elasticsearch.tcp_port¶
Elasticsearch port for the node to node communication.
Type: signed integer
Default:
9300Declared by:
services.elasticsearch-curator.enable¶
Whether to enable elasticsearch curator.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.elasticsearch-curator.actionYAML¶
curator action.yaml file contents, alternatively use curator-cli which takes a simple action command
Type: unspecified
Example:
'' --- actions: 1: action: delete_indices description: >- Delete indices older than 45 days (based on index name), for logstash- prefixed indices. Ignore the error if the filter does not result in an actionable list of indices (ignore_empty_list) and exit cleanly. options: ignore_empty_list: True disable_action: False filters: - filtertype: pattern kind: prefix value: logstash- - filtertype: age source: name direction: older timestring: '%Y.%m.%d' unit: days unit_count: 45 ''Declared by:
services.elasticsearch-curator.hosts¶
a list of elasticsearch hosts to connect to
Type: list of strings
Default:
[ "localhost" ]Declared by:
services.elasticsearch-curator.interval¶
The frequency to run curator, a systemd.time such as ‘hourly’
Type: string
Default:
"hourly"Declared by:
services.elasticsearch-curator.port¶
the port that elasticsearch is listening on
Type: signed integer
Default:
9200Declared by:
services.emacs.enable¶
Whether to enable a user service for the Emacs daemon. Use
emacsclientto connect to the daemon. Iftrue,services.emacs.installis consideredtrue, whatever its value.Type: boolean
Default:
falseDeclared by:
services.emacs.package¶
emacs derivation to use.
Type: package
Default:
"pkgs.emacs"Declared by:
services.emacs.defaultEditor¶
When enabled, configures emacsclient to be the default editor using the EDITOR environment variable.
Type: boolean
Default:
falseDeclared by:
services.emacs.install¶
Whether to install a user service for the Emacs daemon. Once the service is started, use emacsclient to connect to the daemon.
The service must be manually started for each user with “systemctl –user start emacs” or globally through``services.emacs.enable``.
Type: boolean
Default:
falseDeclared by:
services.epmd.enable¶
Whether to enable socket activation for Erlang Port Mapper Daemon (epmd), which acts as a name server on all hosts involved in distributed Erlang computations.
Type: boolean
Default:
falseDeclared by:
services.epmd.package¶
The Erlang package to use to get epmd binary. That way you can re-use an Erlang runtime that is already installed for other purposes.
Type: package
Default:
*(build of erlang-22.1.7)*Declared by:
services.errbot.instances¶
services.errbot.instances.<name>.admins¶
services.errbot.instances.<name>.backend¶
Errbot backend name.
Type: string
Default:
"XMPP"Declared by:
services.errbot.instances.<name>.dataDir¶
Data directory for errbot instance.
Type: null or path
Default:
nullDeclared by:
services.errbot.instances.<name>.extraConfig¶
String to be appended to the config verbatim
Type: strings concatenated with “\n”
Default:
""Declared by:
services.errbot.instances.<name>.identity¶
Errbot identity configuration
Type: attribute set
Declared by:
services.errbot.instances.<name>.logLevel¶
Errbot log level
Type: string
Default:
"INFO"Declared by:
services.errbot.instances.<name>.plugins¶
services.etcd.enable¶
Whether to enable etcd.
Type: boolean
Default:
falseDeclared by:
services.etcd.advertiseClientUrls¶
Etcd list of this member’s client URLs to advertise to the rest of the cluster.
Type: list of strings
Default:
[ "http://127.0.0.1:2379" ]Declared by:
services.etcd.certFile¶
Cert file to use for clients
Type: null or path
Default:
nullDeclared by:
services.etcd.clientCertAuth¶
Whether to use certs for client authentication
Type: boolean
Default:
falseDeclared by:
services.etcd.dataDir¶
Etcd data directory.
Type: path
Default:
"/var/lib/etcd"Declared by:
services.etcd.discovery¶
Etcd discovery url
Type: string
Default:
""Declared by:
services.etcd.extraConf¶
Etcd extra configuration. See` <https://github.com/coreos/etcd/blob/master/Documentation/op-guide/configuration.md#configuration-flags>`_
Type: attribute set of strings
Default: ``{
}``
Example:
{ "CORS" = "*"; "NAME" = "default-name"; "MAX_RESULT_BUFFER" = "1024"; "MAX_CLUSTER_SIZE" = "9"; "MAX_RETRY_ATTEMPTS" = "3"; }Declared by:
services.etcd.initialAdvertisePeerUrls¶
Etcd list of this member’s peer URLs to advertise to rest of the cluster.
Type: list of strings
Default:
[ "http://127.0.0.1:2380" ]Declared by:
services.etcd.initialCluster¶
Etcd initial cluster configuration for bootstrapping.
Type: list of strings
Default:
[ "nixos=http://127.0.0.1:2380" ]Declared by:
services.etcd.initialClusterState¶
Etcd initial cluster configuration for bootstrapping.
Type: one of “new”, “existing”
Default:
"new"Declared by:
services.etcd.initialClusterToken¶
Etcd initial cluster token for etcd cluster during bootstrap.
Type: string
Default:
"etcd-cluster"Declared by:
services.etcd.keyFile¶
Key file to use for clients
Type: null or path
Default:
nullDeclared by:
services.etcd.listenClientUrls¶
Etcd list of URLs to listen on for client traffic.
Type: list of strings
Default:
[ "http://127.0.0.1:2379" ]Declared by:
services.etcd.listenPeerUrls¶
Etcd list of URLs to listen on for peer traffic.
Type: list of strings
Default:
[ "http://127.0.0.1:2380" ]Declared by:
services.etcd.name¶
Etcd unique node name.
Type: string
Default:
"nixos"Declared by:
services.etcd.peerCertFile¶
Cert file to use for peer to peer communication
Type: null or path
Default:
nullDeclared by:
services.etcd.peerClientCertAuth¶
Whether to check all incoming peer requests from the cluster for valid client certificates signed by the supplied CA
Type: boolean
Default:
falseDeclared by:
services.etcd.peerKeyFile¶
Key file to use for peer to peer communication
Type: null or path
Default:
nullDeclared by:
services.etcd.peerTrustedCaFile¶
Certificate authority file to use for peer to peer communication
Type: null or path
Default:
nullDeclared by:
services.etcd.trustedCaFile¶
Certificate authority file to use for clients
Type: null or path
Default:
nullDeclared by:
services.eternal-terminal.enable¶
Whether to enable Eternal Terminal server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.eternal-terminal.logSize¶
The maximum log size.
Type: signed integer
Default:
20971520Declared by:
services.eternal-terminal.port¶
The port the server should listen on. Will use the server’s default (2022) if not specified.
Make sure to open this port in the firewall if necessary.
Type: signed integer
Default:
2022Declared by:
services.eternal-terminal.silent¶
If enabled, disables all logging.
Type: boolean
Default:
falseDeclared by:
services.eternal-terminal.verbosity¶
The verbosity level (0-9).
Type: one of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Default:
0Declared by:
services.ethminer.enable¶
Enable ethminer ether mining.
Type: boolean
Default:
falseDeclared by:
services.ethminer.apiPort¶
Ethminer api port. minus sign puts api in read-only mode.
Type: signed integer
Default:
-3333Declared by:
services.ethminer.maxPower¶
Miner max watt usage.
Type: signed integer
Default:
113Declared by:
services.ethminer.pool¶
Mining pool address.
Type: string
Example:
"eth-us-east1.nanopool.org"Declared by:
services.ethminer.recheckInterval¶
Interval in milliseconds between farm rechecks.
Type: signed integer
Default:
2000Declared by:
services.ethminer.registerMail¶
Url encoded email address to register with pool.
Type: string
Example:
"email%40example.org"Declared by:
services.ethminer.rig¶
Mining rig name.
Type: string
Default:
"mining-rig-name"Declared by:
services.ethminer.stratumPort¶
Stratum protocol tcp port.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
9999Declared by:
services.ethminer.toolkit¶
Cuda or opencl toolkit.
Type: one of “cuda”, “opencl”
Default:
"cuda"Declared by:
services.ethminer.wallet¶
Ethereum wallet address.
Type: string
Example:
"0x0123456789abcdef0123456789abcdef01234567"Declared by:
services.exhibitor.enable¶
Whether to enable the exhibitor server.
Type: boolean
Default:
falseDeclared by:
services.exhibitor.autoManageInstances¶
Automatically manage ZooKeeper instances in the ensemble
Type: boolean
Default:
falseDeclared by:
services.exhibitor.baseDir¶
Baseline directory for exhibitor runtime config.
Type: string
Default:
"/var/exhibitor"Declared by:
services.exhibitor.configCheckMs¶
Period (ms) to check for shared config updates.
Type: signed integer
Default:
30000Declared by:
services.exhibitor.configType¶
Which configuration type you want to use. Additional config will be required depending on which type you are using.
Type: one of “file”, “s3”, “zookeeper”, “none”
Declared by:
services.exhibitor.extraConf¶
Extra Exhibitor configuration to put in the ZooKeeper config file.
Type: string
Default:
""Declared by:
services.exhibitor.fileSystemBackup¶
Enables file system backup of ZooKeeper log files
Type: boolean
Default:
falseDeclared by:
services.exhibitor.fsConfigDir¶
Directory to store Exhibitor properties (cannot be used with s3config). Exhibitor uses file system locks so you can specify a shared location so as to enable complete ensemble management.
Type: path
Declared by:
services.exhibitor.fsConfigLockPrefix¶
A prefix for a locking mechanism used in conjunction with fsconfigdir
Type: string
Default:
"exhibitor-lock-"Declared by:
services.exhibitor.fsConfigName¶
The name of the file to store config in
Type: string
Default:
"exhibitor.properties"Declared by:
services.exhibitor.headingText¶
Extra text to display in UI header
Type: null or string
Default:
nullDeclared by:
services.exhibitor.hostname¶
Hostname to use and advertise
Type: null or string
Default:
nullDeclared by:
services.exhibitor.jqueryStyle¶
Styling used for the JQuery-based UI.
Type: one of “red”, “black”, “custom”
Default:
"red"Declared by:
services.exhibitor.logLines¶
Max lines of logging to keep in memory for display.
Type: signed integer
Default:
1000Declared by:
services.exhibitor.nodeModification¶
Whether the Explorer UI will allow nodes to be modified (use with caution).
Type: boolean
Default:
trueDeclared by:
services.exhibitor.port¶
The port for exhibitor to listen on and communicate with other exhibitors.
Type: signed integer
Default:
8080Declared by:
services.exhibitor.s3Backup¶
Whether to enable backups to S3
Type: boolean
Default:
falseDeclared by:
services.exhibitor.s3Config.bucketName¶
Bucket name to store config
Type: string
Declared by:
services.exhibitor.s3Config.configPrefix¶
When using AWS S3 shared config files, the prefix to use for values such as locks
Type: string
Default:
"exhibitor-"Declared by:
services.exhibitor.s3Config.objectKey¶
S3 key name to store the config
Type: string
Declared by:
services.exhibitor.s3Credentials¶
Optional credentials to use for s3backup or s3config. Argument is the path to an AWS credential properties file with two properties: com.netflix.exhibitor.s3.access-key-id and com.netflix.exhibitor.s3.access-secret-key
Type: null or path
Default:
nullDeclared by:
services.exhibitor.s3Region¶
Optional region for S3 calls
Type: null or string
Default:
nullDeclared by:
services.exhibitor.servo¶
ZooKeeper will be queried once a minute for its state via the ‘mntr’ four letter word (this requires ZooKeeper 3.4.x+). Servo will be used to publish this data via JMX.
Type: boolean
Default:
falseDeclared by:
services.exhibitor.timeout¶
Connection timeout (ms) for ZK connections.
Type: signed integer
Default:
30000Declared by:
services.exhibitor.zkCleanupPeriod¶
How often (in milliseconds) to run the Zookeeper log cleanup task.
Type: signed integer
Default:
0Declared by:
services.exhibitor.zkClientPort¶
Zookeeper client port
Type: signed integer
Default:
2181Declared by:
services.exhibitor.zkConfigConnect¶
The initial connection string for ZooKeeper shared config storage
Type: list of strings
Example:
[ "host1:2181" "host2:2181" ]Declared by:
services.exhibitor.zkConfigExhibitorPath¶
If the ZooKeeper shared config is also running Exhibitor, the URI path for the REST call
Type: string
Default:
"/"Declared by:
services.exhibitor.zkConfigExhibitorPort¶
If the ZooKeeper shared config is also running Exhibitor, the port that Exhibitor is listening on. IMPORTANT: if this value is not set it implies that Exhibitor is not being used on the ZooKeeper shared config.
Type: null or signed integer
Declared by:
services.exhibitor.zkConfigPollMs¶
The period in ms to check for changes in the config ensemble
Type: signed integer
Default:
10000Declared by:
services.exhibitor.zkConfigRetry.retryQuantity¶
Retries connecting to the ZooKeeper config
Type: signed integer
Default:
3Declared by:
services.exhibitor.zkConfigRetry.sleepMs¶
Retry sleep time connecting to the ZooKeeper config
Type: signed integer
Default:
1000Declared by:
services.exhibitor.zkConfigZPath¶
The base ZPath that Exhibitor should use
Type: string
Example:
"/exhibitor/config"Declared by:
services.exhibitor.zkConnectPort¶
The port to use for followers to talk to each other.
Type: signed integer
Default:
2888Declared by:
services.exhibitor.zkDataDir¶
The Zookeeper data directory
Type: string
Default:
"/var/exhibitor/zkData"Declared by:
services.exhibitor.zkElectionPort¶
The port for Zookeepers to use for leader election.
Type: signed integer
Default:
3888Declared by:
services.exhibitor.zkExtraCfg¶
Extra options to pass into Zookeeper
Type: string
Default:
"initLimit=5&syncLimit=2&tickTime=2000"Declared by:
services.exhibitor.zkLogDir¶
The Zookeeper logs directory
Type: path
Default:
"/var/exhibitor/zkLogs"Declared by:
services.exhibitor.zkServersSpec¶
Zookeeper server spec for all servers in the ensemble.
Type: list of strings
Default: ``[
]``
Example:
[ "S:1:zk1.example.com" "S:2:zk2.example.com" "S:3:zk3.example.com" "O:4:zk-observer.example.com" ]Declared by:
services.exim.enable¶
Whether to enable the Exim mail transfer agent.
Type: boolean
Default:
falseDeclared by:
services.exim.package¶
The Exim derivation to use. This can be used to enable features such as LDAP or PAM support.
Type: package
Default:
"pkgs.exim"Declared by:
services.exim.config¶
Verbatim Exim configuration. This should not contain exim_user, exim_group, exim_path, or spool_directory.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.exim.group¶
Group to use when no root privileges are required.
Type: string
Default:
"exim"Declared by:
services.exim.spoolDir¶
Location of the spool directory of exim.
Type: path
Default:
"/var/spool/exim"Declared by:
services.exim.user¶
User to use when no root privileges are required. In particular, this applies when receiving messages and when doing remote deliveries. (Local deliveries run as various non-root users, typically as the owner of a local mailbox.) Specifying this value as root is not supported.
Type: string
Default:
"exim"Declared by:
services.factorio.enable¶
Whether to enable Factorio.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.factorio.autosave-interval¶
Autosave interval in minutes.
Type: null or signed integer
Default:
nullExample:
10Declared by:
services.factorio.configFile¶
The server’s configuration file.
The default file generated by this module contains lines essential to the server’s operation. Use its contents as a basis for any customizations.
Type: path
Default:
"configFile"Declared by:
services.factorio.description¶
Description of the game that will appear in the listing.
Type: null or string
Default:
""Declared by:
services.factorio.game-name¶
Name of the game as it will appear in the game listing.
Type: null or string
Default:
"Factorio Game"Declared by:
services.factorio.game-password¶
Game password.
Type: null or string
Default:
nullDeclared by:
services.factorio.lan¶
Game will be broadcast on LAN.
Type: boolean
Default:
falseDeclared by:
services.factorio.mods¶
Mods the server should install and activate.
The derivations in this list must “build” the mod by simply copying the .zip, named correctly, into the output directory. Eventually, there will be a way to pull in the most up-to-date list of derivations via nixos-channel. Until then, this is for experts only.
Type: list of packages
Default: ``[
]``
Declared by:
services.factorio.password¶
Your factorio.com login credentials. Required for games with visibility public.
Type: null or string
Default:
nullDeclared by:
services.factorio.port¶
The port to which the service should bind.
This option will also open up the UDP port in the firewall configuration.
Type: signed integer
Default:
34197Declared by:
services.factorio.public¶
Game will be published on the official Factorio matching server.
Type: boolean
Default:
falseDeclared by:
services.factorio.requireUserVerification¶
When set to true, the server will only allow clients that have a valid factorio.com account.
Type: boolean
Default:
trueDeclared by:
services.factorio.saveName¶
The name of the savegame that will be used by the server.
When not present in /var/lib/factorio/saves, a new map with default settings will be generated before starting the service.
Type: string
Default:
"default"Declared by:
services.factorio.stateDirName¶
Name of the directory under /var/lib holding the server’s data.
The configuration and map will be stored here.
Type: string
Default:
"factorio"Declared by:
services.factorio.token¶
Authentication token. May be used instead of ‘password’ above.
Type: null or string
Default:
nullDeclared by:
services.factorio.username¶
Your factorio.com login credentials. Required for games with visibility public.
Type: null or string
Default:
nullDeclared by:
services.fail2ban.enable¶
Whether to enable the fail2ban service.
Type: boolean
Default:
falseDeclared by:
services.fail2ban.package¶
The fail2ban package to use for running the fail2ban service.
Type: package
Default:
*(build of fail2ban-0.11.1)*Example:
"pkgs.fail2ban_0_11"Declared by:
services.fail2ban.packageFirewall¶
The firewall package used by fail2ban service.
Type: package
Default:
*(build of iptables-1.8.4)*Example:
"pkgs.nftables"Declared by:
services.fail2ban.banaction¶
Default banning action (e.g. iptables, iptables-new, iptables-multiport, shorewall, etc) It is used to define action_* variables. Can be overridden globally or per section within jail.local file
Type: string
Default:
"iptables-multiport"Example:
"nftables-multiport"Declared by:
services.fail2ban.banaction-allports¶
Default banning action (e.g. iptables, iptables-new, iptables-multiport, shorewall, etc) It is used to define action_* variables. Can be overridden globally or per section within jail.local file
Type: string
Default:
"iptables-allport"Example:
"nftables-allport"Declared by:
services.fail2ban.bantime-increment.enable¶
Allows to use database for searching of previously banned ip’s to increase a default ban time using special formula, default it is banTime * 1, 2, 4, 8, 16, 32…
Type: boolean
Default:
falseDeclared by:
services.fail2ban.bantime-increment.factor¶
“bantime-increment.factor” is a coefficient to calculate exponent growing of the formula or common multiplier, default value of factor is 1 and with default value of formula, the ban time grows by 1, 2, 4, 8, 16 …
Type: string
Default:
"1"Example:
"4"Declared by:
services.fail2ban.bantime-increment.formula¶
“bantime-increment.formula” used by default to calculate next value of ban time, default value bellow, the same ban time growing will be reached by multipliers 1, 2, 4, 8, 16, 32…
Type: string
Default:
"ban.Time * (1<<(ban.Count if ban.Count<20 else 20)) * banFactor"Example:
"ban.Time * math.exp(float(ban.Count+1)*banFactor)/math.exp(1*banFactor)"Declared by:
services.fail2ban.bantime-increment.maxtime¶
“bantime-increment.maxtime” is the max number of seconds using the ban time can reach (don’t grows further)
Type: string
Default:
"10h"Example:
"48h"Declared by:
services.fail2ban.bantime-increment.multipliers¶
“bantime-increment.multipliers” used to calculate next value of ban time instead of formula, coresponding previously ban count and given “bantime.factor” (for multipliers default is 1); following example grows ban time by 1, 2, 4, 8, 16 … and if last ban count greater as multipliers count, always used last multiplier (64 in example), for factor ‘1’ and original ban time 600 - 10.6 hours
Type: string
Default:
"1 2 4 8 16 32 64"Example:
"2 4 16 128"Declared by:
services.fail2ban.bantime-increment.overalljails¶
“bantime-increment.overalljails” (if true) specifies the search of IP in the database will be executed cross over all jails, if false (dafault), only current jail of the ban IP will be searched
Type: boolean
Default:
falseExample:
trueDeclared by:
services.fail2ban.bantime-increment.rndtime¶
“bantime-increment.rndtime” is the max number of seconds using for mixing with random time to prevent “clever” botnets calculate exact time IP can be unbanned again
Type: string
Default:
"4m"Example:
"8m"Declared by:
services.fail2ban.daemonConfig¶
The contents of Fail2ban’s main configuration file. It’s generally not necessary to change it.
Type: strings concatenated with “\n”
Default:
'' [Definition] logtarget = SYSLOG socket = /run/fail2ban/fail2ban.sock pidfile = /run/fail2ban/fail2ban.pid dbfile = /var/lib/fail2ban/fail2ban.sqlite3 ''Declared by:
services.fail2ban.ignoreIP¶
“ignoreIP” can be a list of IP addresses, CIDR masks or DNS hosts. Fail2ban will not ban a host which matches an address in this list. Several addresses can be defined using space (and/or comma) separator.
Type: list of strings
Default: ``[
]``
Example:
[ "192.168.0.0/16" "2001:DB8::42" ]Declared by:
services.fail2ban.jails¶
The configuration of each Fail2ban “jail”. A jail consists of an action (such as blocking a port using:command:iptables) that is triggered when a filter applied to a log file triggers more than a certain number of times in a certain time period. Actions are defined in
/etc/fail2ban/action.d, while filters are defined in:file:/etc/fail2ban/filter.d.Type: attribute set of strings concatenated with “\n”s
Default: ``{
}``
Example:
{ apache-nohome-iptables = '' # Block an IP address if it accesses a non-existent # home directory more than 5 times in 10 minutes, # since that indicates that it's scanning. filter = apache-nohome action = iptables-multiport[name=HTTP, port="http,https"] logpath = /var/log/httpd/error_log* findtime = 600 bantime = 600 maxretry = 5 ''; }Declared by:
services.fakeroute.enable¶
Whether to enable the fakeroute service.
Type: boolean
Default:
falseDeclared by:
services.fakeroute.route¶
Fake route that will appear after the real one to any host running a traceroute.
Type: list of strings
Default: ``[
]``
Example:
[ "216.102.187.130" "4.0.1.122" "198.116.142.34" "63.199.8.242" ]Declared by:
services.fcgiwrap.enable¶
Whether to enable fcgiwrap, a server for running CGI applications over FastCGI.
Type: boolean
Default:
falseDeclared by:
services.fcgiwrap.group¶
Group permissions for the socket.
Type: null or string
Default:
nullDeclared by:
services.fcgiwrap.preforkProcesses¶
Number of processes to prefork.
Type: signed integer
Default:
1Declared by:
services.fcgiwrap.socketAddress¶
Socket address. In case of a UNIX socket, this should be its filesystem path.
Type: string
Default:
"/run/fcgiwrap.sock"Example:
"1.2.3.4:5678"Declared by:
services.fcgiwrap.socketType¶
Socket type: ‘unix’, ‘tcp’ or ‘tcp6’.
Type: one of “unix”, “tcp”, “tcp6”
Default:
"unix"Declared by:
services.fcgiwrap.user¶
User permissions for the socket.
Type: null or string
Default:
nullDeclared by:
services.fcron.enable¶
Whether to enable the fcron daemon.
Type: boolean
Default:
falseDeclared by:
services.fcron.allow¶
Users allowed to use fcrontab and fcrondyn (one name per line,
allfor everyone).Type: list of strings
Default:
[ "all" ]Declared by:
services.fcron.deny¶
services.fcron.maxSerialJobs¶
Maximum number of serial jobs which can run simultaneously.
Type: signed integer
Default:
1Declared by:
services.fcron.queuelen¶
Number of jobs the serial queue and the lavg queue can contain.
Type: null or signed integer
Default:
nullDeclared by:
services.fcron.systab¶
The “system” crontab contents.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.felix.enable¶
Whether to enable the Apache Felix OSGi service
Type: unspecified
Default:
falseDeclared by:
services.felix.bundles¶
List of bundles that should be activated on startup
Type: list of packages
Default:
"[ pkgs.felix_remoteshell ]"Declared by:
services.felix.group¶
Group account under which Apache Felix runs.
Type: unspecified
Default:
"osgi"Declared by:
services.felix.user¶
User account under which Apache Felix runs.
Type: unspecified
Default:
"osgi"Declared by:
services.ferm.enable¶
Whether to enable Ferm Firewall. *Warning*: Enabling this service WILL disable the existing NixOS firewall! Default firewall rules provided by packages are not considered at the moment.
Type: boolean
Default:
falseDeclared by:
services.ferm.package¶
The ferm package.
Type: package
Default:
"pkgs.ferm"Declared by:
services.ferm.config¶
Verbatim ferm.conf configuration.
Type: strings concatenated with “\n”
Default:
"empty firewall, allows any traffic"Declared by:
services.firebird.enable¶
Whether to enable the Firebird super server.
Type: unspecified
Default:
falseDeclared by:
services.firebird.package¶
Which firebird derivation to use.
Type: package
Default:
"pkgs.firebirdSuper"Declared by:
services.firebird.baseDir¶
Location containing data/ and system/ directories. data/ stores the databases, system/ stores the password database security2.fdb.
Type: unspecified
Default:
"/var/db/firebird"Declared by:
services.firebird.port¶
Port Firebird uses.
Type: unspecified
Default:
"3050"Declared by:
services.firebird.user¶
User account under which firebird runs.
Type: unspecified
Default:
"firebird"Declared by:
services.firefox.syncserver.enable¶
Whether to enable a Firefox Sync Server, this give the opportunity to Firefox users to store all synchronized data on their own server. To use this server, Firefox users should visit the , and replicate the following change
services.sync.tokenServerURI: http://localhost:5000/token/1.0/sync/1.5where corresponds to the public url of the server.
Type: boolean
Default:
falseDeclared by:
services.firefox.syncserver.allowNewUsers¶
Whether to allow new-user signups on the server. Only request by existing accounts will be honored.
Type: boolean
Default:
trueDeclared by:
services.firefox.syncserver.listen.address¶
Address on which the sync server listen to.
Type: string
Default:
"127.0.0.1"Example:
"0.0.0.0"Declared by:
services.firefox.syncserver.listen.port¶
Port on which the sync server listen to.
Type: signed integer
Default:
5000Declared by:
services.firefox.syncserver.privateConfig¶
The private config file is used to extend the generated config with confidential information, such as the setting if it contains a password, and the setting is used by the server to generate cryptographically-signed authentication tokens.
If this file does not exists, then it is created with a generated settings.
Type: string
Default:
"/etc/firefox/syncserver-secret.ini"Declared by:
services.firefox.syncserver.publicUrl¶
Public URL with which firefox users can use to access the sync server.
Type: string
Default:
"http://localhost:5000/"Example:
"http://sync.example.com/"Declared by:
services.firefox.syncserver.sqlUri¶
The location of the database. This URL is composed of, where is a database name such as, , , etc., and the name of a DBAPI, such as, , , etc. The SQLAlchemy documentation provides more examples and describe the syntax of the expected URL.
Type: string
Default:
"sqlite:////var/db/firefox-sync-server/firefox-sync-server.db"Example:
"postgresql://scott:tiger@localhost/test"Declared by:
services.fireqos.enable¶
If enabled, FireQOS will be launched with the specified configuration given in `config`.
Type: boolean
Default:
falseDeclared by:
services.fireqos.config¶
The FireQOS configuration goes here.
Type: string
Default:
""Example:
'' interface wlp3s0 world-in input rate 10mbit ethernet class web commit 50kbit match tcp ports 80,443 interface wlp3s0 world-out input rate 10mbit ethernet class web commit 50kbit match tcp ports 80,443 ''Declared by:
services.flannel.enable¶
Whether to enable flannel.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.flannel.package¶
Package to use for flannel
Type: package
Default:
"pkgs.flannel.bin"Declared by:
services.flannel.backend¶
Type of backend to use and specific configurations for that backend.
Type: attribute set
Default:
{ Type = "vxlan"; }Declared by:
services.flannel.etcd.caFile¶
Etcd certificate authority file
Type: null or path
Default:
nullDeclared by:
services.flannel.etcd.certFile¶
Etcd cert file
Type: null or path
Default:
nullDeclared by:
services.flannel.etcd.endpoints¶
Etcd endpoints
Type: list of strings
Default:
[ "http://127.0.0.1:2379" ]Declared by:
services.flannel.etcd.keyFile¶
Etcd key file
Type: null or path
Default:
nullDeclared by:
services.flannel.etcd.prefix¶
Etcd key prefix
Type: string
Default:
"/coreos.com/network"Declared by:
services.flannel.iface¶
Interface to use (IP or name) for inter-host communication. Defaults to the interface for the default route on the machine.
Type: null or string
Default:
nullDeclared by:
services.flannel.kubeconfig¶
Path to kubeconfig to use for storing flannel config using the Kubernetes API
Type: null or path
Default:
nullDeclared by:
services.flannel.network¶
IPv4 network in CIDR format to use for the entire flannel network.
Type: string
Declared by:
services.flannel.nodeName¶
Needed when running with Kubernetes as backend as this cannot be auto-detected”;
Type: null or string
Default:
"nixos"Example:
"node1.example.com"Declared by:
services.flannel.publicIp¶
IP accessible by other nodes for inter-host communication. Defaults to the IP of the interface being used for communication.
Type: null or string
Default:
nullDeclared by:
services.flannel.storageBackend¶
Determines where flannel stores its configuration at runtime
Type: one of “etcd”, “kubernetes”
Default:
"etcd"Declared by:
services.flannel.subnetLen¶
The size of the subnet allocated to each host. Defaults to 24 (i.e. /24) unless the Network was configured to be smaller than a /24 in which case it is one less than the network.
Type: signed integer
Default:
24Declared by:
services.flannel.subnetMax¶
The end of IP range which the subnet allocation should start with. Defaults to the last subnet of Network.
Type: null or string
Default:
nullDeclared by:
services.flannel.subnetMin¶
The beginning of IP range which the subnet allocation should start with. Defaults to the first subnet of Network.
Type: null or string
Default:
nullDeclared by:
services.flashpolicyd.enable¶
Whether to enable the Flash Policy server. This is necessary if you want Flash applications to make connections to your server.
Type: unspecified
Default:
falseDeclared by:
services.flashpolicyd.policy¶
The policy to be served. The default is to allow connections from any domain to any port.
Type: unspecified
Default:
'' <?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <site-control permitted-cross-domain-policies="master-only"/> <allow-access-from domain="*" to-ports="*" /> </cross-domain-policy> ''Declared by:
services.flatpak.enable¶
Whether to enable flatpak.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.flexget.enable¶
Whether to enable Run FlexGet Daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.flexget.config¶
The YAML configuration for FlexGet.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.flexget.homeDir¶
Where files live.
Type: path
Default:
"/var/lib/deluge"Example:
"/home/flexget"Declared by:
services.flexget.interval¶
When to perform a flexget run. See man 7 systemd.time for the format.
Type: string
Default:
"10m"Example:
"1h"Declared by:
services.flexget.systemScheduler¶
When true, execute the runs via the flexget-runner.timer. If false, you have to specify the settings yourself in the YML file.
Type: boolean
Default:
trueExample:
"false"Declared by:
services.flexget.user¶
The user under which to run flexget.
Type: string
Default:
"deluge"Example:
"some_user"Declared by:
services.fluentd.enable¶
Whether to enable fluentd.
Type: boolean
Default:
falseDeclared by:
services.fluentd.package¶
The fluentd package to use.
Type: path
Default:
"pkgs.fluentd"Declared by:
services.fluentd.config¶
Fluentd config.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.fluentd.plugins¶
A list of plugin paths to pass into fluentd. It will make plugins defined in ruby files there available in your config.
Type: list of paths
Default: ``[
]``
Declared by:
services.foldingAtHome.enable¶
Whether to enable the Folding@Home to use idle CPU time.
Type: unspecified
Default:
falseDeclared by:
services.foldingAtHome.config¶
Extra configuration. Contents will be added verbatim to the configuration file.
Type: unspecified
Default:
""Declared by:
services.foldingAtHome.nickname¶
A unique handle for statistics.
Type: unspecified
Default:
"Anonymous"Declared by:
services.foundationdb.enable¶
Whether to enable FoundationDB Server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.foundationdb.package¶
The FoundationDB package to use for this server. This must be specified by the user in order to ensure migrations and upgrades are controlled appropriately.
Type: package
Declared by:
services.foundationdb.backupProcesses¶
Number of backup_agent processes to run for snapshots.
Type: signed integer
Default:
1Declared by:
services.foundationdb.class¶
Process class
Type: null or one of “storage”, “transaction”, “stateless”
Default:
nullDeclared by:
services.foundationdb.dataDir¶
Data directory. All cluster data will be put under here.
Type: path
Default:
"/var/lib/foundationdb"Declared by:
services.foundationdb.extraReadWritePaths¶
An extra set of filesystem paths that FoundationDB can read to and write from. By default, FoundationDB runs under a heavily namespaced systemd environment without write access to most of the filesystem outside of its data and log directories. By adding paths to this list, the set of writeable paths will be expanded. This is useful for allowing e.g. backups to local files, which must be performed on behalf of the foundationdb service.
Type: list of paths
Default: ``[
]``
Declared by:
services.foundationdb.group¶
Group account under which FoundationDB runs.
Type: string
Default:
"foundationdb"Declared by:
services.foundationdb.listenAddress¶
Publicly visible IP address of the process. Port is determined by process ID
Type: string
Default:
"public"Declared by:
services.foundationdb.listenPortStart¶
Starting port number for database listening sockets. Every FDB process binds to a subsequent port, to this number reflects the start of the overall range. e.g. having 8 server processes will use all ports between 4500 and 4507.
Type: signed integer
Default:
4500Declared by:
services.foundationdb.locality¶
FoundationDB locality settings.
Type: submodule
Default:
{ dataHall = null; datacenterId = null; machineId = null; zoneId = null; }Declared by:
services.foundationdb.locality.dataHall¶
Data hall identifier key. All processes physically located in a data hall should share the id. If you are depending on data hall based replication this must be set on all processes.
Type: null or string
Default:
nullDeclared by:
services.foundationdb.locality.datacenterId¶
Data center identifier key. All processes physically located in a data center should share the id. If you are depending on data center based replication this must be set on all processes.
Type: null or string
Default:
nullDeclared by:
services.foundationdb.locality.machineId¶
Machine identifier key. All processes on a machine should share a unique id. By default, processes on a machine determine a unique id to share. This does not generally need to be set.
Type: null or string
Default:
nullDeclared by:
services.foundationdb.locality.zoneId¶
Zone identifier key. Processes that share a zone id are considered non-unique for the purposes of data replication. If unset, defaults to machine id.
Type: null or string
Default:
nullDeclared by:
services.foundationdb.logDir¶
Log directory.
Type: path
Default:
"/var/log/foundationdb"Declared by:
services.foundationdb.logSize¶
Roll over to a new log file after the current log file reaches the specified size.
Type: string
Default:
"10MiB"Declared by:
services.foundationdb.maxLogSize¶
Delete the oldest log file when the total size of all log files exceeds the specified size. If set to 0, old log files will not be deleted.
Type: string
Default:
"100MiB"Declared by:
services.foundationdb.memory¶
Maximum memory used by the process. The default value is``8GiB``. When specified without a unit,``MiB`` is assumed. This parameter does not change the memory allocation of the program. Rather, it sets a hard limit beyond which the process will kill itself and be restarted. The default value of
8GiBis double the intended memory usage in the default configuration (providing an emergency buffer to deal with memory leaks or similar problems). It is not recommended to decrease the value of this parameter below its default value. It may be increased if you wish to allocate a very large amount of storage engine memory or cache. In particular, when thestorageMemoryparameter is increased, thememoryparameter should be increased by an equal amount.Type: string
Default:
"8GiB"Declared by:
services.foundationdb.openFirewall¶
Open the firewall ports corresponding to FoundationDB processes and coordinators using .
Type: boolean
Default:
falseDeclared by:
services.foundationdb.pidfile¶
Path to pidfile for fdbmonitor.
Type: path
Default:
"/run/foundationdb.pid"Declared by:
services.foundationdb.publicAddress¶
Publicly visible IP address of the process. Port is determined by process ID
Type: string
Default:
"auto"Declared by:
services.foundationdb.restartDelay¶
Number of seconds to wait before restarting servers.
Type: signed integer
Default:
10Declared by:
services.foundationdb.serverProcesses¶
Number of fdbserver processes to run.
Type: signed integer
Default:
1Declared by:
services.foundationdb.storageMemory¶
Maximum memory used for data storage. The default value is``1GiB``. When specified without a unit,``MB`` is assumed. Clusters using the memory storage engine will be restricted to using this amount of memory per process for purposes of data storage. Memory overhead associated with storing the data is counted against this total. If you increase the``storageMemory``, you should also increase the
memoryparameter by the same amount.Type: string
Default:
"1GiB"Declared by:
services.foundationdb.tls¶
FoundationDB Transport Security Layer (TLS) settings.
Type: null or submodule
Default:
nullDeclared by:
services.foundationdb.tls.allowedPeers¶
“Peer verification string”. This may be used to adjust which TLS client certificates a server will accept, as a form of user authorization; for example, it may only accept TLS clients who offer a certificate abiding by some locality or organization name.
For more information, please see the FoundationDB documentation.
Type: string
Default:
"Check.Valid=1,Check.Unexpired=1"Declared by:
services.foundationdb.tls.certificate¶
Path to the TLS certificate file. This certificate will be offered to, and may be verified by, clients.
Type: string
Declared by:
services.foundationdb.tls.key¶
Private key file for the certificate.
Type: string
Declared by:
services.foundationdb.traceFormat¶
Trace logging format.
Type: one of “xml”, “json”
Default:
"xml"Declared by:
services.foundationdb.user¶
User account under which FoundationDB runs.
Type: string
Default:
"foundationdb"Declared by:
services.fprintd.enable¶
Whether to enable fprintd daemon and PAM module for fingerprint readers handling.
Type: boolean
Default:
falseDeclared by:
services.fprintd.package¶
fprintd package to use.
Type: package
Default:
"pkgs.fprintd"Example:
"pkgs.fprintd-thinkpad"Declared by:
services.fprot.updater.enable¶
Whether to enable automatic F-Prot virus definitions database updates.
Type: unspecified
Default:
falseDeclared by:
services.fprot.updater.frequency¶
Update virus definitions every X minutes.
Type: unspecified
Default:
30Declared by:
services.fprot.updater.licenseKeyfile¶
License keyfile. Defaults to the one supplied with installation package.
Type: unspecified
Declared by:
services.fprot.updater.productData¶
product.data file. Defaults to the one supplied with installation package.
Type: unspecified
Declared by:
services.frab.enable¶
Enable the frab service.
Type: boolean
Default:
falseDeclared by:
services.frab.database¶
Rails database configuration for Frab as Nix attribute set.
Type: attribute set
Default:
{ adapter = "sqlite3"; database = "/var/lib/frab/db.sqlite3"; pool = 5; timeout = 5000; }Example:
{ adapter = "postgresql"; database = "frab"; encoding = "utf8"; host = "localhost"; password = "supersecret"; pool = 5; username = "frabuser"; }Declared by:
services.frab.extraEnvironment¶
Additional environment variables to set for frab for further configuration. See the frab documentation for more information.
Type: attribute set
Default: ``{
}``
Example:
{ EXCEPTION_EMAIL = "frab-owner@example.com"; FRAB_CURRENCY_FORMAT = "%n%u"; FRAB_CURRENCY_UNIT = "€"; SMTP_ADDRESS = "localhost"; SMTP_AUTHENTICATION = "1"; SMTP_DOMAIN = "localdomain"; SMTP_NOTLS = "1"; SMTP_PASSWORD = "toor"; SMTP_PORT = "587"; SMTP_USER_NAME = "root"; }Declared by:
services.frab.fromEmail¶
Email address used by frab.
Type: string
Default:
"frab@localhost"Declared by:
services.frab.group¶
Group to run frab.
Type: string
Default:
"frab"Declared by:
services.frab.host¶
Hostname under which this frab instance can be reached.
Type: string
Example:
"frab.example.com"Declared by:
services.frab.listenAddress¶
Address or hostname frab should listen on.
Type: string
Default:
"localhost"Declared by:
services.frab.listenPort¶
Port frab should listen on.
Type: signed integer
Default:
3000Declared by:
services.frab.protocol¶
Either http or https, depending on how your Frab instance will be exposed to the public.
Type: string
Default:
"https"Example:
"http"Declared by:
services.frab.secretKeyBase¶
Your secret key is used for verifying the integrity of signed cookies. If you change this key, all old signed cookies will become invalid!
Make sure the secret is at least 30 characters and all random, no regular words or you’ll be exposed to dictionary attacks.
Type: string
Declared by:
services.frab.statePath¶
Directory where frab keeps its state.
Type: string
Default:
"/var/lib/frab"Declared by:
services.frab.user¶
User to run frab.
Type: string
Default:
"frab"Declared by:
services.fractalart.enable¶
Enable FractalArt for generating colorful wallpapers on login
Type: boolean
Default:
falseExample:
trueDeclared by:
services.fractalart.height¶
Screen height
Type: null or signed integer
Default:
nullExample:
1080Declared by:
services.fractalart.width¶
Screen width
Type: null or signed integer
Default:
nullExample:
1920Declared by:
services.freefall.enable¶
Whether to protect HP/Dell laptop hard drives (not SSDs) in free fall.
Type: boolean
Default:
falseDeclared by:
services.freefall.package¶
freefall derivation to use.
Type: package
Default:
"pkgs.freefall"Declared by:
services.freefall.devices¶
Device paths to all internal spinning hard drives.
Type: list of strings
Default:
[ "/dev/sda" ]Declared by:
services.freenet.enable¶
Enable the Freenet daemon
Type: boolean
Default:
falseDeclared by:
services.freenet.nice¶
Set the nice level for the Freenet daemon
Type: signed integer
Default:
10Declared by:
services.freeradius.enable¶
Whether to enable the freeradius server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.freeradius.configDir¶
The path of the freeradius server configuration directory.
Type: path
Default:
"/etc/raddb"Declared by:
services.freeswitch.enable¶
Whether to enable FreeSWITCH.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.freeswitch.enableReload¶
Issue the
reloadxmlcommand to FreeSWITCH when configuration directory changes (instead of restart). See FreeSWITCH documentation for more info. The configuration directory is exposed at/etc/freeswitch. See alsosystemd.services.*.restartIfChanged.Type: boolean
Default:
falseDeclared by:
services.freeswitch.package¶
FreeSWITCH package.
Type: package
Default:
pkgs.freeswitchExample:
pkgs.freeswitchDeclared by:
services.freeswitch.configDir¶
Override file in FreeSWITCH config template directory. Each top-level attribute denotes a file path in the configuration directory, its value is the file path. See FreeSWITCH documentation for more info. Also check available templates in FreeSWITCH repository.
Type: attribute set of paths
Default: ``{
}``
Example:
{ "freeswitch.xml" = ./freeswitch.xml; "dialplan/default.xml" = pkgs.writeText "dialplan-default.xml" '' [xml lines] ''; }Declared by:
services.freeswitch.configTemplate¶
Configuration template to use. See available templates in FreeSWITCH repository. You can also set your own configuration directory.
Type: path
Default:
${config.services.freeswitch.package}/share/freeswitch/conf/vanillaExample:
${config.services.freeswitch.package}/share/freeswitch/conf/minimalDeclared by:
services.fstrim.enable¶
Whether to enable periodic SSD TRIM of mounted partitions in background.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.fstrim.interval¶
How often we run fstrim. For most desktop and server systems a sufficient trimming frequency is once a week.
The format is described insystemd.time7.
Type: string
Default:
"weekly"Declared by:
services.fusionInventory.enable¶
Whether to enable Fusion Inventory Agent.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.fusionInventory.extraConfig¶
Configuration that is injected verbatim into the configuration file.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.fusionInventory.servers¶
The urls of the OCS/GLPI servers to connect to.
Type: list of strings
Declared by:
services.fwupd.enable¶
Whether to enable fwupd, a DBus service that allows applications to update firmware.
Type: boolean
Default:
falseDeclared by:
services.fwupd.enableTestRemote¶
Whether to enable test remote. This is used by`installed tests <https://github.com/fwupd/fwupd/blob/master/data/installed-tests/README.md>`_.
Type: boolean
Default:
falseDeclared by:
services.fwupd.package¶
Which fwupd package to use.
Type: package
Default:
*(build of fwupd-1.3.8)*Declared by:
services.fwupd.blacklistDevices¶
Allow blacklisting specific devices by their GUID
Type: list of strings
Default: ``[
]``
Example:
[ "2082b5e0-7a64-478a-b1b2-e3404fab6dad" ]Declared by:
services.fwupd.blacklistPlugins¶
Allow blacklisting specific plugins
Type: list of strings
Default: ``[
]``
Example:
[ "udev" ]Declared by:
services.fwupd.extraTrustedKeys¶
Installing a public key allows firmware signed with a matching private key to be recognized as trusted, which may require less authentication to install than for untrusted files. By default trusted firmware can be upgraded (but not downgraded) without the user or administrator password. Only very few keys are installed by default.
Type: list of paths
Default: ``[
]``
Example:
[ /etc/nixos/fwupd/myfirmware.pem ]Declared by:
services.gale.enable¶
Whether to enable the Gale messaging daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.gale.domain¶
Domain name for the Gale system.
Type: string
Default:
""Declared by:
services.gale.extraConfig¶
Additional text to be added to
/etc/gale/conf.Type: strings concatenated with “\n”
Default:
""Declared by:
services.gale.group¶
Group name for the Gale daemon.
Type: string
Default:
"gale"Declared by:
services.gale.keyPath¶
Directory containing the key pair for this Gale domain. The expected filename will be taken from the domain option with “.gpri” and “.gpub” appended.
Type: null or path
Default:
nullDeclared by:
services.gale.setuidWrapper¶
Configuration for the Gale gksign setuid wrapper.
Type: unspecified
Default:
nullDeclared by:
services.gale.user¶
Username for the Gale daemon.
Type: string
Default:
"gale"Declared by:
services.gammu-smsd.enable¶
Whether to enable gammu-smsd daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.gammu-smsd.backend.files.errorSMSPath¶
Where SMSes with error in transmission is placed
Type: path
Default:
"/var/spool/sms/error/"Declared by:
services.gammu-smsd.backend.files.inboxPath¶
Where the received SMSes are stored
Type: path
Default:
"/var/spool/sms/inbox/"Declared by:
services.gammu-smsd.backend.files.outboxPath¶
Where SMSes to be sent should be placed
Type: path
Default:
"/var/spool/sms/outbox/"Declared by:
services.gammu-smsd.backend.files.sentSMSPath¶
Where the transmitted SMSes are placed
Type: path
Default:
"/var/spool/sms/sent/"Declared by:
services.gammu-smsd.backend.service¶
Service to use to store sms data.
Type: one of “null”, “files”, “sql”
Default:
"null"Declared by:
services.gammu-smsd.backend.sql.database¶
Database name to store sms data
Type: string
Default:
nullDeclared by:
services.gammu-smsd.backend.sql.driver¶
DB driver to use
Type: one of “native_mysql”, “native_pgsql”, “odbc”, “dbi”
Declared by:
services.gammu-smsd.backend.sql.host¶
Database server address
Type: string
Default:
"localhost"Declared by:
services.gammu-smsd.backend.sql.password¶
User password used for connetion to the database
Type: null or string
Default:
nullDeclared by:
services.gammu-smsd.backend.sql.sqlDialect¶
SQL dialect to use (odbc driver only)
Type: null or string
Default:
nullDeclared by:
services.gammu-smsd.backend.sql.user¶
User name used for connection to the database
Type: null or string
Default:
nullDeclared by:
services.gammu-smsd.device.connection¶
Protocol which will be used to talk to the phone
Type: string
Default:
"at"Declared by:
services.gammu-smsd.device.group¶
Owner group of the device
Type: string
Default:
"root"Example:
"dialout"Declared by:
services.gammu-smsd.device.path¶
Device node or address of the phone
Type: path
Example:
"/dev/ttyUSB2"Declared by:
services.gammu-smsd.device.pin¶
PIN code for the simcard
Type: null or string
Default:
nullDeclared by:
services.gammu-smsd.device.synchronizeTime¶
Whether to set time from computer to the phone during starting connection
Type: boolean
Default:
trueDeclared by:
services.gammu-smsd.extraConfig.gammu¶
Extra config lines to be added into [gammu] section
Type: strings concatenated with “\n”
Default:
""Declared by:
services.gammu-smsd.extraConfig.smsd¶
Extra config lines to be added into [smsd] section
Type: strings concatenated with “\n”
Default:
""Declared by:
services.gammu-smsd.log.file¶
Path to file where information about communication will be stored
Type: string
Default:
"syslog"Declared by:
services.gammu-smsd.log.format¶
Determines what will be logged to the LogFile
Type: one of “nothing”, “text”, “textall”, “textalldate”, “errors”, “errorsdate”, “binary”
Default:
"errors"Declared by:
services.gammu-smsd.user¶
User that has access to the device
Type: string
Default:
"smsd"Declared by:
services.gateone.enable¶
Whether to enable GateOne server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.gateone.pidDir¶
Path of pid files for GateOne.
Type: path
Default:
"/run/gateone"Declared by:
services.gateone.settingsDir¶
Path of configuration files for GateOne.
Type: path
Default:
"/var/lib/gateone"Declared by:
services.gdomap.enable¶
Whether to enable GNUstep Distributed Objects name server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.geoclue2.enable¶
Whether to enable GeoClue 2 daemon, a DBus service that provides location information for accessing.
Type: boolean
Default:
falseDeclared by:
services.geoclue2.enable3G¶
Whether to enable 3G source.
Type: boolean
Default:
trueDeclared by:
services.geoclue2.enableCDMA¶
Whether to enable CDMA source.
Type: boolean
Default:
trueDeclared by:
services.geoclue2.enableDemoAgent¶
Whether to use the GeoClue demo agent. This should be overridden by desktop environments that provide their own agent.
Type: boolean
Default:
trueDeclared by:
services.geoclue2.enableModemGPS¶
Whether to enable Modem-GPS source.
Type: boolean
Default:
trueDeclared by:
services.geoclue2.enableNmea¶
Whether to fetch location from NMEA sources on local network.
Type: boolean
Default:
trueDeclared by:
services.geoclue2.enableWifi¶
Whether to enable WiFi source.
Type: boolean
Default:
trueDeclared by:
services.geoclue2.appConfig¶
Specify extra settings per application.
Type: list or attribute set of submodules
Default: ``{
}``
Example:
"com.github.app" = { isAllowed = true; isSystem = true; users = [ "300" ]; };Declared by:
services.geoclue2.appConfig.<name?>.desktopID¶
Desktop ID of the application.
Type: string
Declared by:
services.geoclue2.appConfig.<name?>.isAllowed¶
Whether the application will be allowed access to location information.
Type: boolean
Default:
nullDeclared by:
services.geoclue2.appConfig.<name?>.isSystem¶
Whether the application is a system component or not.
Type: boolean
Default:
nullDeclared by:
services.geoclue2.appConfig.<name?>.users¶
List of UIDs of all users for which this application is allowed location info access, Defaults to an empty string to allow it for all users.
Type: list of strings
Default: ``[
]``
Declared by:
services.geoclue2.geoProviderUrl¶
The url to the wifi GeoLocation Service.
Type: string
Default:
"https://location.services.mozilla.com/v1/geolocate?key=geoclue"Example:
"https://www.googleapis.com/geolocation/v1/geolocate?key=YOUR_KEY"Declared by:
services.geoclue2.submissionNick¶
A nickname to submit network data with. Must be 2-32 characters long.
Type: string
Default:
"geoclue"Declared by:
services.geoclue2.submissionUrl¶
The url to submit data to a GeoLocation Service.
Type: string
Default:
"https://location.services.mozilla.com/v1/submit?key=geoclue"Declared by:
services.geoclue2.submitData¶
Whether to submit data to a GeoLocation Service.
Type: boolean
Default:
falseDeclared by:
services.geoip-updater.enable¶
Whether to enable periodic downloading of GeoIP databases from maxmind.com. You might want to enable this if you, for instance, use ntopng or Wireshark.
Type: boolean
Default:
falseDeclared by:
services.geoip-updater.databaseDir¶
Directory that will contain GeoIP databases.
Type: path
Default:
"/var/lib/geoip-databases"Declared by:
services.geoip-updater.databases¶
Which GeoIP databases to update. The full URL is https://geolite.maxmind.com/download/geoip/database/ +``the_database``.
Type: list of strings
Default:
[ "GeoLiteCountry/GeoIP.dat.gz" "GeoIPv6.dat.gz" "GeoLiteCity.dat.xz" "GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz" "asnum/GeoIPASNum.dat.gz" "asnum/GeoIPASNumv6.dat.gz" "GeoLite2-Country.mmdb.gz" "GeoLite2-City.mmdb.gz" ]Declared by:
services.geoip-updater.interval¶
Update the GeoIP databases at this time / interval. The format is described insystemd.time7. To prevent load spikes on maxmind.com, the timer interval is randomized by an additional delay of 3600 seconds. Setting a shorter interval than this is not recommended.
Type: string
Default:
"weekly"Declared by:
services.gitDaemon.enable¶
Enable Git daemon, which allows public hosting of git repositories without any access controls. This is mostly intended for read-only access.
You can allow write access by setting daemon.receivepack configuration item of the repository to true. This is solely meant for a closed LAN setting where everybody is friendly.
If you need any access controls, use something else.
Type: boolean
Default:
falseDeclared by:
services.gitDaemon.basePath¶
Remap all the path requests as relative to the given path. For example, if you set base-path to /srv/git, then if you later try to pull git://example.com/hello.git, Git daemon will interpret the path as /srv/git/hello.git.
Type: string
Default:
""Example:
"/srv/git/"Declared by:
services.gitDaemon.exportAll¶
Publish all directories that look like Git repositories (have the objects and refs subdirectories), even if they do not have the git-daemon-export-ok file.
If disabled, you need to touch .git/git-daemon-export-ok in each repository you want the daemon to publish.
Warning: enabling this without a repository whitelist or basePath publishes every git repository you have.
Type: boolean
Default:
falseDeclared by:
services.gitDaemon.group¶
Group under which Git daemon would be running.
Type: string
Default:
"git"Declared by:
services.gitDaemon.listenAddress¶
Listen on a specific IP address or hostname.
Type: string
Default:
""Example:
"example.com"Declared by:
services.gitDaemon.options¶
Extra configuration options to be passed to Git daemon.
Type: string
Default:
""Declared by:
services.gitDaemon.port¶
Port to listen on.
Type: signed integer
Default:
9418Declared by:
services.gitDaemon.repositories¶
A whitelist of paths of git repositories, or directories containing repositories all of which would be published. Paths must not end in “/”.
Warning: leaving this empty and enabling exportAll publishes all repositories in your filesystem or basePath if specified.
Type: list of strings
Default: ``[
]``
Example:
[ "/srv/git" "/home/user/git/repo2" ]Declared by:
services.gitDaemon.user¶
User under which Git daemon would be running.
Type: string
Default:
"git"Declared by:
services.gitea.enable¶
Enable Gitea Service.
Type: boolean
Default:
falseDeclared by:
services.gitea.package¶
gitea derivation to use
Type: package
Default:
"pkgs.gitea"Declared by:
services.gitea.appName¶
Application name.
Type: string
Default:
"gitea: Gitea Service"Declared by:
services.gitea.cookieSecure¶
Marks session cookies as “secure” as a hint for browsers to only send them via HTTPS. This option is recommend, if gitea is being served over HTTPS.
Type: boolean
Default:
falseDeclared by:
services.gitea.database.createDatabase¶
Whether to create a local database automatically.
Type: boolean
Default:
trueDeclared by:
services.gitea.database.host¶
Database host address.
Type: string
Default:
"127.0.0.1"Declared by:
services.gitea.database.name¶
Database name.
Type: string
Default:
"gitea"Declared by:
services.gitea.database.password¶
The password corresponding to . Warning: this is stored in cleartext in the Nix store! Use instead.
Type: string
Default:
""Declared by:
services.gitea.database.passwordFile¶
A file containing the password corresponding to.
Type: null or path
Default:
nullExample:
"/run/keys/gitea-dbpassword"Declared by:
services.gitea.database.path¶
Path to the sqlite3 database file.
Type: string
Default:
"/var/lib/gitea/data/gitea.db"Declared by:
services.gitea.database.port¶
Database host port.
Type: signed integer
Default:
3306Declared by:
services.gitea.database.socket¶
Path to the unix socket file to use for authentication.
Type: null or path
Default:
"null"Example:
"/run/mysqld/mysqld.sock"Declared by:
services.gitea.database.type¶
Database engine to use.
Type: one of “sqlite3”, “mysql”, “postgres”
Default:
"sqlite3"Example:
"mysql"Declared by:
services.gitea.database.user¶
Database user.
Type: string
Default:
"gitea"Declared by:
services.gitea.disableRegistration¶
By default any user can create an account on this
giteainstance. This can be disabled by using this option.Note: please keep in mind that this should be added after the initial deploy unless services.gitea.useWizard is
trueas the first registered user will be the administrator if no install wizard is used.Type: boolean
Default:
falseExample:
trueDeclared by:
services.gitea.domain¶
Domain name of your server.
Type: string
Default:
"localhost"Declared by:
services.gitea.dump.enable¶
Enable a timer that runs gitea dump to generate backup-files of the current gitea database and repositories.
Type: boolean
Default:
falseDeclared by:
services.gitea.dump.interval¶
Run a gitea dump at this interval. Runs by default at 04:31 every day.
The format is described insystemd.time7.
Type: string
Default:
"04:31"Example:
"hourly"Declared by:
services.gitea.extraConfig¶
Configuration lines appended to the generated gitea configuration file.
Type: string
Default:
""Declared by:
services.gitea.httpAddress¶
HTTP listen address.
Type: string
Default:
"0.0.0.0"Declared by:
services.gitea.httpPort¶
HTTP listen port.
Type: signed integer
Default:
3000Declared by:
services.gitea.log.level¶
General log level.
Type: one of “Trace”, “Debug”, “Info”, “Warn”, “Error”, “Critical”
Default:
"Trace"Declared by:
services.gitea.log.rootPath¶
Root path for log files.
Type: string
Default:
"/var/lib/gitea/log"Declared by:
services.gitea.mailerPasswordFile¶
Path to a file containing the SMTP password.
Type: null or string
Default:
nullExample:
"/var/lib/secrets/gitea/mailpw"Declared by:
services.gitea.repositoryRoot¶
Path to the git repositories.
Type: string
Default:
"/var/lib/gitea/repositories"Declared by:
services.gitea.rootUrl¶
Full public URL of gitea server.
Type: string
Default:
"http://localhost:3000/"Declared by:
services.gitea.stateDir¶
gitea data directory.
Type: string
Default:
"/var/lib/gitea"Declared by:
services.gitea.staticRootPath¶
Upper level of template and static files path.
Type: string
Default:
"\\${pkgs.gitea.data}"Example:
"/var/lib/gitea/data"Declared by:
services.gitea.useWizard¶
Do not generate a configuration and use gitea’ installation wizard instead. The first registered user will be administrator.
Type: boolean
Default:
falseDeclared by:
services.gitea.user¶
User account under which gitea runs.
Type: string
Default:
"gitea"Declared by:
services.gitlab.enable¶
Enable the gitlab service.
Type: boolean
Default:
falseDeclared by:
services.gitlab.packages.gitaly¶
Reference to the gitaly package
Type: package
Default:
"pkgs.gitaly"Declared by:
services.gitlab.packages.gitlab¶
Reference to the gitlab package
Type: package
Default:
"pkgs.gitlab"Example:
"pkgs.gitlab-ee"Declared by:
services.gitlab.packages.gitlab-shell¶
Reference to the gitlab-shell package
Type: package
Default:
"pkgs.gitlab-shell"Declared by:
services.gitlab.packages.gitlab-workhorse¶
Reference to the gitlab-workhorse package
Type: package
Default:
"pkgs.gitlab-workhorse"Declared by:
services.gitlab.backupPath¶
Gitlab path for backups.
Type: string
Default:
"/var/gitlab/state/backup"Declared by:
services.gitlab.databaseCreateLocally¶
Whether a database should be automatically created on the local host. Set this to
falseif you plan on provisioning a local database yourself. This has no effect if is customized.Type: boolean
Default:
trueDeclared by:
services.gitlab.databaseHost¶
Gitlab database hostname. An empty string means use local unix socket connection.
Type: string
Default:
""Declared by:
services.gitlab.databaseName¶
Gitlab database name.
Type: string
Default:
"gitlab"Declared by:
services.gitlab.databasePasswordFile¶
File containing the Gitlab database user password.
This should be a string, not a nix path, since nix paths are copied into the world-readable nix store.
Type: null or path
Default:
nullDeclared by:
services.gitlab.databasePool¶
Database connection pool size.
Type: signed integer
Default:
5Declared by:
services.gitlab.databaseUsername¶
Gitlab database user.
Type: string
Default:
"gitlab"Declared by:
services.gitlab.extraConfig¶
Extra options to be added under``production`` in:file:config/gitlab.yml, as a nix attribute set.
Options containing secret data should be set to an attribute set containing the attribute
_secret- a string pointing to a file containing the value the option should be set to. See the example to get a better picture of this: in the resulting:file:config/gitlab.yml file, the``production.omniauth.providers[0].args.client_options.secret`` key will be set to the contents of the:file:/var/keys/gitlab_oidc_secret file.Type: attribute set
Default: ``{
}``
Example:
{ gitlab = { default_projects_features = { builds = false; }; }; omniauth = { enabled = true; auto_sign_in_with_provider = "openid_connect"; allow_single_sign_on = ["openid_connect"]; block_auto_created_users = false; providers = [ { name = "openid_connect"; label = "OpenID Connect"; args = { name = "openid_connect"; scope = ["openid" "profile"]; response_type = "code"; issuer = "https://keycloak.example.com/auth/realms/My%20Realm"; discovery = true; client_auth_method = "query"; uid_field = "preferred_username"; client_options = { identifier = "gitlab"; secret = { _secret = "/var/keys/gitlab_oidc_secret"; }; redirect_uri = "https://git.example.com/users/auth/openid_connect/callback"; }; }; } ]; }; };Declared by:
services.gitlab.extraDatabaseConfig¶
services.gitlab.extraGitlabRb¶
Extra configuration to be placed in config/extra-gitlab.rb. This can be used to add configuration not otherwise exposed through this module’s options.
Type: string
Default:
""Example:
'' if Rails.env.production? Rails.application.config.action_mailer.delivery_method = :sendmail ActionMailer::Base.delivery_method = :sendmail ActionMailer::Base.sendmail_settings = { location: "/run/wrappers/bin/sendmail", arguments: "-i -t" } end ''Declared by:
services.gitlab.group¶
Group to run gitlab and all related services.
Type: string
Default:
"gitlab"Declared by:
services.gitlab.host¶
Gitlab host name. Used e.g. for copy-paste URLs.
Type: string
Default:
"nixos"Declared by:
services.gitlab.https¶
Whether gitlab prints URLs with https as scheme.
Type: boolean
Default:
falseDeclared by:
services.gitlab.initialRootEmail¶
Initial email address of the root account if this is a new install.
Type: string
Default:
"admin@local.host"Declared by:
services.gitlab.initialRootPasswordFile¶
File containing the initial password of the root account if this is a new install.
This should be a string, not a nix path, since nix paths are copied into the world-readable nix store.
Type: null or path
Default:
nullDeclared by:
services.gitlab.port¶
Gitlab server port for copy-paste URLs, e.g. 80 or 443 if you’re service over https.
Type: signed integer
Default:
8080Declared by:
services.gitlab.secrets.dbFile¶
A file containing the secret used to encrypt variables in the DB. If you change or lose this key you will be unable to access variables stored in database.
Make sure the secret is at least 30 characters and all random, no regular words or you’ll be exposed to dictionary attacks.
This should be a string, not a nix path, since nix paths are copied into the world-readable nix store.
Type: null or path
Default:
nullDeclared by:
services.gitlab.secrets.jwsFile¶
A file containing the secret used to encrypt session keys. If you change or lose this key, users will be disconnected.
Make sure the secret is an RSA private key in PEM format. You can generate one with
openssl genrsa 2048
This should be a string, not a nix path, since nix paths are copied into the world-readable nix store.
Type: null or path
Default:
nullDeclared by:
services.gitlab.secrets.otpFile¶
A file containing the secret used to encrypt secrets for OTP tokens. If you change or lose this key, users which have 2FA enabled for login won’t be able to login anymore.
Make sure the secret is at least 30 characters and all random, no regular words or you’ll be exposed to dictionary attacks.
This should be a string, not a nix path, since nix paths are copied into the world-readable nix store.
Type: null or path
Default:
nullDeclared by:
services.gitlab.secrets.secretFile¶
A file containing the secret used to encrypt variables in the DB. If you change or lose this key you will be unable to access variables stored in database.
Make sure the secret is at least 30 characters and all random, no regular words or you’ll be exposed to dictionary attacks.
This should be a string, not a nix path, since nix paths are copied into the world-readable nix store.
Type: null or path
Default:
nullDeclared by:
services.gitlab.smtp.enable¶
Enable gitlab mail delivery over SMTP.
Type: boolean
Default:
falseDeclared by:
services.gitlab.smtp.enableStartTLSAuto¶
Whether to try to use StartTLS.
Type: boolean
Default:
trueDeclared by:
services.gitlab.smtp.address¶
Address of the SMTP server for Gitlab.
Type: string
Default:
"localhost"Declared by:
services.gitlab.smtp.authentication¶
Authentitcation type to use, see http://api.rubyonrails.org/classes/ActionMailer/Base.html
Type: null or string
Default:
nullDeclared by:
services.gitlab.smtp.domain¶
HELO domain to use for outgoing mail.
Type: string
Default:
"localhost"Declared by:
services.gitlab.smtp.opensslVerifyMode¶
How OpenSSL checks the certificate, see http://api.rubyonrails.org/classes/ActionMailer/Base.html
Type: string
Default:
"peer"Declared by:
services.gitlab.smtp.passwordFile¶
File containing the password of the SMTP server for Gitlab.
This should be a string, not a nix path, since nix paths are copied into the world-readable nix store.
Type: null or path
Default:
nullDeclared by:
services.gitlab.smtp.port¶
Port of the SMTP server for Gitlab.
Type: signed integer
Default:
465Declared by:
services.gitlab.smtp.username¶
Username of the SMTP server for Gitlab.
Type: null or string
Default:
nullDeclared by:
services.gitlab.statePath¶
Gitlab state directory. Configuration, repositories and logs, among other things, are stored here.
The directory will be created automatically if it doesn’t exist already. Its parent directories must be owned by either
rootor the user set in.Type: string
Default:
"/var/gitlab/state"Declared by:
services.gitlab.user¶
User to run gitlab and all related services.
Type: string
Default:
"gitlab"Declared by:
services.gitlab-runner.enable¶
Whether to enable Gitlab Runner.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.gitlab-runner.package¶
Gitlab Runner package to use
Type: package
Default:
"pkgs.gitlab-runner"Example:
pkgs.gitlab-runner_1_11Declared by:
services.gitlab-runner.packages¶
Packages to add to PATH for the gitlab-runner process.
Type: list of packages
Default:
"[ pkgs.bash pkgs.docker-machine ]"Declared by:
services.gitlab-runner.configFile¶
Configuration file for gitlab-runner. Use this option in favor of configOptions to avoid placing CI tokens in the nix store.
takes precedence over .
Warning: Not using will potentially result in secrets leaking into the WORLD-READABLE nix store.
Type: null or path
Default:
nullDeclared by:
services.gitlab-runner.configOptions¶
Configuration for gitlab-runner will take precedence over this option.
Warning: all Configuration, especially CI token, will be stored in a WORLD-READABLE file in the Nix Store.
If you want to protect your CI token use instead.
Type: attribute set
Example: ``{ concurrent = 2; runners = [
{ builds_dir = “”; docker = { cache_dir = “”; disable_cache = true; host = “”; image = “nixos/nix:1.11”; privileged = true; } ; executor = “docker”; name = “docker-nix-1.11”; token = “TOKEN”; url = “https://CI/”; }
}``
Declared by:
services.gitlab-runner.gracefulTermination¶
Finish all remaining jobs before stopping, restarting or reconfiguring. If not set gitlab-runner will stop immediatly without waiting for jobs to finish, which will lead to failed builds.
Type: boolean
Default:
falseDeclared by:
services.gitlab-runner.gracefulTimeout¶
Time to wait until a graceful shutdown is turned into a forceful one.
Type: string
Default:
"infinity"Example:
"5min 20s"Declared by:
services.gitlab-runner.workDir¶
The working directory used
Type: path
Default:
"/var/lib/gitlab-runner"Declared by:
services.gitolite.enable¶
Enable gitolite management under the``gitolite`` user. After switching to a configuration with Gitolite enabled, you can then run
git clone gitolite@host:gitolite-admin.gitto manage it further.Type: boolean
Default:
falseDeclared by:
services.gitolite.enableGitAnnex¶
Enable git-annex support. Uses the
extraGitoliteRcoption to apply the necessary configuration.Type: boolean
Default:
falseDeclared by:
services.gitolite.adminPubkey¶
Initial administrative public key for Gitolite. This should be an SSH Public Key. Note that this key will only be used once, upon the first initialization of the Gitolite user. The key string cannot have any line breaks in it.
Type: string
Declared by:
services.gitolite.commonHooks¶
A list of custom git hooks that get copied to
~/.gitolite/hooks/common.Type: list of paths
Default: ``[
]``
Declared by:
services.gitolite.dataDir¶
Gitolite home directory (used to store all the repositories).
Type: string
Default:
"/var/lib/gitolite"Declared by:
services.gitolite.extraGitoliteRc¶
Extra configuration to append to the default
~/.gitolite.rc.This should be Perl code that modifies the
%RCconfiguration variable. The default~/.gitolite.rccontent is generated by invokinggitolite print-default-rc, and extra configuration from this option is appended to it. The result is placed to Nix store, and the~/.gitolite.rcfile becomes a symlink to it.If you already have a customized (or otherwise changed)``~/.gitolite.rc`` file, NixOS will refuse to replace it with a symlink, and the `gitolite-init` initialization service will fail. In this situation, in order to use this option, you will need to take any customizations you may have in``~/.gitolite.rc``, convert them to appropriate Perl statements, add them to this option, and remove the file.
See also the
enableGitAnnexoption.Type: strings concatenated with “\n”
Default:
""Example:
$RC{UMASK} = 0027; $RC{SITE_INFO} = 'This is our private repository host'; push( @{$RC{ENABLE}}, 'Kindergarten' ); # enable the command/feature @{$RC{ENABLE}} = grep { $_ ne 'desc' } @{$RC{ENABLE}}; # disable the command/featureDeclared by:
services.gitolite.group¶
Primary group of the Gitolite user account.
Type: string
Default:
"gitolite"Declared by:
services.gitolite.user¶
Gitolite user account. This is the username of the gitolite endpoint.
Type: string
Default:
"gitolite"Declared by:
services.gitweb.extraConfig¶
Verbatim configuration text appended to the generated gitweb.conf file.
Type: strings concatenated with “\n”
Default:
""Example:
'' $feature{'highlight'}{'default'} = [1]; $feature{'ctags'}{'default'} = [1]; $feature{'avatar'}{'default'} = ['gravatar']; ''Declared by:
services.gitweb.gitwebTheme¶
Use an alternative theme for gitweb, strongly inspired by GitHub.
Type: boolean
Default:
falseDeclared by:
services.gitweb.projectroot¶
Path to git projects (bare repositories) that should be served by gitweb. Must not end with a slash.
Type: path
Default:
"/srv/git"Declared by:
services.glusterfs.enable¶
Whether to enable GlusterFS Daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.glusterfs.enableGlustereventsd¶
Whether to enable the GlusterFS Events Daemon
Type: boolean
Default:
trueDeclared by:
services.glusterfs.extraFlags¶
services.glusterfs.killMode¶
The systemd KillMode to use for glusterd.
glusterd spawns other daemons like gsyncd. If you want these to stop when glusterd is stopped (e.g. to ensure that NixOS config changes are reflected even for these sub-daemons), set this to ‘control-group’. If however you want running volume processes (glusterfsd) and thus gluster mounts not be interrupted when glusterd is restarted (for example, when you want to restart them manually at a later time), set this to ‘process’.
Type: one of “control-group”, “process”, “mixed”, “none”
Default:
"control-group"Declared by:
services.glusterfs.logLevel¶
Log level used by the GlusterFS daemon
Type: one of “DEBUG”, “INFO”, “WARNING”, “ERROR”, “CRITICAL”, “TRACE”, “NONE”
Default:
"INFO"Declared by:
services.glusterfs.stopKillTimeout¶
The systemd TimeoutStopSec to use.
After this time after having been asked to shut down, glusterd (and depending on the killMode setting also its child processes) are killed by systemd.
The default is set low because GlusterFS (as of 3.10) is known to not tell its children (like gsyncd) to terminate at all.
Type: string
Default:
"5s"Declared by:
services.glusterfs.tlsSettings¶
Make the server communicate via TLS. This means it will only connect to other gluster servers having certificates signed by the same CA.
Enabling this will create a file
/var/lib/glusterd/secure-access. Disabling will delete this file again.See also: https://gluster.readthedocs.io/en/latest/Administrator%20Guide/SSL/
Type: null or submodule
Default:
nullDeclared by:
services.glusterfs.tlsSettings.caCert¶
Path certificate authority used to sign the cluster certificates.
Type: path
Default:
nullDeclared by:
services.glusterfs.tlsSettings.tlsKeyPath¶
Path to the private key used for TLS.
Type: string
Default:
nullDeclared by:
services.glusterfs.tlsSettings.tlsPem¶
Path to the certificate used for TLS.
Type: path
Default:
nullDeclared by:
services.glusterfs.useRpcbind¶
Enable use of rpcbind. This is required for Gluster’s NFS functionality.
You may want to turn it off to reduce the attack surface for DDoS reflection attacks.
See https://davelozier.com/glusterfs-and-rpcbind-portmap-ddos-reflection-attacks/ and https://bugzilla.redhat.com/show_bug.cgi?id=1426842 for details.
Type: boolean
Default:
trueDeclared by:
services.gnome3.at-spi2-core.enable¶
Whether to enable at-spi2-core, a service for the Assistive Technologies available on the GNOME platform.
Enable this if you get the error or warning``The name org.a11y.Bus was not provided by any .service files``.
Type: boolean
Default:
falseDeclared by:
services.gnome3.chrome-gnome-shell.enable¶
Whether to enable Chrome GNOME Shell native host connector, a DBus service allowing to install GNOME Shell extensions from a web browser. .
Type: boolean
Default:
falseExample:
trueDeclared by:
services.gnome3.core-os-services.enable¶
Whether to enable essential services for GNOME3.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.gnome3.core-shell.enable¶
Whether to enable GNOME Shell services.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.gnome3.core-utilities.enable¶
Whether to enable GNOME core utilities.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.gnome3.evolution-data-server.enable¶
Whether to enable Evolution Data Server, a collection of services for storing addressbooks and calendars.
Type: boolean
Default:
falseDeclared by:
services.gnome3.games.enable¶
Whether to enable GNOME games.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.gnome3.glib-networking.enable¶
Whether to enable network extensions for GLib.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.gnome3.gnome-initial-setup.enable¶
Whether to enable GNOME Initial Setup, a Simple, easy, and safe way to prepare a new system.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.gnome3.gnome-keyring.enable¶
Whether to enable GNOME Keyring daemon, a service designed to take care of the user’s security credentials, such as user names and passwords.
Type: boolean
Default:
falseDeclared by:
services.gnome3.gnome-online-accounts.enable¶
Whether to enable GNOME Online Accounts daemon, a service that provides a single sign-on framework for the GNOME desktop.
Type: boolean
Default:
falseDeclared by:
services.gnome3.gnome-online-miners.enable¶
Whether to enable GNOME Online Miners, a service that crawls through your online content.
Type: boolean
Default:
falseDeclared by:
services.gnome3.gnome-remote-desktop.enable¶
Whether to enable Remote Desktop support using Pipewire.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.gnome3.gnome-settings-daemon.enable¶
Whether to enable GNOME Settings Daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.gnome3.rygel.enable¶
Whether to enable Rygel UPnP Mediaserver.
You will need to also allow UPnP connections in firewall, see the following comment.
Type: boolean
Default:
falseDeclared by:
services.gnome3.sushi.enable¶
Whether to enable Sushi, a quick previewer for nautilus.
Type: boolean
Default:
falseDeclared by:
services.gnome3.tracker.enable¶
Whether to enable Tracker services, a search engine, search tool and metadata storage system.
Type: boolean
Default:
falseDeclared by:
services.gnome3.tracker-miners.enable¶
Whether to enable Tracker miners, indexing services for Tracker search engine and metadata storage system.
Type: boolean
Default:
falseDeclared by:
services.gnunet.enable¶
Whether to run the GNUnet daemon. GNUnet is GNU’s anonymous peer-to-peer communication and file sharing framework.
Type: boolean
Default:
falseDeclared by:
services.gnunet.package¶
Overridable attribute of the gnunet package to use.
Type: package
Default:
"pkgs.gnunet"Example:
pkgs.gnunet_gitDeclared by:
services.gnunet.extraOptions¶
Additional options that will be copied verbatim in `gnunet.conf’. See `gnunet.conf(5)’ for details.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.gnunet.fileSharing.quota¶
Maximum file system usage (in MiB) for file sharing.
Type: signed integer
Default:
1024Declared by:
services.gnunet.load.hardNetUpBandwidth¶
Hard bandwidth limit (in bits per second) when uploading data.
Type: signed integer
Default:
0Declared by:
services.gnunet.load.maxNetDownBandwidth¶
Maximum bandwidth usage (in bits per second) for GNUnet when downloading data.
Type: signed integer
Default:
50000Declared by:
services.gnunet.load.maxNetUpBandwidth¶
Maximum bandwidth usage (in bits per second) for GNUnet when downloading data.
Type: signed integer
Default:
50000Declared by:
services.gnunet.tcp.port¶
The TCP port for use by GNUnet.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
2086Declared by:
services.gnunet.udp.port¶
The UDP port for use by GNUnet.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
2086Declared by:
services.go-shadowsocks2.server.enable¶
Whether to enable go-shadowsocks2 server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.go-shadowsocks2.server.listenAddress¶
Server listen address or URL
Type: string
Example:
"ss://AEAD_CHACHA20_POLY1305:your-password@:8488"Declared by:
services.gocd-agent.enable¶
Whether to enable gocd-agent.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.gocd-agent.packages¶
Packages to add to PATH for the Go.CD agent process.
Type: list of packages
Default:
"[ pkgs.stdenv pkgs.jre pkgs.git config.programs.ssh.package pkgs.nix ]"Declared by:
services.gocd-agent.agentConfig¶
Agent registration configuration.
Type: string
Default:
""Example:
'' agent.auto.register.resources=ant,java agent.auto.register.environments=QA,Performance agent.auto.register.hostname=Agent01 ''Declared by:
services.gocd-agent.environment¶
Additional environment variables to be passed to the Go.CD agent process. As a base environment, Go.CD agent receives NIX_PATH from, NIX_REMOTE is set to “daemon”.
Type: attribute set of strings
Default: ``{
}``
Declared by:
services.gocd-agent.extraGroups¶
List of extra groups that the “gocd-agent” user should be a part of.
Type: list of strings
Default: ``[
]``
Example:
[ "wheel" "docker" ]Declared by:
services.gocd-agent.extraOptions¶
Specifies additional command line arguments to pass to Go.CD agent java process. Example contains debug and gcLog arguments.
Type: unspecified
Default: ``[
]``
Example:
[ "-X debug" "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006" "-verbose:gc" "-Xloggc:go-agent-gc.log" "-XX:+PrintGCTimeStamps" "-XX:+PrintTenuringDistribution" "-XX:+PrintGCDetails" "-XX:+PrintGC" ]Declared by:
services.gocd-agent.goServer¶
URL of the GoCD Server to attach the Go.CD Agent to.
Type: string
Default:
"https://127.0.0.1:8154/go"Declared by:
services.gocd-agent.group¶
If the default user “gocd-agent” is configured then this is the primary group of that user.
Type: string
Default:
"gocd-agent"Declared by:
services.gocd-agent.initialJavaHeapSize¶
Specifies the initial java heap memory size for the Go.CD agent java process.
Type: string
Default:
"128m"Declared by:
services.gocd-agent.maxJavaHeapMemory¶
Specifies the java maximum heap memory size for the Go.CD agent java process.
Type: string
Default:
"256m"Declared by:
services.gocd-agent.startupOptions¶
Specifies startup command line arguments to pass to Go.CD agent java process.
Type: unspecified
Default:
[ "-Xms128m" "-Xmx256m" "-Djava.io.tmpdir=/tmp" "-Dcruise.console.publish.interval=10" "-Djava.security.egd=file:/dev/./urandom" ]Declared by:
services.gocd-agent.user¶
User the Go.CD agent should execute under.
Type: string
Default:
"gocd-agent"Declared by:
services.gocd-agent.workDir¶
Specifies the working directory in which the Go.CD agent java archive resides.
Type: string
Default:
"/var/lib/go-agent"Declared by:
services.gocd-server.enable¶
Whether to enable gocd-server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.gocd-server.packages¶
Packages to add to PATH for the Go.CD server’s process.
Type: list of packages
Default:
"[ pkgs.stdenv pkgs.jre pkgs.git config.programs.ssh.package pkgs.nix ]"Declared by:
services.gocd-server.environment¶
Additional environment variables to be passed to the gocd-server process. As a base environment, gocd-server receives NIX_PATH from, NIX_REMOTE is set to “daemon”.
Type: attribute set of strings
Default: ``{
}``
Declared by:
services.gocd-server.extraGroups¶
List of extra groups that the “gocd-server” user should be a part of.
Type: unspecified
Default: ``[
]``
Example:
[ "wheel" "docker" ]Declared by:
services.gocd-server.extraOptions¶
Specifies additional command line arguments to pass to Go.CD server’s java process. Example contains debug and gcLog arguments.
Type: unspecified
Default: ``[
]``
Example:
[ "-X debug" "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005" "-verbose:gc" "-Xloggc:go-server-gc.log" "-XX:+PrintGCTimeStamps" "-XX:+PrintTenuringDistribution" "-XX:+PrintGCDetails" "-XX:+PrintGC" ]Declared by:
services.gocd-server.group¶
If the default user “gocd-server” is configured then this is the primary group of that user.
Type: string
Default:
"gocd-server"Declared by:
services.gocd-server.initialJavaHeapSize¶
Specifies the initial java heap memory size for the Go.CD server’s java process.
Type: string
Default:
"512m"Declared by:
services.gocd-server.listenAddress¶
Specifies the bind address on which the Go.CD server HTTP interface listens.
Type: string
Default:
"0.0.0.0"Example:
"localhost"Declared by:
services.gocd-server.maxJavaHeapMemory¶
Specifies the java maximum heap memory size for the Go.CD server’s java process.
Type: string
Default:
"1024m"Declared by:
services.gocd-server.port¶
Specifies port number on which the Go.CD server HTTP interface listens.
Type: signed integer
Default:
8153Declared by:
services.gocd-server.sslPort¶
Specifies port number on which the Go.CD server HTTPS interface listens.
Type: signed integer
Default:
8154Declared by:
services.gocd-server.startupOptions¶
Specifies startup command line arguments to pass to Go.CD server java process.
Type: unspecified
Default:
[ "-Xms512m" "-Xmx1024m" "-Dcruise.listen.host=0.0.0.0" "-Duser.language=en" "-Djruby.rack.request.size.threshold.bytes=30000000" "-Duser.country=US" "-Dcruise.config.dir=/var/lib/go-server/conf" "-Dcruise.config.file=/var/lib/go-server/conf/cruise-config.xml" "-Dcruise.server.port=8153" "-Dcruise.server.ssl.port=8154" ]Declared by:
services.gocd-server.user¶
User the Go.CD server should execute under.
Type: string
Default:
"gocd-server"Declared by:
services.gocd-server.workDir¶
Specifies the working directory in which the Go.CD server java archive resides.
Type: string
Default:
"/var/lib/go-server"Declared by:
services.gogoclient.enable¶
Enable the gogoCLIENT IPv6 tunnel.
Type: boolean
Default:
falseDeclared by:
services.gogoclient.autorun¶
Whether to automatically start the tunnel.
Type: unspecified
Default:
trueDeclared by:
services.gogoclient.password¶
Path to a file (as a string), containing your gogoNET password, if any.
Type: string
Default:
""Declared by:
services.gogoclient.server¶
The Gateway6 server to be used.
Type: unspecified
Default:
"anonymous.freenet6.net"Example:
"broker.freenet6.net"Declared by:
services.gogoclient.username¶
Your Gateway6 login name, if any.
Type: unspecified
Default:
""Declared by:
services.gogs.enable¶
Enable Go Git Service.
Type: boolean
Default:
falseDeclared by:
services.gogs.appName¶
Application name.
Type: string
Default:
"Gogs: Go Git Service"Declared by:
services.gogs.cookieSecure¶
Marks session cookies as “secure” as a hint for browsers to only send them via HTTPS. This option is recommend, if Gogs is being served over HTTPS.
Type: boolean
Default:
falseDeclared by:
services.gogs.database.host¶
Database host address.
Type: string
Default:
"127.0.0.1"Declared by:
services.gogs.database.name¶
Database name.
Type: string
Default:
"gogs"Declared by:
services.gogs.database.password¶
The password corresponding to . Warning: this is stored in cleartext in the Nix store! Use instead.
Type: string
Default:
""Declared by:
services.gogs.database.passwordFile¶
A file containing the password corresponding to.
Type: null or path
Default:
nullExample:
"/run/keys/gogs-dbpassword"Declared by:
services.gogs.database.path¶
Path to the sqlite3 database file.
Type: string
Default:
"/var/lib/gogs/data/gogs.db"Declared by:
services.gogs.database.port¶
Database host port.
Type: signed integer
Default:
3306Declared by:
services.gogs.database.type¶
Database engine to use.
Type: one of “sqlite3”, “mysql”, “postgres”
Default:
"sqlite3"Example:
"mysql"Declared by:
services.gogs.database.user¶
Database user.
Type: string
Default:
"gogs"Declared by:
services.gogs.domain¶
Domain name of your server.
Type: string
Default:
"localhost"Declared by:
services.gogs.extraConfig¶
Configuration lines appended to the generated Gogs configuration file.
Type: string
Default:
""Declared by:
services.gogs.group¶
Group account under which Gogs runs.
Type: string
Default:
"gogs"Declared by:
services.gogs.httpAddress¶
HTTP listen address.
Type: string
Default:
"0.0.0.0"Declared by:
services.gogs.httpPort¶
HTTP listen port.
Type: signed integer
Default:
3000Declared by:
services.gogs.repositoryRoot¶
Path to the git repositories.
Type: string
Default:
"/var/lib/gogs/repositories"Declared by:
services.gogs.rootUrl¶
Full public URL of Gogs server.
Type: string
Default:
"http://localhost:3000/"Declared by:
services.gogs.stateDir¶
Gogs data directory.
Type: string
Default:
"/var/lib/gogs"Declared by:
services.gogs.staticRootPath¶
Upper level of template and static files path.
Type: string
Default:
"\\${pkgs.gogs.data}"Example:
"/var/lib/gogs/data"Declared by:
services.gogs.useWizard¶
Do not generate a configuration and use Gogs’ installation wizard instead. The first registered user will be administrator.
Type: boolean
Default:
falseDeclared by:
services.gogs.user¶
User account under which Gogs runs.
Type: string
Default:
"gogs"Declared by:
services.gollum.enable¶
Enable the Gollum service.
Type: boolean
Default:
falseDeclared by:
services.gollum.address¶
IP address on which the web server will listen.
Type: string
Default:
"0.0.0.0"Declared by:
services.gollum.allowUploads¶
Enable uploads of external files
Type: null or one of “dir”, “page”
Default:
nullDeclared by:
services.gollum.branch¶
Git branch to serve
Type: string
Default:
"master"Example:
"develop"Declared by:
services.gollum.emoji¶
Parse and interpret emoji tags
Type: boolean
Default:
falseDeclared by:
services.gollum.extraConfig¶
Content of the configuration file
Type: strings concatenated with “\n”
Default:
""Declared by:
services.gollum.mathjax¶
Enable support for math rendering using MathJax
Type: boolean
Default:
falseDeclared by:
services.gollum.port¶
Port on which the web server will run.
Type: signed integer
Default:
4567Declared by:
services.gollum.stateDir¶
Specifies the path of the repository directory. If it does not exist, Gollum will create it on startup.
Type: path
Default:
"/var/lib/gollum"Declared by:
services.gotify.enable¶
Whether to enable Gotify webserver.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.gotify.port¶
Port the server listens to.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Declared by:
services.gotify.stateDirectoryName¶
The name of the directory below
/var/libwhere gotify stores its runtime data.Type: string
Default:
"gotify-server"Declared by:
services.gpm.enable¶
Whether to enable GPM, the General Purpose Mouse daemon, which enables mouse support in virtual consoles.
Type: boolean
Default:
falseDeclared by:
services.gpm.protocol¶
Mouse protocol to use.
Type: string
Default:
"ps/2"Declared by:
services.gpsd.enable¶
Whether to enable `gpsd’, a GPS service daemon.
Type: boolean
Default:
falseDeclared by:
services.gpsd.debugLevel¶
The debugging level.
Type: signed integer
Default:
0Declared by:
services.gpsd.device¶
A 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.Type: string
Default:
"/dev/ttyUSB0"Declared by:
services.gpsd.nowait¶
don’t wait for client connects to poll GPS
Type: boolean
Default:
falseDeclared by:
services.gpsd.port¶
The port where to listen for TCP connections.
Type: signed integer
Default:
2947Declared by:
services.gpsd.readonly¶
Whether 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.
Type: boolean
Default:
trueDeclared by:
services.grafana.enable¶
Whether to enable grafana.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.grafana.package¶
Package to use.
Type: package
Default:
"pkgs.grafana"Declared by:
services.grafana.addr¶
Listening address.
Type: string
Default:
"127.0.0.1"Declared by:
services.grafana.analytics.reporting.enable¶
Whether to allow anonymous usage reporting to stats.grafana.net
Type: boolean
Default:
trueDeclared by:
services.grafana.auth.anonymous.enable¶
Whether to allow anonymous access
Type: boolean
Default:
falseDeclared by:
services.grafana.auth.anonymous.org_name¶
Which organization to allow anonymous access to
Type: string
Default:
"Main Org."Declared by:
services.grafana.auth.anonymous.org_role¶
Which role anonymous users have in the organization
Type: string
Default:
"Viewer"Declared by:
services.grafana.certFile¶
Cert file for ssl.
Type: string
Default:
""Declared by:
services.grafana.certKey¶
Cert key for ssl.
Type: string
Default:
""Declared by:
services.grafana.dataDir¶
Data directory.
Type: path
Default:
"/var/lib/grafana"Declared by:
services.grafana.database.connMaxLifetime¶
Sets the maximum amount of time (in seconds) a connection may be reused. For MySQL this setting should be shorter than the `wait_timeout’ variable.
Type: signed integer or one of “unlimited”
Default:
"unlimited"Example:
14400Declared by:
services.grafana.database.host¶
Database host.
Type: string
Default:
"127.0.0.1:3306"Declared by:
services.grafana.database.name¶
Database name.
Type: string
Default:
"grafana"Declared by:
services.grafana.database.password¶
Database password. This option is mutual exclusive with the passwordFile option.
Type: string
Default:
""Declared by:
services.grafana.database.passwordFile¶
File that containts the database password. This option is mutual exclusive with the password option.
Type: null or path
Default:
nullDeclared by:
services.grafana.database.path¶
Database path.
Type: path
Default:
"/var/lib/grafana/data/grafana.db"Declared by:
services.grafana.database.type¶
Database type.
Type: one of “mysql”, “sqlite3”, “postgres”
Default:
"sqlite3"Declared by:
services.grafana.database.user¶
Database user.
Type: string
Default:
"root"Declared by:
services.grafana.domain¶
The public facing domain name used to access grafana from a browser.
Type: string
Default:
"localhost"Declared by:
services.grafana.extraOptions¶
Extra configuration options passed as env variables as specified in`documentation <http://docs.grafana.org/installation/configuration/>`_, but without GF_ prefix
Type: attribute set of string or paths
Default: ``{
}``
Declared by:
services.grafana.port¶
Listening port.
Type: signed integer
Default:
3000Declared by:
services.grafana.protocol¶
Which protocol to listen.
Type: one of “http”, “https”, “socket”
Default:
"http"Declared by:
services.grafana.provision.enable¶
Whether to enable provision.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.grafana.provision.dashboards¶
services.grafana.provision.dashboards.*.disableDeletion¶
Disable deletion when JSON file is removed
Type: boolean
Default:
falseDeclared by:
services.grafana.provision.dashboards.*.folder¶
Add dashboards to the specified folder
Type: string
Default:
""Declared by:
services.grafana.provision.dashboards.*.name¶
Provider name
Type: string
Default:
"default"Declared by:
services.grafana.provision.dashboards.*.options.path¶
Path grafana will watch for dashboards
Type: path
Declared by:
services.grafana.provision.dashboards.*.orgId¶
Organization ID
Type: signed integer
Default:
1Declared by:
services.grafana.provision.dashboards.*.type¶
Dashboard provider type
Type: string
Default:
"file"Declared by:
services.grafana.provision.dashboards.*.updateIntervalSeconds¶
How often Grafana will scan for changed dashboards
Type: signed integer
Default:
10Declared by:
services.grafana.provision.datasources¶
services.grafana.provision.datasources.*.access¶
Access mode. proxy or direct (Server or Browser in the UI). Required
Type: one of “proxy”, “direct”
Default:
"proxy"Declared by:
services.grafana.provision.datasources.*.basicAuth¶
Enable/disable basic auth
Type: null or boolean
Default:
nullDeclared by:
services.grafana.provision.datasources.*.basicAuthPassword¶
Basic auth password
Type: null or string
Default:
nullDeclared by:
services.grafana.provision.datasources.*.basicAuthUser¶
Basic auth username
Type: null or string
Default:
nullDeclared by:
services.grafana.provision.datasources.*.database¶
Database name, if used
Type: null or string
Default:
nullDeclared by:
services.grafana.provision.datasources.*.editable¶
Allow users to edit datasources from the UI.
Type: boolean
Default:
falseDeclared by:
services.grafana.provision.datasources.*.isDefault¶
Mark as default datasource. Max one per org
Type: boolean
Default:
falseDeclared by:
services.grafana.provision.datasources.*.jsonData¶
Datasource specific configuration
Type: null or attribute set
Default:
nullDeclared by:
services.grafana.provision.datasources.*.name¶
Name of the datasource. Required
Type: string
Declared by:
services.grafana.provision.datasources.*.orgId¶
Org id. will default to orgId 1 if not specified
Type: signed integer
Default:
1Declared by:
services.grafana.provision.datasources.*.password¶
Database password, if used
Type: null or string
Default:
nullDeclared by:
services.grafana.provision.datasources.*.secureJsonData¶
Datasource specific secure configuration
Type: null or attribute set
Default:
nullDeclared by:
services.grafana.provision.datasources.*.type¶
Datasource type. Required
Type: one of “graphite”, “prometheus”, “cloudwatch”, “elasticsearch”, “influxdb”, “opentsdb”, “mysql”, “mssql”, “postgres”, “loki”
Declared by:
services.grafana.provision.datasources.*.url¶
Url of the datasource
Type: string
Declared by:
services.grafana.provision.datasources.*.user¶
Database user, if used
Type: null or string
Default:
nullDeclared by:
services.grafana.provision.datasources.*.version¶
Version
Type: signed integer
Default:
1Declared by:
services.grafana.provision.datasources.*.withCredentials¶
Enable/disable with credentials headers
Type: boolean
Default:
falseDeclared by:
services.grafana.rootUrl¶
Full public facing url.
Type: string
Default:
"%(protocol)s://%(domain)s:%(http_port)s/"Declared by:
services.grafana.security.adminPassword¶
Default admin password. This option is mutual exclusive with the adminPasswordFile option.
Type: string
Default:
"admin"Declared by:
services.grafana.security.adminPasswordFile¶
Default admin password. This option is mutual exclusive with the
adminPasswordoption.Type: null or path
Default:
nullDeclared by:
services.grafana.security.adminUser¶
Default admin username.
Type: string
Default:
"admin"Declared by:
services.grafana.security.secretKey¶
Secret key used for signing.
Type: string
Default:
"SW2YcwTIb9zpOOhoPsMm"Declared by:
services.grafana.security.secretKeyFile¶
Secret key used for signing.
Type: null or path
Default:
nullDeclared by:
services.grafana.smtp.enable¶
Whether to enable smtp.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.grafana.smtp.fromAddress¶
Email address used for sending
Type: string
Default:
"admin@grafana.localhost"Declared by:
services.grafana.smtp.host¶
Host to connect to
Type: string
Default:
"localhost:25"Declared by:
services.grafana.smtp.password¶
Password used for authentication. This option is mutual exclusive with the passwordFile option.
Type: string
Default:
""Declared by:
services.grafana.smtp.passwordFile¶
Password used for authentication. This option is mutual exclusive with the password option.
Type: null or path
Default:
nullDeclared by:
services.grafana.smtp.user¶
User used for authentication
Type: string
Default:
""Declared by:
services.grafana.staticRootPath¶
Root path for static assets.
Type: string
Default:
"\\${pkgs.grafana}/share/grafana/public"Declared by:
services.grafana.users.allowOrgCreate¶
Whether user is allowed to create organizations.
Type: boolean
Default:
falseDeclared by:
services.grafana.users.allowSignUp¶
Disable user signup / registration
Type: boolean
Default:
falseDeclared by:
services.grafana.users.autoAssignOrg¶
Whether to automatically assign new users to default org.
Type: boolean
Default:
trueDeclared by:
services.grafana.users.autoAssignOrgRole¶
Default role new users will be auto assigned.
Type: one of “Viewer”, “Editor”
Default:
"Viewer"Declared by:
services.grafana_reporter.enable¶
Whether to enable grafana_reporter.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.grafana_reporter.addr¶
Listening address.
Type: string
Default:
"127.0.0.1"Declared by:
services.grafana_reporter.grafana.addr¶
Grafana address.
Type: string
Default:
"127.0.0.1"Declared by:
services.grafana_reporter.grafana.port¶
Grafana port.
Type: signed integer
Default:
3000Declared by:
services.grafana_reporter.grafana.protocol¶
Grafana protocol.
Type: one of “http”, “https”
Default:
"http"Declared by:
services.grafana_reporter.port¶
Listening port.
Type: signed integer
Default:
8686Declared by:
services.grafana_reporter.templateDir¶
Optional template directory to use custom tex templates
Type: string
Default:
"\\${pkgs.grafana_reporter}"Declared by:
services.graphite.api.enable¶
Whether to enable graphite api. Graphite api is lightweight alternative to graphite web, with api and without dashboard. It’s advised to use grafana as alternative dashboard and influxdb as alternative to graphite carbon.
For more information visit` <https://graphite-api.readthedocs.org/en/latest/>`_
Type: boolean
Default:
falseDeclared by:
services.graphite.api.package¶
Package to use for graphite api.
Type: package
Default:
"pkgs.python27Packages.graphite_api"Declared by:
services.graphite.api.extraConfig¶
Extra configuration for graphite api.
Type: strings concatenated with “\n”
Default:
'' whisper: directories: - /var/db/graphite/whisper ''Example:
'' allowed_origins: - dashboard.example.com cheat_times: true influxdb: host: localhost port: 8086 user: influxdb pass: influxdb db: metrics cache: CACHE_TYPE: 'filesystem' CACHE_DIR: '/tmp/graphite-api-cache' ''Declared by:
services.graphite.api.finders¶
List of finder plugins to load.
Type: list of packages
Default: ``[
]``
Example:
[ pkgs.python27Packages.influxgraph ]Declared by:
services.graphite.api.functions¶
List of functions to load.
Type: list of strings
Default:
[ "graphite_api.functions.SeriesFunctions" "graphite_api.functions.PieFunctions" ]Declared by:
services.graphite.api.listenAddress¶
Graphite web service listen address.
Type: string
Default:
"127.0.0.1"Declared by:
services.graphite.api.port¶
Graphite api service port.
Type: signed integer
Default:
8080Declared by:
services.graphite.beacon.enable¶
Whether to enable graphite beacon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.graphite.beacon.config¶
services.graphite.carbon.enableAggregator¶
Whether to enable carbon aggregator, the carbon buffering service.
Type: boolean
Default:
falseDeclared by:
services.graphite.carbon.enableCache¶
Whether to enable carbon cache, the graphite storage daemon.
Type: boolean
Default:
falseDeclared by:
services.graphite.carbon.enableRelay¶
Whether to enable carbon relay, the carbon replication and sharding service.
Type: boolean
Default:
falseDeclared by:
services.graphite.carbon.aggregationRules¶
Defines if and how received metrics will be aggregated.
Type: null or string
Default:
nullExample:
'' <env>.applications.<app>.all.requests (60) = sum <env>.applications.<app>.*.requests <env>.applications.<app>.all.latency (60) = avg <env>.applications.<app>.*.latency ''Declared by:
services.graphite.carbon.blacklist¶
Any metrics received which match one of the experssions will be dropped.
Type: null or string
Default:
nullExample:
''^some\\.noisy\\.metric\\.prefix\\..*''Declared by:
services.graphite.carbon.config¶
Content of carbon configuration file.
Type: string
Default:
'' [cache] # Listen on localhost by default for security reasons UDP_RECEIVER_INTERFACE = 127.0.0.1 PICKLE_RECEIVER_INTERFACE = 127.0.0.1 LINE_RECEIVER_INTERFACE = 127.0.0.1 CACHE_QUERY_INTERFACE = 127.0.0.1 # Do not log every update LOG_UPDATES = False LOG_CACHE_HITS = False ''Declared by:
services.graphite.carbon.relayRules¶
Relay rules are used to send certain metrics to a certain backend.
Type: null or string
Default:
nullExample:
'' [example] pattern = ^mydata\.foo\..+ servers = 10.1.2.3, 10.1.2.4:2004, myserver.mydomain.com ''Declared by:
services.graphite.carbon.rewriteRules¶
Regular expression patterns that can be used to rewrite metric names in a search and replace fashion.
Type: null or string
Default:
nullExample:
'' [post] _sum$ = _avg$ = ''Declared by:
services.graphite.carbon.storageAggregation¶
Defines how to aggregate data to lower-precision retentions.
Type: null or string
Default:
nullExample:
'' [all_min] pattern = \.min$ xFilesFactor = 0.1 aggregationMethod = min ''Declared by:
services.graphite.carbon.storageSchemas¶
Defines retention rates for storing metrics.
Type: null or string
Default:
""Example:
'' [apache_busyWorkers] pattern = ^servers\.www.*\.workers\.busyWorkers$ retentions = 15s:7d,1m:21d,15m:5y ''Declared by:
services.graphite.carbon.whitelist¶
Only metrics received which match one of the experssions will be persisted.
Type: null or string
Default:
nullExample:
".*"Declared by:
services.graphite.dataDir¶
Data directory for graphite.
Type: path
Default:
"/var/db/graphite"Declared by:
services.graphite.pager.enable¶
Whether to enable graphite-pager service. For more information visit` <https://github.com/seatgeek/graphite-pager>`_
Type: boolean
Default:
falseDeclared by:
services.graphite.pager.alerts¶
Alerts configuration for graphite-pager.
Type: strings concatenated with “\n”
Default:
'' alerts: - target: constantLine(100) warning: 90 critical: 200 name: Test ''Example:
'' pushbullet_key: pushbullet_api_key alerts: - target: stats.seatgeek.app.deal_quality.venue_info_cache.hit warning: .5 critical: 1 name: Deal quality venue cache hits ''Declared by:
services.graphite.pager.graphiteUrl¶
URL to your graphite service.
Type: string
Default:
"http://127.0.0.1:8080"Declared by:
services.graphite.pager.redisUrl¶
Redis connection string.
Type: string
Default:
"redis://localhost:6379/"Declared by:
services.graphite.seyren.enable¶
Whether to enable seyren service.
Type: boolean
Default:
falseDeclared by:
services.graphite.seyren.extraConfig¶
Extra seyren configuration. See` <https://github.com/scobal/seyren#config>`_
Type: attribute set of strings
Default: ``{
}``
Example:
{ GRAPHITE_USERNAME = "user"; GRAPHITE_PASSWORD = "pass"; }Declared by:
services.graphite.seyren.graphiteUrl¶
Host where graphite service runs.
Type: string
Default:
"http://127.0.0.1:8080"Declared by:
services.graphite.seyren.mongoUrl¶
Mongodb connection string.
Type: string
Default:
"mongodb://127.0.0.1:27017/seyren"Declared by:
services.graphite.seyren.port¶
Seyren listening port.
Type: signed integer
Default:
8081Declared by:
services.graphite.seyren.seyrenUrl¶
Host where seyren is accessible.
Type: string
Default:
"http://localhost:8081/"Declared by:
services.graphite.web.enable¶
Whether to enable graphite web frontend.
Type: boolean
Default:
falseDeclared by:
services.graphite.web.extraConfig¶
Graphite webapp settings. See:` <http://graphite.readthedocs.io/en/latest/config-local-settings.html>`_
Type: string
Default:
""Declared by:
services.graphite.web.listenAddress¶
Graphite web frontend listen address.
Type: string
Default:
"127.0.0.1"Declared by:
services.graphite.web.port¶
Graphite web frontend port.
Type: signed integer
Default:
8080Declared by:
services.graylog.enable¶
Whether to enable Graylog.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.graylog.package¶
Graylog package to use.
Type: package
Default:
"pkgs.graylog"Example:
pkgs.graylogDeclared by:
services.graylog.elasticsearchHosts¶
List of valid URIs of the http ports of your elastic nodes. If one or more of your elasticsearch hosts require authentication, include the credentials in each node URI that requires authentication
Type: list of strings
Example:
[ "http://node1:9200" "http://user:password@node2:19200" ]Declared by:
services.graylog.extraConfig¶
Any other configuration options you might want to add
Type: strings concatenated with “\n”
Default:
""Declared by:
services.graylog.isMaster¶
Whether this is the master instance of your Graylog cluster
Type: boolean
Default:
trueDeclared by:
services.graylog.messageJournalDir¶
The directory which will be used to store the message journal. The directory must be exclusively used by Graylog and must not contain any other files than the ones created by Graylog itself
Type: string
Default:
"/var/lib/graylog/data/journal"Declared by:
services.graylog.mongodbUri¶
MongoDB connection string. See http://docs.mongodb.org/manual/reference/connection-string/ for details
Type: string
Default:
"mongodb://localhost/graylog"Declared by:
services.graylog.nodeIdFile¶
Path of the file containing the graylog node-id
Type: string
Default:
"/var/lib/graylog/server/node-id"Declared by:
services.graylog.passwordSecret¶
You MUST set a secret to secure/pepper the stored user passwords here. Use at least 64 characters. Generate one by using for example: pwgen -N 1 -s 96
Type: string
Declared by:
services.graylog.plugins¶
services.graylog.rootPasswordSha2¶
You MUST specify a hash password for the root user (which you only need to initially set up the system and in case you lose connectivity to your authentication backend) This password cannot be changed using the API or via the web interface. If you need to change it, modify it here. Create one by using for example: echo -n yourpassword | shasum -a 256 and use the resulting hash value as string for the option
Type: string
Example:
"e3c652f0ba0b4801205814f8b6bc49672c4c74e25b497770bb89b22cdeb4e952"Declared by:
services.graylog.rootUsername¶
Name of the default administrator user
Type: string
Default:
"admin"Declared by:
services.graylog.user¶
User account under which graylog runs
Type: string
Default:
"graylog"Example:
graylogDeclared by:
services.greenclip.enable¶
Whether to enable Greenclip daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.greenclip.package¶
greenclip derivation to use.
Type: package
Default:
"pkgs.haskellPackages.greenclip"Declared by:
services.grocy.enable¶
Whether to enable grocy.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.grocy.dataDir¶
Home directory of the
grocyuser which contains the application’s state.Type: string
Default:
"/var/lib/grocy"Declared by:
services.grocy.hostName¶
FQDN for the grocy instance.
Type: string
Declared by:
services.grocy.nginx.enableSSL¶
Whether or not to enable SSL (with ACME and let’s encrypt) for the grocy vhost.
Type: boolean
Default:
trueDeclared by:
services.grocy.phpfpm.settings¶
Options for grocy’s PHPFPM pool.
Type: attribute set of signed integer or string or booleans
Default:
{ catch_workers_output = true; listen.owner = "nginx"; php_admin_flag[log_errors] = true; php_admin_value[error_log] = "stderr"; pm = "dynamic"; pm.max_children = "32"; pm.max_requests = "500"; pm.max_spare_servers = "4"; pm.min_spare_servers = "2"; pm.start_servers = "2"; }Declared by:
services.grocy.settings.calendar.firstDayOfWeek¶
Which day of the week (0=Sunday, 1=Monday etc.) should be the first day.
Type: null or one of 0, 1, 2, 3, 4, 5, 6
Default:
nullDeclared by:
services.grocy.settings.calendar.showWeekNumber¶
Show the number of the weeks in the calendar views.
Type: boolean
Default:
trueDeclared by:
services.grocy.settings.culture¶
Display language of the frontend.
Type: one of “de”, “en”, “da”, “en_GB”, “es”, “fr”, “hu”, “it”, “nl”, “no”, “pl”, “pt_BR”, “ru”, “sk_SK”, “sv_SE”, “tr”
Default:
"en"Declared by:
services.grocy.settings.currency¶
ISO 4217 code for the currency to display.
Type: string
Default:
"USD"Example:
"EUR"Declared by:
services.gsignond.enable¶
Whether to enable gSignOn daemon, a DBus service which performs user authentication on behalf of its clients.
Type: boolean
Default:
falseDeclared by:
services.gsignond.plugins¶
services.gvfs.enable¶
Whether to enable GVfs, a userspace virtual filesystem.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.gvfs.package¶
Which GVfs package to use.
Type: package
Default:
*(build of gvfs-1.42.2)*Declared by:
services.gvpe.enable¶
Whether to run gvpe
Type: unspecified
Default:
falseDeclared by:
services.gvpe.configFile¶
GVPE config file, if already present
Type: unspecified
Default:
nullExample:
"/root/my-gvpe-conf"Declared by:
services.gvpe.configText¶
GVPE config contents
Type: unspecified
Default:
nullExample:
'' tcp-port = 655 udp-port = 655 mtu = 1480 ifname = vpn0 node = alpha hostname = alpha.example.org connect = always enable-udp = true enable-tcp = true on alpha if-up = if-up-0 on alpha pid-file = /var/gvpe/gvpe.pid ''Declared by:
services.gvpe.customIFSetup¶
Additional commands to apply in ifup script
Type: unspecified
Default:
""Declared by:
services.gvpe.ipAddress¶
IP address to assign to GVPE interface
Type: unspecified
Default:
nullDeclared by:
services.gvpe.nodename¶
GVPE node name
Type: unspecified
Default:
nullDeclared by:
services.gvpe.subnet¶
IP subnet assigned to GVPE network
Type: unspecified
Default:
nullExample:
"10.0.0.0/8"Declared by:
services.hadoop.package¶
Type: package
Default:
"pkgs.hadoop"Example:
pkgs.hadoopDeclared by:
services.hadoop.coreSite¶
Hadoop core-site.xml definition
Type: unspecified
Default: ``{
}``
Example:
{ fs.defaultFS = "hdfs://localhost"; }Declared by:
services.hadoop.hdfs.datanode.enabled¶
Whether to run the Hadoop YARN DataNode
Type: boolean
Default:
falseDeclared by:
services.hadoop.hdfs.namenode.enabled¶
Whether to run the Hadoop YARN NameNode
Type: boolean
Default:
falseDeclared by:
services.hadoop.hdfsSite¶
Hadoop hdfs-site.xml definition
Type: unspecified
Default: ``{
}``
Example:
{ dfs.nameservices = "namenode1"; }Declared by:
services.hadoop.mapredSite¶
Hadoop mapred-site.xml definition
Type: unspecified
Default: ``{
}``
Example:
{ mapreduce.map.cpu.vcores = "1"; }Declared by:
services.hadoop.yarn.nodemanager.enabled¶
Whether to run the Hadoop YARN NodeManager
Type: boolean
Default:
falseDeclared by:
services.hadoop.yarn.resourcemanager.enabled¶
Whether to run the Hadoop YARN ResourceManager
Type: boolean
Default:
falseDeclared by:
services.hadoop.yarnSite¶
Hadoop yarn-site.xml definition
Type: unspecified
Default: ``{
}``
Example:
{ yarn.resourcemanager.ha.id = "resourcemanager1"; }Declared by:
services.hail.enable¶
Enables the Hail Auto Update Service. Hail can automatically deploy artifacts built by a Hydra Continous Integration server. A common use case is to provide continous deployment for single services or a full NixOS configuration.
Type: boolean
Default:
falseDeclared by:
services.hail.package¶
Hail package to use.
Type: package
Default:
"pkgs.haskellPackages.hail"Declared by:
services.hail.hydraJobUri¶
The URI of the Hydra Job.
Type: string
Declared by:
services.hail.netrc¶
The netrc file to use when fetching data from Hydra.
Type: null or path
Default:
nullDeclared by:
services.hail.profile¶
The name of the Nix profile used by Hail.
Type: string
Default:
"hail-profile"Declared by:
services.haka.enable¶
Whether to enable Haka.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.haka.package¶
Which Haka derivation to use.
Type: package
Default:
"pkgs.haka"Declared by:
services.haka.configFile¶
Specify which configuration file Haka uses. It can be absolute path or a path relative to the sample directory of the haka git repo.
Type: string
Default:
"empty.lua"Example:
"/srv/haka/myfilter.lua"Declared by:
services.haka.dump.enable¶
Whether to enable dump.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.haka.dump.input¶
Path to file where incoming packets are dumped
Type: path
Default:
"/tmp/input.pcap"Example:
"/path/to/file.pcap"Declared by:
services.haka.dump.output¶
Path to file where outgoing packets are dumped
Type: path
Default:
"/tmp/output.pcap"Example:
"/path/to/file.pcap"Declared by:
services.haka.interfaces¶
Specify which interface(s) Haka listens to. Use ‘any’ to listen to all interfaces.
Type: list of strings
Default:
[ "eth0" ]Example:
[ "any" ]Declared by:
services.haka.nfqueue¶
Whether to enable nfqueue.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.haka.pcap¶
Whether to enable pcap
Type: boolean
Default:
trueDeclared by:
services.haka.threads¶
The number of threads that will be used. All system threads are used by default.
Type: signed integer
Default:
0Example:
4Declared by:
services.hans.clients¶
Each attribute of this option defines a systemd service that runs hans. Many or none may be defined. The name of each service is``hans-name*`` where *name is the name of the corresponding attribute name.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ foo = { server = "192.0.2.1"; extraConfig = "-v"; } }Declared by:
services.hans.clients.<name>.extraConfig¶
Additional command line parameters
Type: string
Default:
""Example:
"-v"Declared by:
services.hans.clients.<name>.passwordFile¶
File that containts password
Type: string
Default:
""Declared by:
services.hans.clients.<name>.server¶
IP address of server running hans
Type: string
Default:
""Example:
"192.0.2.1"Declared by:
services.hans.server.enable¶
enable hans server
Type: boolean
Default:
falseDeclared by:
services.hans.server.extraConfig¶
Additional command line parameters
Type: string
Default:
""Example:
"-v"Declared by:
services.hans.server.ip¶
The assigned ip range
Type: string
Default:
""Example:
"198.51.100.0"Declared by:
services.hans.server.passwordFile¶
File that containts password
Type: string
Default:
""Declared by:
services.hans.server.respondToSystemPings¶
Force hans respond to ordinary pings
Type: boolean
Default:
falseDeclared by:
services.haproxy.enable¶
Whether to enable HAProxy, the reliable, high performance TCP/HTTP load balancer.
Type: boolean
Default:
falseDeclared by:
services.haproxy.config¶
Contents of the HAProxy configuration file,:file:haproxy.conf.
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.hardware.bolt.enable¶
Whether to enable Bolt, a userspace daemon to enable security levels for Thunderbolt 3 on GNU/Linux.
Bolt is used by GNOME 3 to handle Thunderbolt settings.
Type: boolean
Default:
falseDeclared by:
services.hardware.lcd.client.enable¶
Enable the LCD panel client (LCDproc)
Type: boolean
Default:
falseDeclared by:
services.hardware.lcd.client.extraConfig¶
Additional configuration added verbatim to the client config.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.hardware.lcd.client.restartForever¶
Try restarting the client forever.
Type: boolean
Default:
trueDeclared by:
services.hardware.lcd.server.enable¶
Enable the LCD panel server (LCDd)
Type: boolean
Default:
falseDeclared by:
services.hardware.lcd.server.extraConfig¶
Additional configuration added verbatim to the server config.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.hardware.lcd.server.openPorts¶
Open the ports in the firewall
Type: boolean
Default:
falseDeclared by:
services.hardware.lcd.server.usbGroup¶
The group to use for settings permissions. This group must exist or you will have to create it.
Type: string
Default:
"dialout"Declared by:
services.hardware.lcd.server.usbPermissions¶
Set group-write permissions on a USB device.
A USB connected LCD panel will most likely require having its permissions modified for lcdd to write to it. Enabling this option sets group-write permissions on the device identified by and. In order to find the values, you can run the lsusb command. Example output:
Bus 005 Device 002: ID 0403:c630 Future Technology Devices International, Ltd lcd2usb interfaceIn this case the vendor id is 0403 and the product id is c630.
Type: boolean
Default:
falseDeclared by:
services.hardware.lcd.server.usbPid¶
The product ID of the USB device to claim.
Type: string
Default:
""Declared by:
services.hardware.lcd.server.usbVid¶
The vendor ID of the USB device to claim.
Type: string
Default:
""Declared by:
services.hardware.lcd.serverHost¶
Host on which LCDd is listening.
Type: string
Default:
"localhost"Declared by:
services.hardware.lcd.serverPort¶
Port on which LCDd is listening.
Type: signed integer
Default:
13666Declared by:
services.hardware.pommed.enable¶
Whether to use the pommed tool to handle Apple laptop keyboard hotkeys.
Type: boolean
Default:
falseDeclared by:
services.hardware.pommed.configFile¶
The path to the
pommed.conffile. Leave to null to use the default config file (/etc/pommed.conf.mactel). See the files/etc/pommed.conf.macteland:file:/etc/pommed.conf.pmac for examples to build on.Type: null or path
Default:
nullDeclared by:
services.haveged.enable¶
Whether to enable to haveged entropy daemon, which refills /dev/random when low.
Type: boolean
Default:
falseDeclared by:
services.haveged.refill_threshold¶
The number of bits of available entropy beneath which haveged should refill the entropy pool.
Type: signed integer
Default:
1024Declared by:
services.hbase.enable¶
Whether to run HBase.
Type: boolean
Default:
falseDeclared by:
services.hbase.package¶
HBase package to use.
Type: package
Default:
"pkgs.hbase"Example:
pkgs.hbaseDeclared by:
services.hbase.dataDir¶
Specifies location of HBase database files. This location should be writable and readable for the user the HBase service runs as (hbase by default).
Type: path
Default:
"/var/lib/hbase"Declared by:
services.hbase.group¶
Group account under which HBase runs.
Type: string
Default:
"hbase"Declared by:
services.hbase.logDir¶
Specifies the location of HBase log files.
Type: path
Default:
"/var/log/hbase"Declared by:
services.hbase.user¶
User account under which HBase runs.
Type: string
Default:
"hbase"Declared by:
services.hdapsd.enable¶
Whether to enable Hard Drive Active Protection System Daemon, devices are detected and managed automatically by udev and systemd .
Type: boolean
Default:
falseExample:
trueDeclared by:
services.headphones.enable¶
Whether to enable the headphones server.
Type: boolean
Default:
falseDeclared by:
services.headphones.configFile¶
Path to config file.
Type: path
Default:
"/var/lib/headphones/config.ini"Declared by:
services.headphones.dataDir¶
Path where to store data files.
Type: path
Default:
"/var/lib/headphones"Declared by:
services.headphones.group¶
Group to run the service as
Type: string
Default:
"headphones"Declared by:
services.headphones.host¶
Host to listen on.
Type: string
Default:
"localhost"Declared by:
services.headphones.port¶
Port to bind to.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
8181Declared by:
services.headphones.user¶
User to run the service as
Type: string
Default:
"headphones"Declared by:
services.heapster.enable¶
Whether to enable heapster monitoring
Type: boolean
Default:
falseDeclared by:
services.heapster.package¶
Package to use by heapster
Type: package
Default:
"pkgs.heapster"Declared by:
services.heapster.extraOpts¶
Heapster extra options
Type: strings concatenated with ” “
Default:
""Declared by:
services.heapster.sink¶
Heapster metic sink
Type: string
Example:
"influxdb:http://localhost:8086"Declared by:
services.heapster.source¶
Heapster metric source
Type: string
Example:
"kubernetes:https://kubernetes.default"Declared by:
services.heartbeat.enable¶
Whether to enable heartbeat.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.heartbeat.extraConfig¶
Any other configuration options you want to add
Type: strings concatenated with “\n”
Default:
'' heartbeat.monitors: - type: http urls: ["http://localhost:9200"] schedule: '@every 10s' ''Declared by:
services.heartbeat.name¶
Name of the beat
Type: string
Default:
"heartbeat"Declared by:
services.heartbeat.stateDir¶
The state directory. heartbeat’s own logs and other data are stored here.
Type: string
Default:
"/var/lib/heartbeat"Declared by:
services.heartbeat.tags¶
services.heyefi.enable¶
Whether to enable heyefi.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.heyefi.cardMacaddress¶
An Eye-Fi card MAC address.
Type: unspecified
Default:
""Declared by:
services.heyefi.uploadDir¶
The directory to upload the files to.
Type: unspecified
Example:
"/home/username/pictures"Declared by:
services.heyefi.uploadKey¶
An Eye-Fi card’s upload key.
Type: unspecified
Default:
""Declared by:
services.heyefi.user¶
heyefi will be run under this user (user must exist, this can be your user name).
Type: unspecified
Default:
"root"Declared by:
services.hitch.enable¶
Whether to enable Hitch Server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.hitch.backend¶
The host and port Hitch connects to when receiving a connection in the form [HOST]:PORT
Type: string
Declared by:
services.hitch.ciphers¶
The list of ciphers to use
Type: string
Default:
"EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH"Declared by:
services.hitch.extraConfig¶
Additional configuration lines
Type: strings concatenated with “\n”
Default:
""Declared by:
services.hitch.frontend¶
The port and interface of the listen endpoint in the + form [HOST]:PORT[+CERT].
Type: string or list of strings
Default:
"\[127.0.0.1]:443"Declared by:
services.hitch.group¶
The group to run as
Type: string
Default:
"hitch"Declared by:
services.hitch.ocsp-stapling.enabled¶
Whether to enable OCSP Stapling
Type: boolean
Default:
trueDeclared by:
services.hitch.user¶
The user to run as
Type: string
Default:
"hitch"Declared by:
services.hologram-agent.enable¶
Whether to enable the Hologram agent for AWS instance credentials
Type: boolean
Default:
falseDeclared by:
services.hologram-agent.dialAddress¶
Hologram server and port.
Type: string
Default:
"localhost:3100"Declared by:
services.hologram-agent.httpPort¶
Port for metadata service to listen on.
Type: string
Default:
"80"Declared by:
services.hologram-server.enable¶
Whether to enable the Hologram server for AWS instance credentials
Type: boolean
Default:
falseDeclared by:
services.hologram-server.enableLdapRoles¶
Whether to assign user roles based on the user’s LDAP group memberships
Type: boolean
Default:
falseDeclared by:
services.hologram-server.awsAccount¶
AWS account number
Type: string
Declared by:
services.hologram-server.awsDefaultRole¶
AWS default role
Type: string
Declared by:
services.hologram-server.cacheTimeoutSeconds¶
How often (in seconds) to refresh the LDAP cache
Type: signed integer
Default:
3600Declared by:
services.hologram-server.groupClassAttr¶
The objectclass attribute to search for groups when enableLdapRoles is true
Type: string
Default:
"groupOfNames"Declared by:
services.hologram-server.ldapBaseDN¶
The base DN for your Hologram users
Type: string
Declared by:
services.hologram-server.ldapBindDN¶
DN of account to use to query the LDAP server
Type: string
Declared by:
services.hologram-server.ldapBindPassword¶
Password of account to use to query the LDAP server
Type: string
Declared by:
services.hologram-server.ldapHost¶
Address of the LDAP server to use
Type: string
Declared by:
services.hologram-server.ldapInsecure¶
Whether to connect to LDAP over SSL or not
Type: boolean
Default:
falseDeclared by:
services.hologram-server.ldapUserAttr¶
The LDAP attribute for usernames
Type: string
Default:
"cn"Declared by:
services.hologram-server.listenAddress¶
Address and port to listen on
Type: string
Default:
"0.0.0.0:3100"Declared by:
services.hologram-server.roleAttr¶
Which LDAP group attribute to search for authorized role ARNs
Type: string
Default:
"businessCategory"Declared by:
services.hologram-server.statsAddress¶
Address of statsd server
Type: string
Default:
""Declared by:
services.home-assistant.enable¶
Whether to enable Home Assistant.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.home-assistant.package¶
Home Assistant package to use. Override
extraPackagesorextraComponentsin order to add additional dependencies. If you specify and do not set tofalse, overridingextraComponentswill have no effect.Type: package
Default:
"pkgs.home-assistant"Example:
pkgs.home-assistant.override { extraPackages = ps: with ps; [ colorlog ]; }Declared by:
services.home-assistant.applyDefaultConfig¶
Setting this option enables a few configuration options for HA based on NixOS configuration (such as time zone) to avoid having to manually specify configuration we already have.
Currently one side effect of enabling this is that the
httpcomponent will be enabled.This only takes effect if
config != nullin order to ensure that a manually managedconfiguration.yamlis not overwritten.Type: boolean
Default:
trueDeclared by:
services.home-assistant.autoExtraComponents¶
If set to
true, the components used inconfigare set as the specified package’sextraComponents. This in turn adds all packaged dependencies to the derivation. You might still see import errors in your log. In this case, you will need to package the necessary dependencies yourself or ask for someone else to package them. If a dependency is packaged but not automatically added to this list, you might need to specify it inextraPackages.Type: boolean
Default:
trueDeclared by:
services.home-assistant.config¶
Your
configuration.yamlas a Nix attribute set. Beware that setting this option will delete your previousconfiguration.yaml.`Secrets <https://www.home-assistant.io/docs/configuration/secrets/>`_ are encoded as strings as shown in the example.Type: null or attribute set
Default:
nullExample:
{ homeassistant = { name = "Home"; latitude = "!secret latitude"; longitude = "!secret longitude"; elevation = "!secret elevation"; unit_system = "metric"; time_zone = "UTC"; }; frontend = { }; http = { }; feedreader.urls = [ "https://nixos.org/blogs.xml" ]; }Declared by:
services.home-assistant.configDir¶
The config directory, where your
configuration.yamlis located.Type: path
Default:
"/var/lib/hass"Declared by:
services.home-assistant.configWritable¶
Whether to make
configuration.yamlwritable. This only has an effect if is set. This will allow you to edit it from Home Assistant’s web interface. However, bear in mind that it will be overwritten at every start of the service.Type: boolean
Default:
falseDeclared by:
services.home-assistant.lovelaceConfig¶
Your
ui-lovelace.yamlas a Nix attribute set. Setting this option will automatically add``lovelace.mode = “yaml”;`` to your . Beware that setting this option will delete your previousui-lovelace.yamlType: null or attribute set
Default:
nullExample:
{ title = "My Awesome Home"; views = [ { title = "Example"; cards = [ { type = "markdown"; title = "Lovelace"; content = "Welcome to your **Lovelace UI**."; } ]; } ]; }Declared by:
services.home-assistant.lovelaceConfigWritable¶
Whether to make
ui-lovelace.yamlwritable. This only has an effect if is set. This will allow you to edit it from Home Assistant’s web interface. However, bear in mind that it will be overwritten at every start of the service.Type: boolean
Default:
falseDeclared by:
services.home-assistant.openFirewall¶
Whether to open the firewall for the specified port.
Type: boolean
Default:
falseDeclared by:
services.home-assistant.port¶
The port on which to listen.
Type: signed integer
Default:
8123Declared by:
services.hoogle.enable¶
Whether to enable Haskell documentation server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.hoogle.packages¶
The Haskell packages to generate documentation for.
The option value is a function that takes the package set specified in the
haskellPackagesoption as its sole parameter and returns a list of packages.Type: unspecified
Default:
"hp: \[]"Example:
"hp: with hp; [ text lens ]"Declared by:
services.hoogle.haskellPackages¶
Which haskell package set to use.
Type: unspecified
Default:
"pkgs.haskellPackages"Declared by:
services.hoogle.home¶
Url for hoogle logo
Type: string
Default:
"https://hoogle.haskell.org"Declared by:
services.hoogle.port¶
Port number Hoogle will be listening to.
Type: signed integer
Default:
8080Declared by:
services.hostapd.enable¶
Enable putting a wireless interface into infrastructure mode, allowing other wireless devices to associate with the wireless interface and do wireless networking. A simple access point will,, and, as well as DHCP on the wireless interface to provide IP addresses to the associated stations, and NAT (from the wireless interface to an upstream interface).
Type: unspecified
Default:
falseDeclared by:
services.hostapd.channel¶
Channel number (IEEE 802.11) Please note that some drivers do not use this value from:command:hostapd and the channel will need to be configured separately with iwconfig.
Type: signed integer
Default:
7Example:
11Declared by:
services.hostapd.driver¶
Which driver hostapd will use. Most applications will probably use the default.
Type: string
Default:
"nl80211"Example:
"hostapd"Declared by:
services.hostapd.extraConfig¶
Extra configuration options to put in hostapd.conf.
Type: strings concatenated with “\n”
Default:
""Example:
'' auth_algo=0 ieee80211n=1 ht_capab=[HT40-][SHORT-GI-40][DSSS_CCK-40] ''Declared by:
services.hostapd.group¶
Members of this group can control hostapd.
Type: string
Default:
"wheel"Example:
"network"Declared by:
services.hostapd.hwMode¶
Operation mode. (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g).
Type: one of “a”, “b”, “g”
Default:
"g"Declared by:
services.hostapd.interface¶
The interfaces hostapd will use.
Type: unspecified
Default:
""Example:
"wlp2s0"Declared by:
services.hostapd.noScan¶
Do not scan for overlapping BSSs in HT40+/- mode. Caution: turning this on will violate regulatory requirements!
Type: unspecified
Default:
falseDeclared by:
services.hostapd.ssid¶
SSID to be used in IEEE 802.11 management frames.
Type: string
Default:
"nixos"Example:
"mySpecialSSID"Declared by:
services.hostapd.wpa¶
Enable WPA (IEEE 802.11i/D3.0) to authenticate with the access point.
Type: unspecified
Default:
trueDeclared by:
services.hostapd.wpaPassphrase¶
WPA-PSK (pre-shared-key) passphrase. Clients will need this passphrase to associate with this access point. Warning: This passphrase will get put into a world-readable file in the Nix store!
Type: string
Default:
"my_sekret"Example:
"any_64_char_string"Declared by:
services.hound.enable¶
Whether to enable the hound code search daemon.
Type: boolean
Default:
falseDeclared by:
services.hound.package¶
Package for running hound.
Type: package
Default:
"pkgs.hound"Declared by:
services.hound.config¶
The full configuration of the Hound daemon. Note the dbpath should be an absolute path to a writable location on disk.
Type: string
Example:
'' { "max-concurrent-indexers" : 2, "dbpath" : "''${services.hound.home}/data", "repos" : { "nixpkgs": { "url" : "https://www.github.com/NixOS/nixpkgs.git" } } } ''Declared by:
services.hound.extraGroups¶
List of extra groups that the “hound” user should be a part of.
Type: list of strings
Default: ``[
]``
Example:
[ "dialout" ]Declared by:
services.hound.group¶
Group the hound daemon should execute under.
Type: string
Default:
"hound"Declared by:
services.hound.home¶
The path to use as hound’s $HOME. If the default user “hound” is configured then this is the home of the “hound” user.
Type: path
Default:
"/var/lib/hound"Declared by:
services.hound.listen¶
Listen on this IP:port / :port
Type: string
Default:
"0.0.0.0:6080"Example:
"127.0.0.1:6080 or just :6080"Declared by:
services.hound.user¶
User the hound daemon should execute under.
Type: string
Default:
"hound"Declared by:
services.htpdate.enable¶
Enable htpdate daemon.
Type: boolean
Default:
falseDeclared by:
services.htpdate.extraOptions¶
Additional command line arguments to pass to htpdate.
Type: string
Default:
""Declared by:
services.htpdate.proxy¶
HTTP proxy used for requests.
Type: string
Default:
""Example:
"127.0.0.1:8118"Declared by:
services.htpdate.servers¶
HTTP servers to use for time synchronization.
Type: list of strings
Default:
[ "www.google.com" ]Declared by:
services.httpd.enable¶
Whether to enable the Apache HTTP Server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.httpd.enableMellon¶
Whether to enable the mod_auth_mellon module.
Type: boolean
Default:
falseDeclared by:
services.httpd.enablePHP¶
Whether to enable the PHP module.
Type: boolean
Default:
falseDeclared by:
services.httpd.enablePerl¶
Whether to enable the Perl module (mod_perl).
Type: boolean
Default:
falseDeclared by:
services.httpd.package¶
Overridable attribute of the Apache HTTP Server package to use.
Type: package
Default:
"pkgs.apacheHttpd"Declared by:
services.httpd.adminAddr¶
E-mail address of the server administrator.
Type: string
Example:
"admin@example.org"Declared by:
services.httpd.configFile¶
Override the configuration file used by Apache. By default, NixOS generates one automatically.
Type: path
Default:
"confFile"Example:
pkgs.writeText "httpd.conf" "# my custom config file ..."Declared by:
services.httpd.extraConfig¶
Configuration lines appended to the generated Apache configuration file. Note that this mechanism will not work when is overridden.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.httpd.extraModules¶
Additional Apache modules to be used. These can be specified as a string in the case of modules distributed with Apache, or as an attribute set specifying the``name`` and
pathof the module.Type: list of unspecifieds
Default: ``[
]``
Example:
[ "proxy_connect" { name = "jk"; path = "${pkgs.tomcat_connectors}/modules/mod_jk.so"; } ]Declared by:
services.httpd.group¶
Group under which httpd runs.
Type: string
Default:
"wwwrun"Declared by:
services.httpd.logDir¶
Directory for Apache’s log files. It is created automatically.
Type: path
Default:
"/var/log/httpd"Declared by:
services.httpd.logFormat¶
Log format for log files. Possible values are: combined, common, referer, agent. See ` <https://httpd.apache.org/docs/2.4/logs.html>`_ for more details.
Type: string
Default:
"common"Example:
"combined"Declared by:
services.httpd.logPerVirtualHost¶
If enabled, each virtual host gets its own:file:access.log and:file:error.log, namely suffixed by the of the virtual host.
Type: boolean
Default:
trueDeclared by:
services.httpd.maxClients¶
Maximum number of httpd processes (prefork)
Type: signed integer
Default:
150Example:
8Declared by:
services.httpd.maxRequestsPerChild¶
Maximum number of httpd requests answered per httpd child (prefork), 0 means unlimited.
Type: signed integer
Default:
0Example:
500Declared by:
services.httpd.multiProcessingModule¶
Multi-processing module to be used by Apache. Available modules are
prefork(the default; handles each request in a separate child process),``worker`` (hybrid approach that starts a number of child processes each running a number of threads) andevent(a recent variant of``worker`` that handles persistent connections more efficiently).Type: one of “event”, “prefork”, “worker”
Default:
"prefork"Example:
"worker"Declared by:
services.httpd.phpOptions¶
Options appended to the PHP configuration file
php.ini.Type: strings concatenated with “\n”
Default:
""Example:
'' date.timezone = "CET" ''Declared by:
services.httpd.phpPackage¶
Overridable attribute of the PHP package to use.
Type: package
Default:
"pkgs.php"Declared by:
services.httpd.sslCiphers¶
Cipher Suite available for negotiation in SSL proxy handshake.
Type: string
Default:
"HIGH:!aNULL:!MD5:!EXP"Declared by:
services.httpd.sslProtocols¶
Allowed SSL/TLS protocol versions.
Type: string
Default:
"All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1"Example:
"All -SSLv2 -SSLv3"Declared by:
services.httpd.user¶
User account under which httpd runs.
Type: string
Default:
"wwwrun"Declared by:
services.httpd.virtualHosts¶
Specification of the virtual hosts served by Apache. Each element should be an attribute set specifying the configuration of the virtual host.
Type: attribute set of submodules
Default:
{ localhost = { documentRoot = "\\${pkgs.apacheHttpd.out}/htdocs"; } ; }Example:
{ "foo.example.com" = { forceSSL = true; documentRoot = "/var/www/foo.example.com" }; "bar.example.com" = { addSSL = true; documentRoot = "/var/www/bar.example.com"; }; }Declared by:
services.httpd.virtualHosts.<name>.enableACME¶
Whether to ask Let’s Encrypt to sign a certificate for this vhost. Alternately, you can use an existing certificate through .
Type: boolean
Default:
falseDeclared by:
services.httpd.virtualHosts.<name>.enableUserDir¶
Whether to enable serving
~/public_htmlas``/~*username*``.Type: boolean
Default:
falseDeclared by:
services.httpd.virtualHosts.<name>.acmeRoot¶
Directory for the acme challenge which is PUBLIC, don’t put certs or keys in here
Type: string
Default:
"/var/lib/acme/acme-challenges"Declared by:
services.httpd.virtualHosts.<name>.addSSL¶
Whether to enable HTTPS in addition to plain HTTP. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443).
Type: boolean
Default:
falseDeclared by:
services.httpd.virtualHosts.<name>.adminAddr¶
E-mail address of the server administrator.
Type: null or string
Default:
nullExample:
"admin@example.org"Declared by:
services.httpd.virtualHosts.<name>.documentRoot¶
The path of Apache’s document root directory. If left undefined, an empty directory in the Nix store will be used as root.
Type: null or path
Default:
nullExample:
"/data/webserver/docs"Declared by:
services.httpd.virtualHosts.<name>.extraConfig¶
These lines go to httpd.conf verbatim. They will go after directories and directory aliases defined by default.
Type: strings concatenated with “\n”
Default:
""Example:
'' <Directory /home> Options FollowSymlinks AllowOverride All </Directory> ''Declared by:
services.httpd.virtualHosts.<name>.forceSSL¶
Whether to add a separate nginx server block that permanently redirects (301) all plain HTTP traffic to HTTPS. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443), where the non-SSL listens are used for the redirect vhosts.
Type: boolean
Default:
falseDeclared by:
services.httpd.virtualHosts.<name>.globalRedirect¶
If set, all requests for this host are redirected permanently to the given URL.
Type: null or string
Default:
nullExample:
"http://newserver.example.org/"Declared by:
services.httpd.virtualHosts.<name>.hostName¶
Canonical hostname for the server.
Type: string
Default:
"‹name›"Declared by:
services.httpd.virtualHosts.<name>.http2¶
Whether to enable HTTP 2. HTTP/2 is supported in all multi-processing modules that come with httpd. However, if you use the prefork mpm, there will be severe restrictions. Refer to ` <https://httpd.apache.org/docs/2.4/howto/http2.html#mpm-config>`_ for details.
Type: boolean
Default:
falseDeclared by:
services.httpd.virtualHosts.<name>.listen¶
services.httpd.virtualHosts.<name>.listen.*.ip¶
IP to listen on. 0.0.0.0 for IPv4 only, * for all.
Type: string
Default:
"\*"Declared by:
services.httpd.virtualHosts.<name>.listen.*.port¶
Port to listen on
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Declared by:
services.httpd.virtualHosts.<name>.listen.*.ssl¶
Whether to enable SSL (https) support.
Type: boolean
Default:
falseDeclared by:
services.httpd.virtualHosts.<name>.locations¶
Declarative location config. See ` <https://httpd.apache.org/docs/2.4/mod/core.html#location>`_ for details.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ "/" = { proxyPass = "http://localhost:3000"; }; "/foo/bar.png" = { alias = "/home/eelco/some-file.png"; }; };Declared by:
services.httpd.virtualHosts.<name>.locations.<name>.alias¶
Alias directory for requests. See ` <https://httpd.apache.org/docs/2.4/mod/mod_alias.html#alias>`_.
Type: null or path
Default:
nullExample:
"/your/alias/directory"Declared by:
services.httpd.virtualHosts.<name>.locations.<name>.extraConfig¶
These lines go to the end of the location verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.httpd.virtualHosts.<name>.locations.<name>.index¶
Adds DirectoryIndex directive. See ` <https://httpd.apache.org/docs/2.4/mod/mod_dir.html#directoryindex>`_.
Type: null or string
Default:
nullExample:
"index.php index.html"Declared by:
services.httpd.virtualHosts.<name>.locations.<name>.priority¶
Order of this location block in relation to the others in the vhost. The semantics are the same as with `lib.mkOrder`. Smaller values have a greater priority.
Type: signed integer
Default:
1000Declared by:
services.httpd.virtualHosts.<name>.locations.<name>.proxyPass¶
Sets up a simple reverse proxy as described by ` <https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html#simple>`_.
Type: null or string
Default:
nullExample:
"http://www.example.org/"Declared by:
services.httpd.virtualHosts.<name>.logFormat¶
Log format for Apache’s log files. Possible values are: combined, common, referer, agent.
Type: string
Default:
"common"Example:
"combined"Declared by:
services.httpd.virtualHosts.<name>.onlySSL¶
Whether to enable HTTPS and reject plain HTTP connections. This will set defaults for
listento listen on all interfaces on port 443.Type: boolean
Default:
falseDeclared by:
services.httpd.virtualHosts.<name>.robotsEntries¶
Specification of pages to be ignored by web crawlers. See ` <http://www.robotstxt.org/>`_ for details.
Type: strings concatenated with “\n”
Default:
""Example:
"Disallow: /foo/"Declared by:
services.httpd.virtualHosts.<name>.servedDirs¶
services.httpd.virtualHosts.<name>.servedFiles¶
This option provides a simple way to serve individual, static files.
Note
This option has been deprecated and will be removed in a future version of NixOS. You can achieve the same result by making use of the
locations.<name>.aliasoption.Type: list of attribute sets
Default: ``[
]``
Example: ``[
{ file = “/home/eelco/some-file.png”; urlPath = “/foo/bar.png”; }
]``
Declared by:
services.httpd.virtualHosts.<name>.serverAliases¶
Additional names of virtual hosts served by this virtual host configuration.
Type: list of strings
Default: ``[
]``
Example:
[ "www.example.org" "www.example.org:8080" "example.org" ]Declared by:
services.httpd.virtualHosts.<name>.sslServerCert¶
Path to server SSL certificate.
Type: path
Example:
"/var/host.cert"Declared by:
services.httpd.virtualHosts.<name>.sslServerChain¶
Path to server SSL chain file.
Type: null or path
Default:
nullExample:
"/var/ca.pem"Declared by:
services.httpd.virtualHosts.<name>.sslServerKey¶
Path to server SSL certificate key.
Type: path
Example:
"/var/host.key"Declared by:
services.httpd.virtualHosts.<name>.useACMEHost¶
A host of an existing Let’s Encrypt certificate to use. This is useful if you have many subdomains and want to avoid hitting the`rate limit <https://letsencrypt.org/docs/rate-limits/>`_. Alternately, you can generate a certificate through .*Note that this option does not create any certificates, nor it does add subdomains to existing ones – you will need to create them manually using security.acme.certs.*
Type: null or string
Default:
nullDeclared by:
services.hydra.enable¶
Whether to run Hydra services.
Type: boolean
Default:
falseDeclared by:
services.hydra.package¶
The Hydra package.
Type: path
Default:
"pkgs.hydra"Declared by:
services.hydra.buildMachinesFiles¶
List of files containing build machines.
Type: list of paths
Default: ``[
]``
Example:
[ "/etc/nix/machines" "/var/lib/hydra/provisioner/machines" ]Declared by:
services.hydra.dbi¶
The DBI string for Hydra database connection.
Type: string
Default:
"dbi:Pg:dbname=hydra;user=hydra;"Example:
"dbi:Pg:dbname=hydra;host=postgres.example.org;user=foo;"Declared by:
services.hydra.debugServer¶
Whether to run the server in debug mode.
Type: boolean
Default:
falseDeclared by:
services.hydra.extraConfig¶
Extra lines for the Hydra configuration.
Type: strings concatenated with “\n”
Declared by:
services.hydra.extraEnv¶
services.hydra.gcRootsDir¶
Directory that holds Hydra garbage collector roots.
Type: path
Default:
"/nix/var/nix/gcroots/hydra"Declared by:
services.hydra.hydraURL¶
The base URL for the Hydra webserver instance. Used for links in emails.
Type: string
Declared by:
services.hydra.listenHost¶
The hostname or address to listen on or
*to listen on all interfaces.Type: string
Default:
"\*"Example:
"localhost"Declared by:
services.hydra.logo¶
Path to a file containing the logo of your Hydra instance.
Type: null or path
Default:
nullDeclared by:
services.hydra.minimumDiskFree¶
Threshold of minimum disk space (GiB) to determine if the queue runner should run or not.
Type: signed integer
Default:
0Declared by:
services.hydra.minimumDiskFreeEvaluator¶
Threshold of minimum disk space (GiB) to determine if the evaluator should run or not.
Type: signed integer
Default:
0Declared by:
services.hydra.notificationSender¶
Sender email address used for email notifications.
Type: string
Declared by:
services.hydra.port¶
TCP port the web server should listen to.
Type: signed integer
Default:
3000Declared by:
services.hydra.smtpHost¶
Hostname of the SMTP server to use to send email.
Type: null or string
Default:
nullExample:
[ "localhost" ]Declared by:
services.hydra.tracker¶
Piece of HTML that is included on all pages.
Type: string
Default:
""Declared by:
services.hydra.useSubstitutes¶
Whether to use binary caches for downloading store paths. Note that binary substitutions trigger (a potentially large number of) additional HTTP requests that slow down the queue monitor thread significantly. Also, this Hydra instance will serve those downloaded store paths to its users with its own signature attached as if it had built them itself, so don’t enable this feature unless your active binary caches are absolute trustworthy.
Type: boolean
Default:
falseDeclared by:
services.hydron.enable¶
Whether to enable hydron.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.hydron.dataDir¶
Location where hydron runs and stores data.
Type: path
Default:
"/var/lib/hydron"Example:
"/home/okina/hydron"Declared by:
services.hydron.fetchTags¶
Fetch tags for imported images and webm from gelbooru.
Type: boolean
Default:
trueDeclared by:
services.hydron.importPaths¶
Paths that hydron will recursively import.
Type: list of paths
Default: ``[
]``
Example:
[ "/home/okina/Pictures" ]Declared by:
services.hydron.interval¶
How often we run hydron import and possibly fetch tags. Runs by default every week.
The format is described insystemd.time7.
Type: string
Default:
"weekly"Example:
"06:00"Declared by:
services.hydron.listenAddress¶
Listen on a specific IP address and port.
Type: null or string
Default:
nullExample:
"127.0.0.1:8010"Declared by:
services.hydron.password¶
Password for the hydron database.
Type: string
Default:
"hydron"Example:
"dumbpass"Declared by:
services.hydron.passwordFile¶
Password file for the hydron database.
Type: path
Default:
"/run/keys/hydron-password-file"Example:
"/home/okina/hydron/keys/pass"Declared by:
services.hydron.postgresArgs¶
Postgresql connection arguments.
Type: string
Example:
'' { "driver": "postgres", "connection": "user=hydron password=dumbpass dbname=hydron sslmode=disable" } ''Declared by:
services.hydron.postgresArgsFile¶
Postgresql connection arguments file.
Type: path
Default:
"/run/keys/hydron-postgres-args"Example:
"/home/okina/hydron/keys/postgres"Declared by:
services.hylafax.enable¶
Whether to enable HylaFAX server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.hylafax.areaCode¶
Area code for server and all modems.
Type: null or string
Default:
nullExample:
"30"Declared by:
services.hylafax.autostart¶
Autostart the HylaFAX queue manager at system start. If this is
false, the queue manager will still be started if there are pending jobs or if a user tries to connect to it.Type: boolean
Default:
trueExample:
falseDeclared by:
services.hylafax.commonModemConfig¶
Attribute set of default values for modem config files
etc/config.*. Values can be either strings or integers (which will be added to the config file verbatimly) or lists thereof (which will be translated to multiple lines with the same configuration key). Boolean values are translated to “Yes” or “No”. The default contains some reasonable configuration to yield an operational system.Think twice before changing paths of fax-processing scripts.
Type: attribute set of list of string or signed integer convertible to it or boolean convertible to its or string or signed integer convertible to it or boolean convertible to it convertible to its
Example:
{ InternationalPrefix = "00"; LongDistancePrefix = "0"; }Declared by:
services.hylafax.countryCode¶
Country code for server and all modems.
Type: null or string
Default:
nullExample:
"49"Declared by:
services.hylafax.faxcron.enable.frequency¶
Purge old files from the spooling area with:file:faxcron with the given frequency (see systemd.time(7)).
Type: null or string
Default:
nullExample:
"daily"Declared by:
services.hylafax.faxcron.enable.spoolInit¶
Whether to enable Purge old files from the spooling area with:file:faxcron each time the spooling area is initialized. .
Type: boolean
Default:
falseExample:
trueDeclared by:
services.hylafax.faxcron.infoDays¶
Set the expiration time for data in the remote machine information directory in days.
Type: signed integer
Default:
30Declared by:
services.hylafax.faxcron.logDays¶
Set the expiration time for session trace log files in days.
Type: signed integer
Default:
30Declared by:
services.hylafax.faxcron.rcvDays¶
Set the expiration time for files in the received facsimile queue in days.
Type: signed integer
Default:
7Declared by:
services.hylafax.faxqConfig¶
Attribute set of lines for the global faxq config file
etc/config. Values can be either strings or integers (which will be added to the config file verbatimly) or lists thereof (which will be translated to multiple lines with the same configuration key). Boolean values are translated to “Yes” or “No”. The default contains some reasonable configuration to yield an operational system.Type: attribute set of list of string or signed integer convertible to it or boolean convertible to its or string or signed integer convertible to it or boolean convertible to it convertible to its
Example:
{ InternationalPrefix = "00"; LongDistancePrefix = "0"; }Declared by:
services.hylafax.faxqclean.enable.frequency¶
Purge old files from the spooling area with:file:faxcron with the given frequency (see systemd.time(7)).
Type: null or string
Default:
nullExample:
"daily"Declared by:
services.hylafax.faxqclean.enable.spoolInit¶
Whether to enable Purge old files from the spooling area with:file:faxqclean each time the spooling area is initialized. .
Type: boolean
Default:
falseExample:
trueDeclared by:
services.hylafax.faxqclean.archiving¶
Enable or suppress job archiving:
neverdisables job archiving,``as-flagged`` archives jobs that have been flagged for archiving by sendfax,``always`` forces archiving of all jobs. See also sendfax(1) and faxqclean(8).Type: one of “never”, “as-flagged”, “always”
Default:
"as-flagged"Example:
"always"Declared by:
services.hylafax.faxqclean.docqMinutes¶
Set the document age threshold (in minutes) that controls how long unreferenced files may reside in the docq directory.
Type: signed integer
Default:
60Example:
24*60Declared by:
services.hylafax.faxqclean.doneqMinutes¶
Set the job age threshold (in minutes) that controls how long jobs may reside in the doneq directory.
Type: signed integer
Default:
15Example:
24*60Declared by:
services.hylafax.hfaxdConfig¶
Attribute set of lines for the global hfaxd config file
etc/hfaxd.conf. Values can be either strings or integers (which will be added to the config file verbatimly) or lists thereof (which will be translated to multiple lines with the same configuration key). Boolean values are translated to “Yes” or “No”. The default contains some reasonable configuration to yield an operational system.Type: attribute set of list of string or signed integer convertible to it or boolean convertible to its or string or signed integer convertible to it or boolean convertible to it convertible to its
Example:
{ RecvqProtection = "0400"; }Declared by:
services.hylafax.internationalPrefix¶
International prefix for server and all modems.
Type: null or string
Default:
nullExample:
"00"Declared by:
services.hylafax.longDistancePrefix¶
Long distance prefix for server and all modems.
Type: null or string
Default:
nullExample:
"0"Declared by:
services.hylafax.modems¶
Description of installed modems. At least on modem must be defined to enable the HylaFAX server.
Type: list or attribute set of submodules
Default: ``{
}``
Example:
{ ttyS1 = { config = { FAXNumber = "123456"; LocalIdentifier = "Smith"; } ; type = "cirrus"; } ; }Declared by:
services.hylafax.modems.<name?>.config¶
Attribute set of values for the given modem. Values can be either strings or integers (which will be added to the config file verbatimly) or lists thereof (which will be translated to multiple lines with the same configuration key). Boolean values are translated to “Yes” or “No”. The default contains some reasonable configuration to yield an operational system.
Options defined here override options in for this modem.
Type: attribute set of list of string or signed integer convertible to it or boolean convertible to its or string or signed integer convertible to it or boolean convertible to it convertible to its
Example:
{ AreaCode = "49"; FAXNumber = "123456"; LocalCode = "30"; LocalIdentifier = "LostInBerlin"; }Declared by:
services.hylafax.modems.<name?>.name¶
Name of modem device, will be searched for in
/dev.Type: string
Example:
"ttyS1"Declared by:
services.hylafax.modems.<name?>.type¶
Name of modem configuration file, will be searched for in
configin the spooling area directory.Type: string
Example:
"cirrus"Declared by:
services.hylafax.sendmailPath¶
Path to
sendmailprogram. The default uses the local sendmail wrapper (see ), otherwise thefalsebinary to cause an error if used.Type: path
Example:
''${pkgs.postfix}/bin/sendmailDeclared by:
services.hylafax.spoolAreaPath¶
The spooling area will be created/maintained at the location given here.
Type: path
Default:
"/var/spool/fax"Declared by:
services.hylafax.spoolExtraInit¶
Additional shell code that is executed within the spooling area directory right after its setup.
Type: strings concatenated with “\n”
Default:
""Example:
"chmod 0755 . # everyone may read my faxes"Declared by:
services.hylafax.userAccessFile¶
The
hosts.hfaxdfile entry in the spooling area will be symlinked to the location given here. This file must exist and be readable only by theuucpuser. See hosts.hfaxd(5) for details. This configuration permits access for all users:environment.etc."hosts.hfaxd" = { mode = "0600"; user = "uucp"; text = ".*"; };Note that host-based access can be controlled with; by default, only 127.0.0.1 is permitted to connect.Type: path
Default:
"/etc/hosts.hfaxd"Declared by:
services.i2p.enable¶
Whether to enable I2P router.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.enable¶
Enables I2Pd as a running service upon activation. Please read http://i2pd.readthedocs.io/en/latest/ for further configuration help.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.enableIPv4¶
Whether to enable IPv4 connectivity.
Type: boolean
Default:
trueExample:
trueDeclared by:
services.i2pd.enableIPv6¶
Whether to enable IPv6 connectivity.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.address¶
Your external IP or hostname.
Type: null or string
Default:
nullDeclared by:
services.i2pd.addressbook.defaulturl¶
AddressBook subscription URL for initial setup
Type: string
Default:
"http://joajgazyztfssty4w2on5oaqksz6tqoxbduy553y34mf4byv6gpq.b32.i2p/export/alive-hosts.txt"Declared by:
services.i2pd.addressbook.subscriptions¶
AddressBook subscription URLs
Type: list of strings
Default:
[ "http://inr.i2p/export/alive-hosts.txt" "http://i2p-projekt.i2p/hosts.txt" "http://stats.i2p/cgi-bin/newhosts.txt" ]Declared by:
services.i2pd.bandwidth¶
Set a router bandwidth limit integer in KBps. If not set, i2pd defaults to 32KBps.
Type: null or signed integer
Default:
nullDeclared by:
services.i2pd.dataDir¶
Alternative path to storage of i2pd data (RI, keys, peer profiles, …)
Type: null or string
Default:
nullDeclared by:
services.i2pd.exploratory.inbound.length¶
Guaranteed minimum hops for exploratory tunnels.
Type: signed integer
Default:
3Declared by:
services.i2pd.exploratory.inbound.quantity¶
Number of simultaneous exploratory tunnels.
Type: signed integer
Default:
5Declared by:
services.i2pd.exploratory.outbound.length¶
Guaranteed minimum hops for exploratory tunnels.
Type: signed integer
Default:
3Declared by:
services.i2pd.exploratory.outbound.quantity¶
Number of simultaneous exploratory tunnels.
Type: signed integer
Default:
5Declared by:
services.i2pd.family¶
Specify a family the router belongs to.
Type: null or string
Default:
nullDeclared by:
services.i2pd.floodfill¶
If the router is declared to be unreachable and needs introduction nodes.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.ifname¶
Network interface to bind to.
Type: null or string
Default:
nullDeclared by:
services.i2pd.ifname4¶
IPv4 interface to bind to.
Type: null or string
Default:
nullDeclared by:
services.i2pd.ifname6¶
IPv6 interface to bind to.
Type: null or string
Default:
nullDeclared by:
services.i2pd.inTunnels¶
Serve something on I2P network at port and delegate requests to address inPort.
Type: attribute set of submodules
Default: ``{
}``
Declared by:
services.i2pd.inTunnels.<name>.enable¶
Whether to enable ‹name›.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.inTunnels.<name>.accessList¶
I2P nodes that are allowed to connect to this service.
Type: list of strings
Default: ``[
]``
Declared by:
services.i2pd.inTunnels.<name>.address¶
Bind address for ‹name› endpoint.
Type: string
Default:
"127.0.0.1"Declared by:
services.i2pd.inTunnels.<name>.crypto.tagsToSend¶
Number of ElGamal/AES tags to send.
Type: signed integer
Default:
40Declared by:
services.i2pd.inTunnels.<name>.destination¶
Remote endpoint, I2P hostname or b32.i2p address.
Type: string
Declared by:
services.i2pd.inTunnels.<name>.inPort¶
Service port. Default to the tunnel’s listen port.
Type: signed integer
Default:
0Declared by:
services.i2pd.inTunnels.<name>.inbound.length¶
Guaranteed minimum hops for ‹name› tunnels.
Type: signed integer
Default:
3Declared by:
services.i2pd.inTunnels.<name>.inbound.quantity¶
Number of simultaneous ‹name› tunnels.
Type: signed integer
Default:
5Declared by:
services.i2pd.inTunnels.<name>.keys¶
Keyset used for tunnel identity.
Type: string
Default:
"‹name›-keys.dat"Declared by:
services.i2pd.inTunnels.<name>.name¶
The endpoint name.
Type: string
Default:
"‹name›"Declared by:
services.i2pd.inTunnels.<name>.outbound.length¶
Guaranteed minimum hops for ‹name› tunnels.
Type: signed integer
Default:
3Declared by:
services.i2pd.inTunnels.<name>.outbound.quantity¶
Number of simultaneous ‹name› tunnels.
Type: signed integer
Default:
5Declared by:
services.i2pd.inTunnels.<name>.port¶
Bind port for ‹name› endoint.
Type: signed integer
Default:
0Declared by:
services.i2pd.limits.coreSize¶
Maximum size of corefile in Kb (0 - use system limit).
Type: signed integer
Default:
0Declared by:
services.i2pd.limits.ntcpHard¶
Maximum number of active transit sessions.
Type: signed integer
Default:
0Declared by:
services.i2pd.limits.ntcpSoft¶
Threshold to start probabalistic backoff with ntcp sessions (default: use system limit).
Type: signed integer
Default:
0Declared by:
services.i2pd.limits.ntcpThreads¶
Maximum number of threads used by NTCP DH worker.
Type: signed integer
Default:
1Declared by:
services.i2pd.limits.openFiles¶
Maximum number of open files (0 - use system default).
Type: signed integer
Default:
0Declared by:
services.i2pd.limits.transittunnels¶
Maximum number of active transit sessions.
Type: signed integer
Default:
2500Declared by:
services.i2pd.logCLFTime¶
Whether to enable Full CLF-formatted date and time to log.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.logLevel¶
The log level. i2pd defaults to “info” but that generates copious amounts of log messages.
We default to “error” which is similar to the default log level of tor.
Type: one of “debug”, “info”, “warn”, “error”
Default:
"error"Declared by:
services.i2pd.nat¶
Whether to enable NAT bypass.
Type: boolean
Default:
trueExample:
trueDeclared by:
services.i2pd.netid¶
I2P overlay netid.
Type: signed integer
Default:
2Declared by:
services.i2pd.notransit¶
Tells the router to not accept transit tunnels during startup.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.ntcp¶
Whether to enable ntcp.
Type: boolean
Default:
trueExample:
trueDeclared by:
services.i2pd.ntcp2.enable¶
Whether to enable NTCP2..
Type: boolean
Default:
trueExample:
trueDeclared by:
services.i2pd.ntcp2.port¶
Port to listen for incoming NTCP2 connections (0=auto).
Type: signed integer
Default:
0Declared by:
services.i2pd.ntcp2.published¶
Whether to enable NTCP2 publication.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.ntcpProxy¶
Proxy URL for NTCP transport.
Type: null or string
Default:
nullDeclared by:
services.i2pd.outTunnels¶
Connect to someone as a client and establish a local accept endpoint
Type: attribute set of submodules
Default: ``{
}``
Declared by:
services.i2pd.outTunnels.<name>.enable¶
Whether to enable ‹name›.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.outTunnels.<name>.address¶
Bind address for ‹name› endpoint.
Type: string
Default:
"127.0.0.1"Declared by:
services.i2pd.outTunnels.<name>.crypto.tagsToSend¶
Number of ElGamal/AES tags to send.
Type: signed integer
Default:
40Declared by:
services.i2pd.outTunnels.<name>.destination¶
Remote endpoint, I2P hostname or b32.i2p address.
Type: string
Declared by:
services.i2pd.outTunnels.<name>.destinationPort¶
Connect to particular port at destination.
Type: null or signed integer
Default:
nullDeclared by:
services.i2pd.outTunnels.<name>.inbound.length¶
Guaranteed minimum hops for ‹name› tunnels.
Type: signed integer
Default:
3Declared by:
services.i2pd.outTunnels.<name>.inbound.quantity¶
Number of simultaneous ‹name› tunnels.
Type: signed integer
Default:
5Declared by:
services.i2pd.outTunnels.<name>.keys¶
Keyset used for tunnel identity.
Type: string
Default:
"‹name›-keys.dat"Declared by:
services.i2pd.outTunnels.<name>.name¶
The endpoint name.
Type: string
Default:
"‹name›"Declared by:
services.i2pd.outTunnels.<name>.outbound.length¶
Guaranteed minimum hops for ‹name› tunnels.
Type: signed integer
Default:
3Declared by:
services.i2pd.outTunnels.<name>.outbound.quantity¶
Number of simultaneous ‹name› tunnels.
Type: signed integer
Default:
5Declared by:
services.i2pd.outTunnels.<name>.port¶
Bind port for ‹name› endoint.
Type: signed integer
Default:
0Declared by:
services.i2pd.port¶
I2P listen port. If no one is given the router will pick between 9111 and 30777.
Type: null or signed integer
Default:
nullDeclared by:
services.i2pd.precomputation.elgamal¶
Whenever to use precomputated tables for ElGamal.:command:i2pd defaults to
falseto save 64M of memory (and looses some performance).We default to
trueas that is what most users want anyway.Type: boolean
Default:
trueExample:
trueDeclared by:
services.i2pd.proto.bob.enable¶
Whether to enable bob.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.proto.bob.address¶
Bind address for bob endpoint.
Type: string
Default:
"127.0.0.1"Declared by:
services.i2pd.proto.bob.name¶
The endpoint name.
Type: string
Default:
"bob"Declared by:
services.i2pd.proto.bob.port¶
Bind port for bob endoint.
Type: signed integer
Default:
2827Declared by:
services.i2pd.proto.http.enable¶
Whether to enable http.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.proto.http.address¶
Bind address for http endpoint.
Type: string
Default:
"127.0.0.1"Declared by:
services.i2pd.proto.http.auth¶
Whether to enable Webconsole authentication.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.proto.http.hostname¶
Expected hostname for WebUI.
Type: null or string
Default:
nullDeclared by:
services.i2pd.proto.http.name¶
The endpoint name.
Type: string
Default:
"http"Declared by:
services.i2pd.proto.http.pass¶
Password for webconsole access.
Type: string
Default:
"i2pd"Declared by:
services.i2pd.proto.http.port¶
Bind port for http endoint.
Type: signed integer
Default:
7070Declared by:
services.i2pd.proto.http.strictHeaders¶
Enable strict host checking on WebUI.
Type: null or boolean
Default:
nullDeclared by:
services.i2pd.proto.http.user¶
Username for webconsole access
Type: string
Default:
"i2pd"Declared by:
services.i2pd.proto.httpProxy.enable¶
Whether to enable httpproxy.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.proto.httpProxy.address¶
Bind address for httpproxy endpoint.
Type: string
Default:
"127.0.0.1"Declared by:
services.i2pd.proto.httpProxy.inbound.length¶
Guaranteed minimum hops for httpproxy tunnels.
Type: signed integer
Default:
3Declared by:
services.i2pd.proto.httpProxy.inbound.quantity¶
Number of simultaneous httpproxy tunnels.
Type: signed integer
Default:
5Declared by:
services.i2pd.proto.httpProxy.keys¶
File to persist HTTPPROXY keys.
Type: null or string
Default:
"httpproxy-keys.dat"Declared by:
services.i2pd.proto.httpProxy.latency.max¶
Max latency for tunnels.
Type: null or signed integer
Default:
nullDeclared by:
services.i2pd.proto.httpProxy.latency.min¶
Min latency for tunnels.
Type: null or signed integer
Default:
nullDeclared by:
services.i2pd.proto.httpProxy.name¶
The endpoint name.
Type: string
Default:
"httpproxy"Declared by:
services.i2pd.proto.httpProxy.outbound.length¶
Guaranteed minimum hops for httpproxy tunnels.
Type: signed integer
Default:
3Declared by:
services.i2pd.proto.httpProxy.outbound.quantity¶
Number of simultaneous httpproxy tunnels.
Type: signed integer
Default:
5Declared by:
services.i2pd.proto.httpProxy.outproxy¶
Upstream outproxy bind address.
Type: null or string
Default:
nullDeclared by:
services.i2pd.proto.httpProxy.port¶
Bind port for httpproxy endoint.
Type: signed integer
Default:
4444Declared by:
services.i2pd.proto.i2cp.enable¶
Whether to enable i2cp.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.proto.i2cp.address¶
Bind address for i2cp endpoint.
Type: string
Default:
"127.0.0.1"Declared by:
services.i2pd.proto.i2cp.name¶
The endpoint name.
Type: string
Default:
"i2cp"Declared by:
services.i2pd.proto.i2cp.port¶
Bind port for i2cp endoint.
Type: signed integer
Default:
7654Declared by:
services.i2pd.proto.i2pControl.enable¶
Whether to enable i2pcontrol.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.proto.i2pControl.address¶
Bind address for i2pcontrol endpoint.
Type: string
Default:
"127.0.0.1"Declared by:
services.i2pd.proto.i2pControl.name¶
The endpoint name.
Type: string
Default:
"i2pcontrol"Declared by:
services.i2pd.proto.i2pControl.port¶
Bind port for i2pcontrol endoint.
Type: signed integer
Default:
7650Declared by:
services.i2pd.proto.sam.enable¶
Whether to enable sam.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.proto.sam.address¶
Bind address for sam endpoint.
Type: string
Default:
"127.0.0.1"Declared by:
services.i2pd.proto.sam.name¶
The endpoint name.
Type: string
Default:
"sam"Declared by:
services.i2pd.proto.sam.port¶
Bind port for sam endoint.
Type: signed integer
Default:
7656Declared by:
services.i2pd.proto.socksProxy.enable¶
Whether to enable socksproxy.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.proto.socksProxy.address¶
Bind address for socksproxy endpoint.
Type: string
Default:
"127.0.0.1"Declared by:
services.i2pd.proto.socksProxy.inbound.length¶
Guaranteed minimum hops for socksproxy tunnels.
Type: signed integer
Default:
3Declared by:
services.i2pd.proto.socksProxy.inbound.quantity¶
Number of simultaneous socksproxy tunnels.
Type: signed integer
Default:
5Declared by:
services.i2pd.proto.socksProxy.keys¶
File to persist SOCKSPROXY keys.
Type: null or string
Default:
"socksproxy-keys.dat"Declared by:
services.i2pd.proto.socksProxy.latency.max¶
Max latency for tunnels.
Type: null or signed integer
Default:
nullDeclared by:
services.i2pd.proto.socksProxy.latency.min¶
Min latency for tunnels.
Type: null or signed integer
Default:
nullDeclared by:
services.i2pd.proto.socksProxy.name¶
The endpoint name.
Type: string
Default:
"socksproxy"Declared by:
services.i2pd.proto.socksProxy.outbound.length¶
Guaranteed minimum hops for socksproxy tunnels.
Type: signed integer
Default:
3Declared by:
services.i2pd.proto.socksProxy.outbound.quantity¶
Number of simultaneous socksproxy tunnels.
Type: signed integer
Default:
5Declared by:
services.i2pd.proto.socksProxy.outproxy¶
Upstream outproxy bind address.
Type: string
Default:
"127.0.0.1"Declared by:
services.i2pd.proto.socksProxy.outproxyEnable¶
Whether to enable SOCKS outproxy.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.proto.socksProxy.outproxyPort¶
Upstream outproxy bind port.
Type: signed integer
Default:
4444Declared by:
services.i2pd.proto.socksProxy.port¶
Bind port for socksproxy endoint.
Type: signed integer
Default:
4447Declared by:
services.i2pd.reseed.file¶
Full path to SU3 file to reseed from.
Type: null or string
Default:
nullDeclared by:
services.i2pd.reseed.floodfill¶
Path to router info of floodfill to reseed from.
Type: null or string
Default:
nullDeclared by:
services.i2pd.reseed.proxy¶
URL for reseed proxy, supports http/socks.
Type: null or string
Default:
nullDeclared by:
services.i2pd.reseed.verify¶
Whether to enable SU3 signature verification.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.reseed.zipfile¶
Path to local .zip file to reseed from.
Type: null or string
Default:
nullDeclared by:
services.i2pd.ssu¶
Whether to enable ssu.
Type: boolean
Default:
trueExample:
trueDeclared by:
services.i2pd.trust.enable¶
Whether to enable Explicit trust options.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.trust.family¶
Router Familiy to trust for first hops.
Type: null or string
Default:
nullDeclared by:
services.i2pd.trust.routers¶
services.i2pd.upnp.enable¶
Whether to enable UPnP service discovery.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.upnp.name¶
Name i2pd appears in UPnP forwardings list.
Type: string
Default:
"I2Pd"Declared by:
services.i2pd.websocket.enable¶
Whether to enable websockets.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.i2pd.websocket.address¶
Bind address for websockets endpoint.
Type: string
Default:
"127.0.0.1"Declared by:
services.i2pd.websocket.name¶
The endpoint name.
Type: string
Default:
"websockets"Declared by:
services.i2pd.websocket.port¶
Bind port for websockets endoint.
Type: signed integer
Default:
7666Declared by:
services.icecast.enable¶
Whether to enable Icecast server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.icecast.admin.password¶
Password used for all administration functions.
Type: string
Declared by:
services.icecast.admin.user¶
Username used for all administration functions.
Type: string
Default:
"admin"Declared by:
services.icecast.extraConf¶
icecast.xml content.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.icecast.group¶
Group privileges for the server.
Type: string
Default:
"nogroup"Declared by:
services.icecast.hostname¶
DNS name or IP address that will be used for the stream directory lookups or possibily the playlist generation if a Host header is not provided.
Type: string
Default:
nullDeclared by:
services.icecast.listen.address¶
Address Icecast will listen on.
Type: string
Default:
"::"Declared by:
services.icecast.listen.port¶
TCP port that will be used to accept client connections.
Type: signed integer
Default:
8000Declared by:
services.icecast.logDir¶
Base directory used for logging.
Type: path
Default:
"/var/log/icecast"Declared by:
services.icecast.user¶
User privileges for the server.
Type: string
Default:
"nobody"Declared by:
services.icingaweb2.enable¶
Whether to enable the icingaweb2 web interface.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.icingaweb2.authentications¶
authentication.ini contents. Will automatically be converted to a .ini file.
If the value is null, no authentication.ini is created and you can modify it manually (e.g. via the web interface).
Type: null or attribute set
Default:
nullExample:
{ icingaweb = { backend = "db"; resource = "icingaweb_db"; } ; }Declared by:
services.icingaweb2.generalConfig¶
config.ini contents. Will automatically be converted to a .ini file. If you don’t set global.module_path, the module will take care of it.
If the value is null, no config.ini is created and you can modify it manually (e.g. via the web interface). Note that you need to update module_path manually.
Type: null or attribute set
Default:
nullExample:
{ general = { config_resource = "icingaweb_db"; showStacktraces = 1; } ; logging = { level = "CRITICAL"; log = "syslog"; } ; }Declared by:
services.icingaweb2.groupBackends¶
groups.ini contents. Will automatically be converted to a .ini file.
If the value is null, no groups.ini is created and you can modify it manually (e.g. via the web interface).
Type: null or attribute set
Default:
nullExample:
{ icingaweb = { backend = "db"; resource = "icingaweb_db"; } ; }Declared by:
services.icingaweb2.modulePackages¶
Name-package attrset of Icingaweb 2 modules packages to enable.
If you enable modules manually (e.g. via the web ui), they will not be touched.
Type: attribute set of packages
Default: ``{
}``
Example:
{ "snow" = icingaweb2Modules.theme-snow; }Declared by:
services.icingaweb2.modules.doc.enable¶
Whether to enable the icingaweb2 doc module.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.icingaweb2.modules.migrate.enable¶
Whether to enable the icingaweb2 migrate module.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.icingaweb2.modules.monitoring.enable¶
Whether to enable the icingaweb2 monitoring module.
Type: boolean
Default:
trueDeclared by:
services.icingaweb2.modules.monitoring.backends¶
Monitoring backends to define
Type: attribute set of submodules
Default:
{ icinga = { resource = "icinga_ido"; } ; }Declared by:
services.icingaweb2.modules.monitoring.backends.<name>.disabled¶
Disable this backend
Type: boolean
Default:
falseDeclared by:
services.icingaweb2.modules.monitoring.backends.<name>.resource¶
Name of the IDO resource
Type: string
Declared by:
services.icingaweb2.modules.monitoring.generalConfig.mutable¶
Make config.ini of the monitoring module mutable (e.g. via the web interface).
Type: boolean
Default:
falseDeclared by:
services.icingaweb2.modules.monitoring.generalConfig.protectedVars¶
List of string patterns for custom variables which should be excluded from user’s view.
Type: list of strings
Default:
[ "\*pw*" "\*pass*" "community" ]Declared by:
services.icingaweb2.modules.monitoring.mutableBackends¶
Make backends.ini of the monitoring module mutable (e.g. via the web interface).
Type: boolean
Default:
falseDeclared by:
services.icingaweb2.modules.monitoring.mutableTransports¶
Make commandtransports.ini of the monitoring module mutable (e.g. via the web interface).
Type: boolean
Default:
trueDeclared by:
services.icingaweb2.modules.monitoring.transports¶
services.icingaweb2.modules.monitoring.transports.<name>.host¶
Host for the api or remote transport
Type: string
Declared by:
services.icingaweb2.modules.monitoring.transports.<name>.instance¶
Assign a icinga instance to this transport
Type: null or string
Default:
nullDeclared by:
services.icingaweb2.modules.monitoring.transports.<name>.password¶
Password for the api transport
Type: string
Declared by:
services.icingaweb2.modules.monitoring.transports.<name>.path¶
Path to the socket for local or remote transports
Type: string
Declared by:
services.icingaweb2.modules.monitoring.transports.<name>.port¶
Port to connect to for the api or remote transport
Type: null or string
Default:
nullDeclared by:
services.icingaweb2.modules.monitoring.transports.<name>.resource¶
SSH identity resource for the remote transport
Type: string
Declared by:
services.icingaweb2.modules.monitoring.transports.<name>.type¶
Type of this transport
Type: one of “api”, “local”, “remote”
Default:
"api"Declared by:
services.icingaweb2.modules.monitoring.transports.<name>.username¶
Username for the api or remote transport
Type: string
Declared by:
services.icingaweb2.modules.setup.enable¶
Whether to enable the icingaweb2 setup module.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.icingaweb2.modules.test.enable¶
Whether to enable the icingaweb2 test module.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.icingaweb2.modules.translation.enable¶
Whether to enable the icingaweb2 translation module.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.icingaweb2.pool¶
Name of existing PHP-FPM pool that is used to run Icingaweb2. If not specified, a pool will automatically created with default values.
Type: string
Default:
"icingaweb2"Declared by:
services.icingaweb2.resources¶
resources.ini contents. Will automatically be converted to a .ini file.
If the value is null, no resources.ini is created and you can modify it manually (e.g. via the web interface). Note that if you set passwords here, they will go into the nix store.
Type: null or attribute set
Default:
nullExample:
{ icingaweb_db = { db = "mysql"; dbname = "icingaweb2"; host = "localhost"; password = "icingaweb2"; type = "db"; username = "icingaweb2"; } ; }Declared by:
services.icingaweb2.roles¶
roles.ini contents. Will automatically be converted to a .ini file.
If the value is null, no roles.ini is created and you can modify it manually (e.g. via the web interface).
Type: null or attribute set
Default:
nullExample:
{ Administrators = { permissions = "\*"; users = "admin"; } ; }Declared by:
services.icingaweb2.timezone¶
PHP-compliant timezone specification
Type: string
Default:
"UTC"Example:
"Europe/Berlin"Declared by:
services.icingaweb2.virtualHost¶
Name of the nginx virtualhost to use and setup. If null, no virtualhost is set up.
Type: null or string
Default:
"icingaweb2"Declared by:
services.ihaskell.enable¶
Autostart an IHaskell notebook service.
Type: unspecified
Default:
falseDeclared by:
services.ihaskell.extraPackages¶
Extra packages available to ghc when running ihaskell. The value must be a function which receives the attrset defined in
haskellPackagesas the sole argument.Type: unspecified
Default:
"<function>"Example:
haskellPackages: [ haskellPackages.wreq haskellPackages.lens ]Declared by:
services.ihatemoney.enable¶
Whether to enable ihatemoney webapp. Note that this will set uwsgi to emperor mode running as root.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.ihatemoney.enableAdminDashboard¶
Whether to enable ihatemoney admin dashboard.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.ihatemoney.enableDemoProject¶
Whether to enable access to the demo project in ihatemoney.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.ihatemoney.enablePublicProjectCreation¶
Whether to enable permission to create projects in ihatemoney by anyone.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.ihatemoney.adminHashedPassword¶
The hashed password of the administrator. To obtain it, run
ihatemoney generate_password_hashType: null or string
Default:
nullDeclared by:
services.ihatemoney.backend¶
The database engine to use for ihatemoney. If
postgresqlis selected, then a database called``ihatemoney`` will be created. If you disable this option, it will however not be removed.Type: one of “sqlite”, “postgresql”
Default:
"sqlite"Declared by:
services.ihatemoney.defaultSender.email¶
The email of the sender of ihatemoney emails
Type: string
Default:
"ihatemoney@nixos"Declared by:
services.ihatemoney.defaultSender.name¶
The display name of the sender of ihatemoney emails
Type: string
Default:
"Budget manager"Declared by:
services.ihatemoney.extraConfig¶
Extra configuration appended to ihatemoney’s configuration file. It is a python file, so pay attention to indentation.
Type: string
Default:
""Declared by:
services.ihatemoney.uwsgiConfig¶
Additionnal configuration of the UWSGI vassal running ihatemoney. It should notably specify on which interfaces and ports the vassal should listen.
Type: attribute set
Example:
{ http = ":8000"; }Declared by:
services.illum.enable¶
Enable illum, a daemon for controlling screen brightness with brightness buttons.
Type: boolean
Default:
falseDeclared by:
services.incron.enable¶
Whether to enable the incron daemon.
Note that commands run under incrontab only support common Nix profiles for the PATH provided variable.
Type: boolean
Default:
falseDeclared by:
services.incron.allow¶
Users allowed to use incrontab.
If empty then no user will be allowed to have their own incrontab. If
nullthen will defer to . If both and are null then all users will be allowed to have their own incrontab.Type: null or list of strings
Default:
nullDeclared by:
services.incron.deny¶
Users forbidden from using incrontab.
Type: null or list of strings
Default:
nullDeclared by:
services.incron.extraPackages¶
Extra packages available to the system incrontab.
Type: list of packages
Default: ``[
]``
Example:
[ pkgs.rsync ]Declared by:
services.incron.systab¶
The system incrontab contents.
Type: strings concatenated with “\n”
Default:
""Example:
'' /var/mail IN_CLOSE_WRITE abc $@/$# /tmp IN_ALL_EVENTS efg $@/$# $& ''Declared by:
services.infinoted.enable¶
Whether to enable infinoted.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.infinoted.package¶
Package providing infinoted
Type: package
Default:
"pkgs.libinfinity"Declared by:
services.infinoted.certificateChain¶
Chain of CA-certificates to which our `certificateFile` is relative. Optional for TLS.
Type: null or path
Default:
nullDeclared by:
services.infinoted.certificateFile¶
Server certificate to use for TLS
Type: null or path
Default:
nullDeclared by:
services.infinoted.extraConfig¶
Additional configuration to append to infinoted.conf
Type: strings concatenated with “\n”
Default:
'' [autosave] interval=10 ''Declared by:
services.infinoted.group¶
What to call the primary group of the dedicated user under which infinoted is run
Type: string
Default:
"infinoted"Declared by:
services.infinoted.keyFile¶
Private key to use for TLS
Type: null or path
Default:
nullDeclared by:
services.infinoted.passwordFile¶
File to read server-wide password from
Type: null or path
Default:
nullDeclared by:
services.infinoted.plugins¶
Plugins to enable
Type: list of strings
Default:
[ "note-text" "note-chat" "logging" "autosave" ]Declared by:
services.infinoted.port¶
Port to listen on
Type: signed integer
Default:
6523Declared by:
services.infinoted.rootDirectory¶
Root of the directory structure to serve
Type: path
Default:
"/var/lib/infinoted/documents/"Declared by:
services.infinoted.securityPolicy¶
How strictly to enforce clients connection with TLS.
Type: one of “no-tls”, “allow-tls”, “require-tls”
Default:
"require-tls"Declared by:
services.infinoted.user¶
What to call the dedicated user under which infinoted is run
Type: string
Default:
"infinoted"Declared by:
services.influxdb.enable¶
Whether to enable the influxdb server
Type: boolean
Default:
falseDeclared by:
services.influxdb.package¶
Which influxdb derivation to use
Type: package
Default:
"pkgs.influxdb"Declared by:
services.influxdb.dataDir¶
Data directory for influxd data files.
Type: path
Default:
"/var/db/influxdb"Declared by:
services.influxdb.extraConfig¶
services.influxdb.group¶
Group under which influxdb runs
Type: string
Default:
"influxdb"Declared by:
services.influxdb.user¶
User account under which influxdb runs
Type: string
Default:
"influxdb"Declared by:
services.interception-tools.enable¶
Whether to enable the interception tools service.
Type: boolean
Default:
falseDeclared by:
services.interception-tools.plugins¶
A list of interception tools plugins that will be made available to use inside the udevmon configuration.
Type: list of packages
Default:
[ *(build of interception-tools-caps2esc-0.1.0)* ]Declared by:
services.interception-tools.udevmonConfig¶
String of udevmon YAML configuration, or path to a udevmon YAML configuration file.
Type: string or path
Default:
'' - JOB: "intercept -g $DEVNODE | caps2esc | uinput -d $DEVNODE" DEVICE: EVENTS: EV_KEY: [KEY_CAPSLOCK, KEY_ESC] ''Example:
'' - JOB: "intercept -g $DEVNODE | y2z | x2y | uinput -d $DEVNODE" DEVICE: EVENTS: EV_KEY: [KEY_X, KEY_Y] ''Declared by:
services.iodine.clients¶
Each attribute of this option defines a systemd service that runs iodine. Many or none may be defined. The name of each service is``iodine-name*`` where *name is the name of the corresponding attribute name.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ foo = { server = "tunnel.mdomain.com"; relay = "8.8.8.8"; extraConfig = "-v"; } }Declared by:
services.iodine.clients.<name>.extraConfig¶
Additional command line parameters
Type: string
Default:
""Example:
"-l 192.168.1.10 -p 23"Declared by:
services.iodine.clients.<name>.passwordFile¶
File that contains password
Type: string
Default:
""Declared by:
services.iodine.clients.<name>.relay¶
DNS server to use as a intermediate relay to the iodined server
Type: string
Default:
""Example:
"8.8.8.8"Declared by:
services.iodine.clients.<name>.server¶
Domain or Subdomain of server running iodined
Type: string
Default:
""Example:
"tunnel.mydomain.com"Declared by:
services.iodine.server.enable¶
enable iodined server
Type: boolean
Default:
falseDeclared by:
services.iodine.server.domain¶
Domain or subdomain of which nameservers point to us
Type: string
Default:
""Example:
"tunnel.mydomain.com"Declared by:
services.iodine.server.extraConfig¶
Additional command line parameters
Type: string
Default:
""Example:
"-l 192.168.1.10 -p 23"Declared by:
services.iodine.server.ip¶
The assigned ip address or ip range
Type: string
Default:
""Example:
"172.16.10.1/24"Declared by:
services.iodine.server.passwordFile¶
File that contains password
Type: string
Default:
""Declared by:
services.iperf3.enable¶
Whether to enable iperf3 network throughput testing server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.iperf3.affinity¶
CPU affinity for the process.
Type: null or unsigned integer, meaning >=0
Default:
nullDeclared by:
services.iperf3.authorizedUsersFile¶
Path to the configuration file containing authorized users credentials to run iperf tests.
Type: null or path
Default:
nullDeclared by:
services.iperf3.bind¶
Bind to the specific interface associated with the given address.
Type: null or string
Default:
nullDeclared by:
services.iperf3.debug¶
Emit debugging output.
Type: boolean
Default:
falseDeclared by:
services.iperf3.extraFlags¶
services.iperf3.forceFlush¶
Force flushing output at every interval.
Type: boolean
Default:
falseDeclared by:
services.iperf3.openFirewall¶
Open ports in the firewall for iperf3.
Type: boolean
Default:
falseDeclared by:
services.iperf3.port¶
Server port to listen on for iperf3 client requsts.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
5201Declared by:
services.iperf3.rsaPrivateKey¶
Path to the RSA private key (not password-protected) used to decrypt authentication credentials from the client.
Type: null or path
Default:
nullDeclared by:
services.iperf3.verbose¶
Give more detailed output.
Type: boolean
Default:
falseDeclared by:
services.ipfs.enable¶
Whether to enable Interplanetary File System (WARNING: may cause severe network degredation).
Type: boolean
Default:
falseExample:
trueDeclared by:
services.ipfs.enableGC¶
Whether to enable automatic garbage collection
Type: boolean
Default:
falseDeclared by:
services.ipfs.apiAddress¶
Where IPFS exposes its API to
Type: string
Default:
"/ip4/127.0.0.1/tcp/5001"Declared by:
services.ipfs.autoMount¶
Whether IPFS should try to mount /ipfs and /ipns at startup.
Type: boolean
Default:
falseDeclared by:
services.ipfs.dataDir¶
The data dir for IPFS
Type: string
Default:
"/var/lib/ipfs"Declared by:
services.ipfs.defaultMode¶
systemd service that is enabled by default
Type: one of “online”, “offline”, “norouting”
Default:
"online"Declared by:
services.ipfs.emptyRepo¶
If set to true, the repo won’t be initialized with help files
Type: boolean
Default:
falseDeclared by:
services.ipfs.extraConfig¶
Attrset of daemon configuration to set using ipfs config, every time the daemon starts. These are applied last, so may override configuration set by other options in this module. Keep in mind that this configuration is stateful; i.e., unsetting anything in here does not reset the value to the default!
Type: attribute set
Default: ``{
}``
Example:
{ Bootstrap = [ "/ip4/128.199.219.111/tcp/4001/ipfs/QmSoLSafTMBsPKadTEgaXctDQVcqN88CNLHXMkTNwMKPnu" "/ip4/162.243.248.213/tcp/4001/ipfs/QmSoLueR4xBeUbY9WZ9xGUUxunbKWcrNFTDAadQJmocnWm" ] ; Datastore = { StorageMax = "100GB"; } ; Discovery = { MDNS = { Enabled = false; } ; } ; Swarm = { AddrFilters = null; } ; }Declared by:
services.ipfs.extraFlags¶
services.ipfs.gatewayAddress¶
Where the IPFS Gateway can be reached
Type: string
Default:
"/ip4/127.0.0.1/tcp/8080"Declared by:
services.ipfs.group¶
Group under which the IPFS daemon runs
Type: string
Default:
"ipfs"Declared by:
services.ipfs.ipfsMountDir¶
Where to mount the IPFS namespace to
Type: string
Default:
"/ipfs"Declared by:
services.ipfs.ipnsMountDir¶
Where to mount the IPNS namespace to
Type: string
Default:
"/ipns"Declared by:
services.ipfs.localDiscovery¶
Whether to enable local discovery for the ipfs daemon. This will allow ipfs to scan ports on your local network. Some hosting services will ban you if you do this.
Type: boolean
Default:
trueDeclared by:
services.ipfs.serviceFdlimit¶
The fdlimit for the IPFS systemd unit or
nullto have the daemon attempt to manage itType: null or signed integer
Default:
nullExample:
65536Declared by:
services.ipfs.swarmAddress¶
Where IPFS listens for incoming p2p connections
Type: list of strings
Default:
[ "/ip4/0.0.0.0/tcp/4001" "/ip6/::/tcp/4001" ]Declared by:
services.ipfs.user¶
User under which the IPFS daemon runs
Type: string
Default:
"ipfs"Declared by:
services.ircdHybrid.enable¶
Enable IRCD.
Type: unspecified
Default:
falseDeclared by:
services.ircdHybrid.adminEmail¶
IRCD server administrator e-mail.
Type: unspecified
Default:
"<bit-bucket@example.com>"Example:
"<name@domain.tld>"Declared by:
services.ircdHybrid.certificate¶
IRCD server SSL certificate. There are some limitations - read manual.
Type: unspecified
Default:
nullExample:
/root/certificates/irc.pemDeclared by:
services.ircdHybrid.description¶
IRCD server description.
Type: unspecified
Default:
"Hybrid-7 IRC server."Declared by:
services.ircdHybrid.extraIPs¶
services.ircdHybrid.extraPort¶
Extra port to avoid filtering.
Type: unspecified
Default:
"7117"Declared by:
services.ircdHybrid.rsaKey¶
IRCD server RSA key.
Type: unspecified
Default:
nullExample:
/root/certificates/irc.keyDeclared by:
services.ircdHybrid.serverName¶
IRCD server name.
Type: unspecified
Default:
"hades.arpa"Declared by:
services.ircdHybrid.sid¶
IRCD server unique ID in a net of servers.
Type: unspecified
Default:
"0NL"Declared by:
services.irkerd.enable¶
Whether to enable irker, an IRC notification daemon.
Type: boolean
Default:
falseDeclared by:
services.irkerd.listenAddress¶
Specifies the bind address on which the irker daemon listens. The default is localhost.
Irker authors strongly warn about the risks of running this on a publicly accessible interface, so change this with caution.
Type: string
Default:
"localhost"Example:
"0.0.0.0"Declared by:
services.irkerd.nick¶
Nick to use for irker
Type: string
Default:
"irker"Declared by:
services.irkerd.openPorts¶
Open ports in the firewall for irkerd
Type: boolean
Default:
falseDeclared by:
services.irqbalance.enable¶
Whether to enable irqbalance daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.jack.alsa.enable¶
Route audio to/from generic ALSA-using applications using ALSA JACK PCM plugin.
Type: boolean
Default:
trueDeclared by:
services.jack.alsa.support32Bit¶
Whether to support sound for 32-bit ALSA applications on 64-bit system.
Type: boolean
Default:
falseDeclared by:
services.jack.jackd.enable¶
Whether to enable JACK Audio Connection Kit. You need to add yourself to the “jackaudio” group .
Type: boolean
Default:
falseExample:
trueDeclared by:
services.jack.jackd.extraOptions¶
Specifies startup command line arguments to pass to JACK server.
Type: list of strings
Default:
[ "-dalsa" ]Example:
[ "-dalsa" "--device" "hw:1" ];Declared by:
services.jack.jackd.session¶
Commands to run after JACK is started.
Type: strings concatenated with “\n”
Declared by:
services.jack.loopback.enable¶
Create ALSA loopback device, instead of using PCM plugin. Has broader application support (things like Steam will work), but may need fine-tuning for concrete hardware.
Type: boolean
Default:
falseDeclared by:
services.jack.loopback.config¶
ALSA config for loopback device.
Type: strings concatenated with “\n”
Declared by:
services.jack.loopback.dmixConfig¶
For music production software that still doesn’t support JACK natively you would like to put buffer/period adjustments here to decrease dmix device latency.
Type: strings concatenated with “\n”
Default:
""Example:
'' period_size 2048 periods 2 ''Declared by:
services.jack.loopback.index¶
Index of an ALSA loopback device.
Type: signed integer
Default:
10Declared by:
services.jack.loopback.session¶
Additional commands to run to setup loopback device.
Type: strings concatenated with “\n”
Declared by:
services.jackett.enable¶
Whether to enable Jackett.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.jackett.package¶
Jackett package to use.
Type: package
Default:
"pkgs.jackett"Declared by:
services.jackett.dataDir¶
The directory where Jackett stores its data files.
Type: string
Default:
"/var/lib/jackett/.config/Jackett"Declared by:
services.jackett.group¶
Group under which Jackett runs.
Type: string
Default:
"jackett"Declared by:
services.jackett.openFirewall¶
Open ports in the firewall for the Jackett web interface.
Type: boolean
Default:
falseDeclared by:
services.jackett.user¶
User account under which Jackett runs.
Type: string
Default:
"jackett"Declared by:
services.jboss.enable¶
Whether to enable JBoss. WARNING : this package is outdated and is known to have vulnerabilities.
Type: unspecified
Default:
falseDeclared by:
services.jboss.deployDir¶
Location of the deployment files
Type: unspecified
Default:
"/nix/var/nix/profiles/default/server/default/deploy/"Declared by:
services.jboss.libUrl¶
Location where the shared library JARs are stored
Type: unspecified
Default:
"file:///nix/var/nix/profiles/default/server/default/lib"Declared by:
services.jboss.logDir¶
Location of the logfile directory of JBoss
Type: unspecified
Default:
"/var/log/jboss"Declared by:
services.jboss.serverDir¶
Location of the server instance files
Type: unspecified
Default:
"/var/jboss/server"Declared by:
services.jboss.tempDir¶
Location where JBoss stores its temp files
Type: unspecified
Default:
"/tmp"Declared by:
services.jboss.useJK¶
Whether to use to connector to the Apache HTTP server
Type: unspecified
Default:
falseDeclared by:
services.jboss.user¶
User account under which jboss runs.
Type: unspecified
Default:
"nobody"Declared by:
services.jellyfin.enable¶
Whether to enable Jellyfin Media Server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.jellyfin.group¶
Group under which jellyfin runs.
Type: string
Default:
"jellyfin"Declared by:
services.jellyfin.user¶
User account under which Jellyfin runs.
Type: string
Default:
"jellyfin"Declared by:
services.jenkins.enable¶
Whether to enable the jenkins continuous integration server.
Type: boolean
Default:
falseDeclared by:
services.jenkins.package¶
Jenkins package to use.
Type: package
Default:
"pkgs.jenkins"Declared by:
services.jenkins.packages¶
Packages to add to PATH for the jenkins process.
Type: list of packages
Default:
"[ pkgs.stdenv pkgs.git pkgs.jdk config.programs.ssh.package pkgs.nix ]"Declared by:
services.jenkins.environment¶
Additional environment variables to be passed to the jenkins process. As a base environment, jenkins receives NIX_PATH from, NIX_REMOTE is set to “daemon” and JENKINS_HOME is set to the value of. This option has precedence and can be used to override those mentioned variables.
Type: attribute set of strings
Default: ``{
}``
Declared by:
services.jenkins.extraGroups¶
List of extra groups that the “jenkins” user should be a part of.
Type: list of strings
Default: ``[
]``
Example:
[ "wheel" "dialout" ]Declared by:
services.jenkins.extraJavaOptions¶
Additional command line arguments to pass to the Java run time (as opposed to Jenkins).
Type: list of strings
Default: ``[
]``
Example:
[ "-Xmx80m" ]Declared by:
services.jenkins.extraOptions¶
Additional command line arguments to pass to Jenkins.
Type: list of strings
Default: ``[
]``
Example:
[ "--debug=9" ]Declared by:
services.jenkins.group¶
If the default user “jenkins” is configured then this is the primary group of that user.
Type: string
Default:
"jenkins"Declared by:
services.jenkins.home¶
The path to use as JENKINS_HOME. If the default user “jenkins” is configured then this is the home of the “jenkins” user.
Type: path
Default:
"/var/lib/jenkins"Declared by:
services.jenkins.jobBuilder.enable¶
Whether or not to enable the Jenkins Job Builder (JJB) service. It allows defining jobs for Jenkins in a declarative manner.
Jobs managed through the Jenkins WebUI (or by other means) are left unchanged.
Note that it really is declarative configuration; if you remove a previously defined job, the corresponding job directory will be deleted.
Please see the Jenkins Job Builder documentation for more info:http://docs.openstack.org/infra/jenkins-job-builder/
Type: boolean
Default:
falseDeclared by:
services.jenkins.jobBuilder.accessToken¶
User token in Jenkins used to reload config. WARNING: This token will be world readable in the Nix store. To keep it secret, use the option instead.
Type: string
Default:
""Declared by:
services.jenkins.jobBuilder.accessTokenFile¶
File containing the API token for the user.
Type: string
Default:
""Example:
"/run/keys/jenkins-job-builder-access-token"Declared by:
services.jenkins.jobBuilder.accessUser¶
User id in Jenkins used to reload config.
Type: string
Default:
""Declared by:
services.jenkins.jobBuilder.jsonJobs¶
Job descriptions for Jenkins Job Builder in JSON format.
Type: list of strings
Default: ``[
]``
Example:
[ '' [ { "job": { "name": "jenkins-job-test-2", "builders": [ "shell": "echo 'Hello world!'" ] } } ] '' ]Declared by:
services.jenkins.jobBuilder.nixJobs¶
Job descriptions for Jenkins Job Builder in Nix format.
This is a trivial wrapper around jsonJobs, using builtins.toJSON behind the scene.
Type: list of attribute sets
Default: ``[
]``
Example:
[ { job = { name = "jenkins-job-test-3"; builders = [ { shell = "echo 'Hello world!'"; } ]; }; } ]Declared by:
services.jenkins.jobBuilder.yamlJobs¶
Job descriptions for Jenkins Job Builder in YAML format.
Type: strings concatenated with “\n”
Default:
""Example:
'' - job: name: jenkins-job-test-1 builders: - shell: echo 'Hello world!' ''Declared by:
services.jenkins.listenAddress¶
Specifies the bind address on which the jenkins HTTP interface listens. The default is the wildcard address.
Type: string
Default:
"0.0.0.0"Example:
"localhost"Declared by:
services.jenkins.plugins¶
A set of plugins to activate. Note that this will completely remove and replace any previously installed plugins. If you have manually-installed plugins that you want to keep while using this module, set this option to``null``. You can generate this set with a tool such as
jenkinsPlugins2nix.Type: null or attribute set of packages
Default:
nullExample:
import path/to/jenkinsPlugins2nix-generated-plugins.nix { inherit (pkgs) fetchurl stdenv; }Declared by:
services.jenkins.port¶
Specifies port number on which the jenkins HTTP interface listens. The default is 8080.
Type: signed integer
Default:
8080Declared by:
services.jenkins.prefix¶
Specifies a urlPrefix to use with jenkins. If the example /jenkins is given, the jenkins server will be accessible using localhost:8080/jenkins.
Type: string
Default:
""Example:
"/jenkins"Declared by:
services.jenkins.user¶
User the jenkins server should execute under.
Type: string
Default:
"jenkins"Declared by:
services.jenkinsSlave.enable¶
If true the system will be configured to work as a jenkins slave. If the system is also configured to work as a jenkins master then this has no effect. In progress: Currently only assures the jenkins user is configured.
Type: boolean
Default:
falseDeclared by:
services.jenkinsSlave.group¶
If the default slave agent user “jenkins” is configured then this is the primary group of that user.
Type: string
Default:
"jenkins"Declared by:
services.jenkinsSlave.home¶
The path to use as JENKINS_HOME. If the default user “jenkins” is configured then this is the home of the “jenkins” user.
Type: path
Default:
"/var/lib/jenkins"Declared by:
services.jenkinsSlave.user¶
User the jenkins slave agent should execute under.
Type: string
Default:
"jenkins"Declared by:
services.jira.enable¶
Whether to enable Atlassian JIRA service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.jira.package¶
Atlassian JIRA package to use.
Type: package
Default:
"pkgs.atlassian-jira"Declared by:
services.jira.catalinaOptions¶
Java options to pass to catalina/tomcat.
Type: list of strings
Default: ``[
]``
Example:
[ "-Xms1024m" "-Xmx2048m" ]Declared by:
services.jira.group¶
Group which runs JIRA.
Type: string
Default:
"jira"Declared by:
services.jira.home¶
Home directory of the JIRA instance.
Type: string
Default:
"/var/lib/jira"Declared by:
services.jira.jrePackage¶
Note that Atlassian only support the Oracle JRE (JRASERVER-46152).
Type: package
Default:
"pkgs.oraclejre8"Declared by:
services.jira.listenAddress¶
Address to listen on.
Type: string
Default:
"127.0.0.1"Declared by:
services.jira.listenPort¶
Port to listen on.
Type: signed integer
Default:
8091Declared by:
services.jira.proxy.enable¶
Whether to enable reverse proxy support.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.jira.proxy.name¶
Virtual hostname at the proxy
Type: string
Example:
"jira.example.com"Declared by:
services.jira.proxy.port¶
Port used at the proxy
Type: signed integer
Default:
443Example:
80Declared by:
services.jira.proxy.scheme¶
Protocol used at the proxy.
Type: string
Default:
"https"Example:
"http"Declared by:
services.jira.proxy.secure¶
Whether the connections to the proxy should be considered secure.
Type: boolean
Default:
trueDeclared by:
services.jira.sso.enable¶
Whether to enable SSO with Atlassian Crowd.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.jira.sso.applicationName¶
Exact name of this JIRA instance in Crowd
Type: string
Example:
"jira"Declared by:
services.jira.sso.applicationPassword¶
Application password of this JIRA instance in Crowd
Type: string
Declared by:
services.jira.sso.crowd¶
Crowd Base URL without trailing slash
Type: string
Example:
"http://localhost:8095/crowd"Declared by:
services.jira.sso.validationInterval¶
Set to 0, if you want authentication checks to occur on each request. Otherwise set to the number of minutes between request to validate if the user is logged in or out of the Crowd SSO server. Setting this value to 1 or higher will increase the performance of Crowd’s integration.
Type: signed integer
Default:
2Example:
0Declared by:
services.jira.user¶
User which runs JIRA.
Type: string
Default:
"jira"Declared by:
services.jirafeau.enable¶
Whether to enable Jirafeau file upload application..
Type: boolean
Default:
falseExample:
trueDeclared by:
services.jirafeau.package¶
Jirafeau package to use
Type: package
Default:
"pkgs.jirafeau"Example:
"pkgs.jirafeau"Declared by:
services.jirafeau.adminPasswordSha256¶
SHA-256 of the desired administration password. Leave blank/unset for no password.
Type: string
Default:
""Declared by:
services.jirafeau.dataDir¶
Location of Jirafeau storage directory.
Type: path
Default:
"/var/lib/jirafeau/data/"Declared by:
services.jirafeau.extraConfig¶
Jirefeau configuration. Refer to ` <https://gitlab.com/mojo42/Jirafeau/-/blob/4.1.1/lib/config.original.php>`_ for supported values.
Type: strings concatenated with “\n”
Default:
""Example:
'' $cfg['style'] = 'courgette'; $cfg['organisation'] = 'ACME'; ''Declared by:
services.jirafeau.hostName¶
URL of instance. Must have trailing slash.
Type: string
Default:
"localhost"Declared by:
services.jirafeau.maxUploadSizeMegabytes¶
Maximum upload size of accepted files.
Type: signed integer
Default:
0Declared by:
services.jirafeau.maxUploadTimeout¶
Timeout for reading client request bodies and headers. Refer to` <http://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_timeout>`_ and` <http://nginx.org/en/docs/http/ngx_http_core_module.html#client_header_timeout>`_ for accepted values.
Type: string
Default:
"30m"Declared by:
services.jirafeau.nginxConfig¶
Extra configuration for the nginx virtual host of Jirafeau.
Type: submodule
Default: ``{
}``
Example:
{ serverAliases = [ "wiki.\\${config.networking.domain}" ] ; }Declared by:
services.jirafeau.nginxConfig.enableACME¶
Whether to ask Let’s Encrypt to sign a certificate for this vhost. Alternately, you can use an existing certificate through .
Type: boolean
Default:
falseDeclared by:
services.jirafeau.nginxConfig.acmeFallbackHost¶
Host which to proxy requests to if acme challenge is not found. Useful if you want multiple hosts to be able to verify the same domain name.
Type: null or string
Default:
nullDeclared by:
services.jirafeau.nginxConfig.acmeRoot¶
Directory for the acme challenge which is PUBLIC, don’t put certs or keys in here
Type: string
Default:
"/var/lib/acme/acme-challenge"Declared by:
services.jirafeau.nginxConfig.addSSL¶
Whether to enable HTTPS in addition to plain HTTP. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443).
Type: boolean
Default:
falseDeclared by:
services.jirafeau.nginxConfig.basicAuth¶
Basic Auth protection for a vhost.
WARNING: This is implemented to store the password in plain text in the nix store.
Type: attribute set of strings
Default: ``{
}``
Example:
{ user = "password"; };Declared by:
services.jirafeau.nginxConfig.basicAuthFile¶
Basic Auth password file for a vhost. Can be created via: htpasswd -c <filename> <username>
Type: null or path
Default:
nullDeclared by:
services.jirafeau.nginxConfig.default¶
Makes this vhost the default.
Type: boolean
Default:
falseDeclared by:
services.jirafeau.nginxConfig.extraConfig¶
These lines go to the end of the vhost verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.jirafeau.nginxConfig.forceSSL¶
Whether to add a separate nginx server block that permanently redirects (301) all plain HTTP traffic to HTTPS. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443), where the non-SSL listens are used for the redirect vhosts.
Type: boolean
Default:
falseDeclared by:
services.jirafeau.nginxConfig.globalRedirect¶
If set, all requests for this host are redirected permanently to the given hostname.
Type: null or string
Default:
nullExample:
"newserver.example.org"Declared by:
services.jirafeau.nginxConfig.http2¶
Whether to enable HTTP 2. Note that (as of writing) due to nginx’s implementation, to disable HTTP 2 you have to disable it on all vhosts that use a given IP address / port. If there is one server block configured to enable http2,then it is enabled for all server blocks on this IP. See https://stackoverflow.com/a/39466948/263061.
Type: boolean
Default:
trueDeclared by:
services.jirafeau.nginxConfig.listen¶
Listen addresses and ports for this virtual host. IPv6 addresses must be enclosed in square brackets. Note: this option overrides
addSSLandonlySSL.Type: list of submodules
Default: ``[
]``
Example: ``[
{ addr = “195.154.1.1”; port = 443; ssl = true; }
{ addr = “192.154.1.1”; port = 80; }
]``
Declared by:
services.jirafeau.nginxConfig.listen.*.addr¶
services.jirafeau.nginxConfig.listen.*.extraParameters¶
Extra parameters of this listen directive.
Type: list of strings
Default: ``[
]``
Example:
[ "reuseport" "deferred" ]Declared by:
services.jirafeau.nginxConfig.listen.*.port¶
Port number.
Type: signed integer
Default:
80Declared by:
services.jirafeau.nginxConfig.listen.*.ssl¶
Enable SSL.
Type: boolean
Default:
falseDeclared by:
services.jirafeau.nginxConfig.locations¶
Declarative location config
Type: attribute set of submodules
Default: ``{
}``
Example:
{ "/" = { proxyPass = "http://localhost:3000"; }; };Declared by:
services.jirafeau.nginxConfig.locations.<name>.alias¶
Alias directory for requests.
Type: null or path
Default:
nullExample:
"/your/alias/directory"Declared by:
services.jirafeau.nginxConfig.locations.<name>.extraConfig¶
These lines go to the end of the location verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.jirafeau.nginxConfig.locations.<name>.index¶
Adds index directive.
Type: null or string
Default:
nullExample:
"index.php index.html"Declared by:
services.jirafeau.nginxConfig.locations.<name>.priority¶
Order of this location block in relation to the others in the vhost. The semantics are the same as with `lib.mkOrder`. Smaller values have a greater priority.
Type: signed integer
Default:
1000Declared by:
services.jirafeau.nginxConfig.locations.<name>.proxyPass¶
Adds proxy_pass directive and sets recommended proxy headers if recommendedProxySettings is enabled.
Type: null or string
Default:
nullExample:
"http://www.example.org/"Declared by:
services.jirafeau.nginxConfig.locations.<name>.proxyWebsockets¶
Whether to supporty proxying websocket connections with HTTP/1.1.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.jirafeau.nginxConfig.locations.<name>.return¶
Adds a return directive, for e.g. redirections.
Type: null or string
Default:
nullExample:
"301 http://example.com\\$request_uri"Declared by:
services.jirafeau.nginxConfig.locations.<name>.root¶
Root directory for requests.
Type: null or path
Default:
nullExample:
"/your/root/directory"Declared by:
services.jirafeau.nginxConfig.locations.<name>.tryFiles¶
Adds try_files directive.
Type: null or string
Default:
nullExample:
"\\$uri =404"Declared by:
services.jirafeau.nginxConfig.onlySSL¶
Whether to enable HTTPS and reject plain HTTP connections. This will set defaults for
listento listen on all interfaces on port 443.Type: boolean
Default:
falseDeclared by:
services.jirafeau.nginxConfig.root¶
The path of the web root directory.
Type: null or path
Default:
nullExample:
"/data/webserver/docs"Declared by:
services.jirafeau.nginxConfig.serverAliases¶
Additional names of virtual hosts served by this virtual host configuration.
Type: list of strings
Default: ``[
]``
Example:
[ "www.example.org" "example.org" ]Declared by:
services.jirafeau.nginxConfig.serverName¶
Name of this virtual host. Defaults to attribute name in virtualHosts.
Type: null or string
Default:
nullExample:
"example.org"Declared by:
services.jirafeau.nginxConfig.sslCertificate¶
Path to server SSL certificate.
Type: path
Example:
"/var/host.cert"Declared by:
services.jirafeau.nginxConfig.sslCertificateKey¶
Path to server SSL certificate key.
Type: path
Example:
"/var/host.key"Declared by:
services.jirafeau.nginxConfig.sslTrustedCertificate¶
Path to root SSL certificate for stapling and client certificates.
Type: null or path
Default:
nullExample:
"/var/root.cert"Declared by:
services.jirafeau.nginxConfig.useACMEHost¶
A host of an existing Let’s Encrypt certificate to use. This is useful if you have many subdomains and want to avoid hitting the`rate limit <https://letsencrypt.org/docs/rate-limits/>`_. Alternately, you can generate a certificate through .*Note that this option does not create any certificates, nor it does add subdomains to existing ones – you will need to create them manually using security.acme.certs.*
Type: null or string
Default:
nullDeclared by:
services.jirafeau.poolConfig¶
Options for Jirafeau PHP pool. See documentation on
php-fpm.conffor details on configuration directives.Type: attribute set of string or signed integer or booleans
Default:
{ pm = "dynamic"; pm.max_children = 32; pm.max_requests = 500; pm.max_spare_servers = 4; pm.min_spare_servers = 2; pm.start_servers = 2; }Declared by:
services.journalbeat.enable¶
Whether to enable journalbeat.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.journalbeat.package¶
The journalbeat package to use
Type: package
Default:
"pkgs.journalbeat"Example:
pkgs.journalbeat7Declared by:
services.journalbeat.extraConfig¶
Any other configuration options you want to add
Type: strings concatenated with “\n”
Default:
""Declared by:
services.journalbeat.name¶
Name of the beat
Type: string
Default:
"journalbeat"Declared by:
services.journalbeat.stateDir¶
Directory below
/var/lib/to store journalbeat’s own logs and other data. This directory will be created automatically using systemd’s StateDirectory mechanism.Type: string
Default:
"journalbeat"Declared by:
services.journalbeat.tags¶
services.journald.enableHttpGateway¶
Whether to enable the HTTP gateway to the journal.
Type: boolean
Default:
falseDeclared by:
services.journald.console¶
If non-empty, write log messages to the specified TTY device.
Type: string
Default:
""Declared by:
services.journald.extraConfig¶
Extra config options for systemd-journald. See man journald.conf for available options.
Type: strings concatenated with “\n”
Default:
""Example:
"Storage=volatile"Declared by:
services.journald.forwardToSyslog¶
Whether to forward log messages to syslog.
Type: boolean
Default:
"services.rsyslogd.enable \|| services.syslog-ng.enable"Declared by:
services.journald.rateLimitBurst¶
Configures the rate limiting burst limit (number of messages per interval) that is applied to all messages generated on the system. This rate limiting is applied per-service, so that two services which log do not interfere with each other’s limit.
Type: signed integer
Default:
1000Declared by:
services.journald.rateLimitInterval¶
Configures the rate limiting interval that is applied to all messages generated on the system. This rate limiting is applied per-service, so that two services which log do not interfere with each other’s limit. The value may be specified in the following units: s, min, h, ms, us. To turn off any kind of rate limiting, set either value to 0.
Type: string
Default:
"30s"Declared by:
services.journaldriver.enable¶
Whether to enable journaldriver to forward journald logs to Stackdriver Logging.
Type: boolean
Default:
falseDeclared by:
services.journaldriver.applicationCredentials¶
Path to the service account private key (in JSON-format) used to forward log entries to Stackdriver Logging on non-GCP instances.
This option is required on non-GCP machines, but should not be set on GCP instances.
Type: null or path
Default:
nullDeclared by:
services.journaldriver.googleCloudProject¶
Configures the name of the Google Cloud project to which to forward journald logs.
This option is required on non-GCP machines, but should not be set on GCP instances.
Type: null or string
Default:
nullDeclared by:
services.journaldriver.logLevel¶
Log level at which journaldriver logs its own output.
Type: string
Default:
"info"Declared by:
services.journaldriver.logName¶
Configures the name of the target log in Stackdriver Logging. This option can be set to, for example, the hostname of a machine to improve the user experience in the logging overview.
Type: null or string
Default:
nullDeclared by:
services.journaldriver.logStream¶
Configures the name of the Stackdriver Logging log stream into which to write journald entries.
This option is required on non-GCP machines, but should not be set on GCP instances.
Type: null or string
Default:
nullDeclared by:
services.journalwatch.enable¶
If enabled, periodically check the journal with journalwatch and report the results by mail.
Type: boolean
Default:
falseDeclared by:
services.journalwatch.accuracy¶
The time window around the interval in which the journalwatch run will be scheduled.
The format is described in systemd.time(7).
Type: string
Default:
"10min"Declared by:
services.journalwatch.extraConfig¶
Extra lines to be added verbatim to the journalwatch/config configuration file. You can add any commandline argument to the config, without the ‘–’. See
journalwatch --helpfor all arguments and their description.Type: string
Default:
""Declared by:
services.journalwatch.filterBlocks¶
filterBlocks can be defined to blacklist journal messages which are not errors. Each block matches on a log entry field, and the filters in that block then are matched against all messages with a matching log entry field.
All messages whose PRIORITY is at least 6 (INFO) are processed by journalwatch. If you don’t specify any filterBlocks, PRIORITY is reduced to 5 (NOTICE) by default.
All regular expressions are extended Python regular expressions, for details see: http://doc.pyschools.com/html/regex.html
Type: list of submodules
Default: ``[
{ filters = “(Stopped|Stopping|Starting|Started) .*\n(Created slice|Removed slice) user-\d*\.slice\.\nReceived SIGRTMIN\+24 from PID .*\n(Reached target|Stopped target) .*\nStartup finished in \d*ms\.\n”; match = “SYSLOG_IDENTIFIER = systemd”; }
]``
Example: ``[
{ filters = “New session [a-z]?\d+ of user \w+\.\nRemoved session [a-z]?\d+\.\n”; match = “_SYSTEMD_UNIT = systemd-logind.service”; }
{ filters = “pam_unix\(crond:session\): session (opened|closed) for user \w+\n\(\w+\) CMD .*\n”; match = “SYSLOG_IDENTIFIER = /(CROND|crond)/”; }
]``
Declared by:
services.journalwatch.filterBlocks.*.filters¶
The filters to apply on all messages which satisfy . Any of those messages that match any specified filter will be removed from journalwatch’s output. Each filter is an extended Python regular expression. You can specify multiple filters and separate them by newlines. Lines starting with ‘#’ are comments. Inline-comments are not permitted.
Type: string
Example:
'' (Stopped|Stopping|Starting|Started) .* (Reached target|Stopped target) .* ''Declared by:
services.journalwatch.filterBlocks.*.match¶
Syntax:
field = valueSpecifies the log entryfieldthis block should apply to. If thefieldof a message matches thisvalue, this patternBlock’s are applied. Ifvaluestarts and ends with a slash, it is interpreted as an extended python regular expression, if not, it’s an exact match. The journal fields are explained in systemd.journal-fields(7).Type: string
Example:
"SYSLOG_IDENTIFIER = systemd"Declared by:
services.journalwatch.interval¶
How often to run journalwatch.
The format is described in systemd.time(7).
Type: string
Default:
"hourly"Declared by:
services.journalwatch.mailBinary¶
Sendmail-compatible binary to be used to send the messages.
Type: path
Default:
"/run/wrappers/bin/sendmail"Declared by:
services.journalwatch.mailFrom¶
Mail address to send journalwatch reports from.
Type: string
Default:
"journalwatch@nixos"Declared by:
services.journalwatch.mailTo¶
Mail address to send journalwatch reports to.
Type: null or string
Default:
nullDeclared by:
services.journalwatch.priority¶
Lowest priority of message to be considered. A value between 7 (“debug”), and 0 (“emerg”). Defaults to 6 (“info”). If you don’t care about anything with “info” priority, you can reduce this to e.g. 5 (“notice”) to considerably reduce the amount of messages without needing many .
Type: signed integer
Default:
6Declared by:
services.jupyter.enable¶
Whether to enable Jupyter development server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.jupyter.group¶
Name of the group used to run the jupyter service. Use this if you want to create a group of users that are able to view the notebook directory’s content.
Type: string
Default:
"jupyter"Example:
"users"Declared by:
services.jupyter.ip¶
IP address Jupyter will be listening on.
Type: string
Default:
"localhost"Declared by:
services.jupyter.kernels¶
Declarative kernel config
Kernels can be declared in any language that supports and has the required dependencies to communicate with a jupyter server. In python’s case, it means that ipykernel package must always be included in the list of packages of the targeted environment.
Type: null or attribute set of submodules
Default:
nullExample:
{ python3 = let env = (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [ ipykernel pandas scikitlearn ])); in { displayName = "Python 3 for machine learning"; argv = [ "${env.interpreter}" "-m" "ipykernel_launcher" "-f" "{connection_file}" ]; language = "python"; logo32 = "${env.sitePackages}/ipykernel/resources/logo-32x32.png"; logo64 = "${env.sitePackages}/ipykernel/resources/logo-64x64.png"; }; }Declared by:
services.jupyter.kernels.<name>.argv¶
Command and arguments to start the kernel.
Type: list of strings
Example:
[ "{customEnv.interpreter}" "-m" "ipykernel_launcher" "-f" "{connection_file}" ]Declared by:
services.jupyter.kernels.<name>.displayName¶
Name that will be shown to the user.
Type: string
Default:
""Example:
[ "Python 3" "Python 3 for Data Science" ]Declared by:
services.jupyter.kernels.<name>.language¶
Language of the environment. Typically the name of the binary.
Type: string
Example:
"python"Declared by:
services.jupyter.kernels.<name>.logo32¶
Path to 32x32 logo png.
Type: null or path
Default:
nullExample:
"{env.sitePackages}/ipykernel/resources/logo-32x32.png"Declared by:
services.jupyter.kernels.<name>.logo64¶
Path to 64x64 logo png.
Type: null or path
Default:
nullExample:
"{env.sitePackages}/ipykernel/resources/logo-64x64.png"Declared by:
services.jupyter.notebookConfig¶
Raw jupyter config.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.jupyter.notebookDir¶
Root directory for notebooks.
Type: string
Default:
"~/"Declared by:
services.jupyter.password¶
Password to use with notebook. Can be generated using: In [1]: from notebook.auth import passwd In [2]: passwd(‘test’) Out[2]: ‘sha1:1b961dc713fb:88483270a63e57d18d43cf337e629539de1436ba’ NOTE: you need to keep the single quote inside the nix string. Or you can use a python oneliner: “open(‘/path/secret_file’, ‘r’, encoding=’utf8’).read().strip()” It will be interpreted at the end of the notebookConfig.
Type: string
Example:
[ "'sha1:1b961dc713fb:88483270a63e57d18d43cf337e629539de1436ba'" "open('/path/secret_file', 'r', encoding='utf8').read().strip()" ]Declared by:
services.jupyter.port¶
Port number Jupyter will be listening on.
Type: signed integer
Default:
8888Declared by:
services.jupyter.user¶
Name of the user used to run the jupyter service. For security reason, jupyter should really not be run as root. If not set (jupyter), the service will create a jupyter user with appropriate settings.
Type: string
Default:
"jupyter"Example:
"aborsu"Declared by:
services.kapacitor.enable¶
Whether to enable kapacitor.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.kapacitor.alerta.enable¶
Whether to enable kapacitor alerta integration.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.kapacitor.alerta.environment¶
Default Alerta environment
Type: string
Default:
"Production"Declared by:
services.kapacitor.alerta.origin¶
Default origin of alert
Type: string
Default:
"kapacitor"Declared by:
services.kapacitor.alerta.token¶
Default Alerta authentication token
Type: string
Default:
""Declared by:
services.kapacitor.alerta.url¶
The URL to the Alerta REST API
Type: string
Default:
"http://localhost:5000"Example:
"http://localhost:5000"Declared by:
services.kapacitor.bind¶
Address to bind to. The default is to bind to all addresses
Type: string
Default:
""Example:
0.0.0.0Declared by:
services.kapacitor.dataDir¶
Location where Kapacitor stores its state
Type: path
Default:
"/var/lib/kapacitor"Example:
"/var/lib/kapacitor"Declared by:
services.kapacitor.defaultDatabase.enable¶
Whether to enable kapacitor.defaultDatabase.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.kapacitor.defaultDatabase.password¶
The password to connect to the remote InfluxDB server
Type: string
Declared by:
services.kapacitor.defaultDatabase.url¶
The URL to an InfluxDB server that serves as the default database
Type: string
Example:
"http://localhost:8086"Declared by:
services.kapacitor.defaultDatabase.username¶
The username to connect to the remote InfluxDB server
Type: string
Declared by:
services.kapacitor.extraConfig¶
These lines go into kapacitord.conf verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.kapacitor.group¶
Group under which Kapacitor runs
Type: string
Default:
"kapacitor"Declared by:
services.kapacitor.loadDirectory¶
Directory where to load services from, such as tasks, templates and handlers (or null to disable service loading on startup)
Type: null or path
Default:
nullDeclared by:
services.kapacitor.port¶
Port of Kapacitor
Type: signed integer
Default:
9092Declared by:
services.kapacitor.taskSnapshotInterval¶
Specifies how often to snapshot the task state (in InfluxDB time units)
Type: string
Default:
"1m0s"Example:
"1m0s"Declared by:
services.kapacitor.user¶
User account under which Kapacitor runs
Type: string
Default:
"kapacitor"Declared by:
services.kbfs.enable¶
Whether to mount the Keybase filesystem.
Type: boolean
Default:
falseDeclared by:
services.kbfs.enableRedirector¶
Whether to enable the Keybase root redirector service, allowing any user to access KBFS files via
/keybase, which will show different contents depending on the requester.Type: boolean
Default:
falseDeclared by:
services.kbfs.extraFlags¶
Additional flags to pass to the Keybase filesystem on launch.
Type: list of strings
Default: ``[
]``
Example:
[ "-label kbfs" "-mount-type normal" ]Declared by:
services.kbfs.mountPoint¶
Mountpoint for the Keybase filesystem.
Type: string
Default:
"%h/keybase"Example:
"/keybase"Declared by:
services.keepalived.enable¶
Whether to enable Keepalived.
Type: boolean
Default:
falseDeclared by:
services.keepalived.enableScriptSecurity¶
Don’t run scripts configured to be run as root if any part of the path is writable by a non-root user.
Type: boolean
Default:
falseDeclared by:
services.keepalived.extraConfig¶
Extra lines to be added verbatim to the configuration file.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.keepalived.extraGlobalDefs¶
Extra lines to be added verbatim to the ‘global_defs’ block of the configuration file
Type: strings concatenated with “\n”
Default:
""Declared by:
services.keepalived.snmp.enable¶
Whether to enable the builtin AgentX subagent.
Type: boolean
Default:
falseDeclared by:
services.keepalived.snmp.enableChecker¶
Enable SNMP handling of checker element of KEEPALIVED MIB.
Type: boolean
Default:
falseDeclared by:
services.keepalived.snmp.enableKeepalived¶
Enable SNMP handling of vrrp element of KEEPALIVED MIB.
Type: boolean
Default:
falseDeclared by:
services.keepalived.snmp.enableRfc¶
Enable SNMP handling of RFC2787 and RFC6527 VRRP MIBs.
Type: boolean
Default:
falseDeclared by:
services.keepalived.snmp.enableRfcV2¶
Enable SNMP handling of RFC2787 VRRP MIB.
Type: boolean
Default:
falseDeclared by:
services.keepalived.snmp.enableRfcV3¶
Enable SNMP handling of RFC6527 VRRP MIB.
Type: boolean
Default:
falseDeclared by:
services.keepalived.snmp.enableTraps¶
Enable SNMP traps.
Type: boolean
Default:
falseDeclared by:
services.keepalived.snmp.socket¶
Socket to use for connecting to SNMP master agent. If this value is set to null, keepalived’s default will be used, which is unix:/var/agentx/master, unless using a network namespace, when the default is udp:localhost:705.
Type: null or string
Default:
nullDeclared by:
services.keepalived.vrrpInstances¶
services.keepalived.vrrpInstances.<name>.extraConfig¶
Extra lines to be added verbatim to the vrrp_instance section.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.keepalived.vrrpInstances.<name>.interface¶
Interface for inside_network, bound by vrrp.
Type: string
Declared by:
services.keepalived.vrrpInstances.<name>.noPreempt¶
VRRP will normally preempt a lower priority machine when a higher priority machine comes online. “nopreempt” allows the lower priority machine to maintain the master role, even when a higher priority machine comes back online. NOTE: For this to work, the initial state of this entry must be BACKUP.
Type: boolean
Default:
falseDeclared by:
services.keepalived.vrrpInstances.<name>.priority¶
For electing MASTER, highest priority wins. To be MASTER, make 50 more than other machines.
Type: signed integer
Default:
100Declared by:
services.keepalived.vrrpInstances.<name>.state¶
Initial state. As soon as the other machine(s) come up, an election will be held and the machine with the highest “priority” will become MASTER. So the entry here doesn’t matter a whole lot.
Type: one of “MASTER”, “BACKUP”
Default:
"BACKUP"Declared by:
services.keepalived.vrrpInstances.<name>.trackInterfaces¶
List of network interfaces to monitor for health tracking.
Type: list of strings
Default: ``[
]``
Example:
[ "eth0" "eth1" ]Declared by:
services.keepalived.vrrpInstances.<name>.trackScripts¶
List of script names to invoke for health tracking.
Type: list of strings
Default: ``[
]``
Example:
[ "chk_cmd1" "chk_cmd2" ]Declared by:
services.keepalived.vrrpInstances.<name>.unicastPeers¶
Do not send VRRP adverts over VRRP multicast group. Instead it sends adverts to the following list of ip addresses using unicast design fashion. It can be cool to use VRRP FSM and features in a networking environment where multicast is not supported! IP Addresses specified can IPv4 as well as IPv6.
Type: list of strings
Default: ``[
]``
Declared by:
services.keepalived.vrrpInstances.<name>.unicastSrcIp¶
Default IP for binding vrrpd is the primary IP on interface. If you want to hide location of vrrpd, use this IP as src_addr for unicast vrrp packets.
Type: null or string
Default:
nullDeclared by:
services.keepalived.vrrpInstances.<name>.useVmac¶
Use VRRP Virtual MAC.
Type: boolean
Default:
falseDeclared by:
services.keepalived.vrrpInstances.<name>.virtualIps¶
Declarative vhost config
Type: list of submodules
Default: ``[
]``
Example:
TODO: ExampleDeclared by:
services.keepalived.vrrpInstances.<name>.virtualIps.*.addr¶
IP address, optionally with a netmask: IPADDR[/MASK]
Type: string
Declared by:
services.keepalived.vrrpInstances.<name>.virtualIps.*.brd¶
The broadcast address on the interface.
Type: null or string
Default:
nullDeclared by:
services.keepalived.vrrpInstances.<name>.virtualIps.*.dev¶
The name of the device to add the address to.
Type: null or string
Default:
nullDeclared by:
services.keepalived.vrrpInstances.<name>.virtualIps.*.label¶
Each address may be tagged with a label string. In order to preserve compatibility with Linux-2.0 net aliases, this string must coincide with the name of the device or must be prefixed with the device name followed by colon.
Type: null or string
Default:
nullDeclared by:
services.keepalived.vrrpInstances.<name>.virtualIps.*.scope¶
The scope of the area where this address is valid.
Type: null or string
Default:
nullDeclared by:
services.keepalived.vrrpInstances.<name>.virtualRouterId¶
Arbitrary unique number 0..255. Used to differentiate multiple instances of vrrpd running on the same NIC (and hence same socket).
Type: signed integer
Declared by:
services.keepalived.vrrpInstances.<name>.vmacInterface¶
Name of the vmac interface to use. keepalived will come up with a name if you don’t specify one.
Type: null or string
Default:
nullDeclared by:
services.keepalived.vrrpInstances.<name>.vmacXmitBase¶
Send/Recv VRRP messages from base interface instead of VMAC interface.
Type: boolean
Default:
falseDeclared by:
services.keepalived.vrrpScripts¶
services.keepalived.vrrpScripts.<name>.extraConfig¶
Extra lines to be added verbatim to the vrrp_script section.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.keepalived.vrrpScripts.<name>.fall¶
Required number of failures for KO transition.
Type: signed integer
Default:
3Declared by:
services.keepalived.vrrpScripts.<name>.group¶
Name of group to run the script under. Defaults to user group.
Type: null or string
Default:
nullDeclared by:
services.keepalived.vrrpScripts.<name>.interval¶
Seconds between script invocations.
Type: signed integer
Default:
1Declared by:
services.keepalived.vrrpScripts.<name>.rise¶
Required number of successes for OK transition.
Type: signed integer
Default:
5Declared by:
services.keepalived.vrrpScripts.<name>.script¶
(Path of) Script command to execute followed by args, i.e. cmd [args]…
Type: string
Example:
"\\${pkgs.curl} -f http://localhost:80"Declared by:
services.keepalived.vrrpScripts.<name>.timeout¶
Seconds after which script is considered to have failed.
Type: signed integer
Default:
5Declared by:
services.keepalived.vrrpScripts.<name>.user¶
Name of user to run the script under.
Type: string
Default:
"keepalived_script"Declared by:
services.keepalived.vrrpScripts.<name>.weight¶
Following a failure, adjust the priority by this weight.
Type: signed integer
Default:
0Declared by:
services.kerberos_server.enable¶
Enable the kerberos authentification server.
Type: unspecified
Default:
falseDeclared by:
services.kerberos_server.realms¶
The realm(s) to serve keys for.
Type: attribute set of submodules
Declared by:
services.kerberos_server.realms.<name>.acl¶
The privileges granted to a user.
Type: list of submodules
Default: ``[
{ access = “all”; principal = “*/admin”; }
{ access = “all”; principal = “admin”; }
]``
Declared by:
services.kerberos_server.realms.<name>.acl.*.access¶
The changes the principal is allowed to make.
Type: list of one of “add”, “cpw”, “delete”, “get”, “list”, “modify”s or one of “all”
Default:
"all"Declared by:
services.kerberos_server.realms.<name>.acl.*.principal¶
Which principal the rule applies to
Type: string
Declared by:
services.kerberos_server.realms.<name>.acl.*.target¶
The principals that ‘access’ applies to.
Type: string
Default:
"\*"Declared by:
services.keybase.enable¶
Whether to start the Keybase service.
Type: boolean
Default:
falseDeclared by:
services.kibana.enable¶
Whether to enable kibana service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.kibana.package¶
Kibana package to use
Type: package
Default:
"pkgs.kibana"Example:
"pkgs.kibana"Declared by:
services.kibana.cert¶
Kibana ssl certificate.
Type: null or path
Default:
nullDeclared by:
services.kibana.dataDir¶
Kibana data directory
Type: path
Default:
"/var/lib/kibana"Declared by:
services.kibana.defaultAppId¶
Elasticsearch default application id.
Type: string
Default:
"discover"Declared by:
services.kibana.elasticsearch.ca¶
CA file to auth against elasticsearch.
It’s recommended to use the option when using kibana-5.4 or newer.
Type: null or path
Default:
nullDeclared by:
services.kibana.elasticsearch.cert¶
Certificate file to auth against elasticsearch.
Type: null or path
Default:
nullDeclared by:
services.kibana.elasticsearch.certificateAuthorities¶
CA files to auth against elasticsearch.
Please use the option when using kibana < 5.4 because those old versions don’t support setting multiple CA’s.
This defaults to the singleton list [ca] when the option is defined.
Type: list of paths
Default: ``[
]``
Declared by:
services.kibana.elasticsearch.hosts¶
The URLs of the Elasticsearch instances to use for all your queries. All nodes listed here must be on the same cluster.
Defaults to
[ "http://localhost:9200" ].This option is only valid when using kibana >= 6.6.
Type: null or list of strings
Default:
nullDeclared by:
services.kibana.elasticsearch.key¶
Key file to auth against elasticsearch.
Type: null or path
Default:
nullDeclared by:
services.kibana.elasticsearch.password¶
Password for elasticsearch basic auth.
Type: null or string
Default:
nullDeclared by:
services.kibana.elasticsearch.url¶
Elasticsearch url.
Defaults to
"http://localhost:9200".Don’t set this when using Kibana >= 7.0.0 because it will result in a configuration error. Use instead.
Type: null or string
Default:
nullDeclared by:
services.kibana.elasticsearch.username¶
Username for elasticsearch basic auth.
Type: null or string
Default:
nullDeclared by:
services.kibana.extraConf¶
services.kibana.index¶
Elasticsearch index to use for saving kibana config.
Type: string
Default:
".kibana"Declared by:
services.kibana.key¶
Kibana ssl key.
Type: null or path
Default:
nullDeclared by:
services.kibana.listenAddress¶
Kibana listening host
Type: string
Default:
"127.0.0.1"Declared by:
services.kibana.port¶
Kibana listening port
Type: signed integer
Default:
5601Declared by:
services.kippo.enable¶
Enable the kippo honeypot ssh server.
Type: boolean
Default:
falseDeclared by:
services.kippo.extraConfig¶
Extra verbatim configuration added to the end of kippo.cfg.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.kippo.hostname¶
Hostname for kippo to present to SSH login
Type: string
Default:
"nas3"Declared by:
services.kippo.logPath¶
Path of log files needed for operation and configuration.
Type: path
Default:
"/var/log/kippo"Declared by:
services.kippo.pidPath¶
Path of pid files needed for operation.
Type: path
Default:
"/run/kippo"Declared by:
services.kippo.port¶
TCP port number for kippo to bind to.
Type: signed integer
Default:
2222Declared by:
services.kippo.varPath¶
Path of read/write files needed for operation and configuration.
Type: path
Default:
"/var/lib/kippo"Declared by:
services.klogd.enable¶
Whether to enable klogd, the kernel log message processing daemon. Since systemd handles logging of kernel messages on Linux 3.5 and later, this is only useful if you’re running an older kernel.
Type: boolean
Default:
falseDeclared by:
services.kmscon.enable¶
Use kmscon as the virtual console instead of gettys. kmscon is a kms/dri-based userspace virtual terminal implementation. It supports a richer feature set than the standard linux console VT, including full unicode support, and when the video card supports drm should be much faster.
Type: boolean
Default:
falseDeclared by:
services.kmscon.autologinUser¶
Username of the account that will be automatically logged in at the console. If unspecified, a login prompt is shown as usual.
Type: null or string
Default:
nullDeclared by:
services.kmscon.extraConfig¶
Extra contents of the kmscon.conf file.
Type: strings concatenated with “\n”
Default:
""Example:
"font-size=14"Declared by:
services.kmscon.extraOptions¶
Extra flags to pass to kmscon.
Type: strings concatenated with ” “
Default:
""Example:
"--term xterm-256color"Declared by:
services.kmscon.hwRender¶
Whether to use 3D hardware acceleration to render the console.
Type: boolean
Default:
falseDeclared by:
services.knot.enable¶
Whether to enable Knot authoritative-only DNS server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.knot.package¶
Which Knot DNS package to use
Type: package
Default:
"pkgs.knot-dns"Declared by:
services.knot.extraArgs¶
List of additional command line paramters for knotd
Type: list of strings
Default: ``[
]``
Declared by:
services.knot.extraConfig¶
Extra lines to be added verbatim to knot.conf
Type: strings concatenated with “\n”
Default:
""Declared by:
services.knot.keyFiles¶
A list of files containing additional configuration to be included using the include directive. This option allows to include configuration like TSIG keys without exposing them to the nix store readable to any process. Note that using this option will also disable configuration checks at build time.
Type: list of paths
Default: ``[
]``
Declared by:
services.kresd.enable¶
Whether to enable knot-resolver domain name server. DNSSEC validation is turned on by default. You can run
sudo nc -U /run/knot-resolver/control/1and give commands interactively to kresd@1.service.Type: boolean
Default:
falseDeclared by:
services.kresd.extraConfig¶
Extra lines to be added verbatim to the generated configuration file.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.kresd.instances¶
The number of instances to start. They will be called kresd@{1,2,…}.service. Knot Resolver uses no threads, so this is the way to scale. You can dynamically start/stop them at will, so this is just system default.
Type: unsigned integer, meaning >=0
Default:
1Declared by:
services.kresd.listenDoH¶
Addresses and ports on which kresd should provide DNS over HTTPS (see RFC 8484). For detailed syntax see ListenStream in man systemd.socket.
Type: list of strings
Default: ``[
]``
Example:
[ "198.51.100.1:443" "\[2001:db8::1]:443" "443" ]Declared by:
services.kresd.listenPlain¶
What addresses and ports the server should listen on. For detailed syntax see ListenStream in man systemd.socket.
Type: list of strings
Default:
[ "\[::1]:53" "127.0.0.1:53" ]Example:
[ "53" ]Declared by:
services.kresd.listenTLS¶
Addresses and ports on which kresd should provide DNS over TLS (see RFC 7858). For detailed syntax see ListenStream in man systemd.socket.
Type: list of strings
Default: ``[
]``
Example:
[ "198.51.100.1:853" "\[2001:db8::1]:853" "853" ]Declared by:
services.kubernetes.package¶
Kubernetes package to use.
Type: package
Default:
"pkgs.kubernetes"Declared by:
services.kubernetes.addonManager.enable¶
Whether to enable Whether to enable Kubernetes addon manager..
Type: boolean
Default:
falseExample:
trueDeclared by:
services.kubernetes.addonManager.addons¶
Kubernetes addons (any kind of Kubernetes resource can be an addon).
Type: attribute set of attribute set or list of attribute setss
Default: ``{
}``
Example:
{ "my-service" = { "apiVersion" = "v1"; "kind" = "Service"; "metadata" = { "name" = "my-service"; "namespace" = "default"; }; "spec" = { ... }; }; } // import <nixpkgs/nixos/modules/services/cluster/kubernetes/dashboard.nix> { cfg = config.services.kubernetes; };Declared by:
services.kubernetes.addonManager.bootstrapAddons¶
Bootstrap addons are like regular addons, but they are applied with cluster-admin rigths. They are applied at addon-manager startup only.
Type: attribute set of attribute sets
Default: ``{
}``
Example:
{ "my-service" = { "apiVersion" = "v1"; "kind" = "Service"; "metadata" = { "name" = "my-service"; "namespace" = "default"; }; "spec" = { ... }; }; }Declared by:
services.kubernetes.addons.dashboard.enable¶
Whether to enable kubernetes dashboard addon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.kubernetes.addons.dashboard.extraArgs¶
Extra arguments to append to the dashboard cmdline
Type: list of strings
Default: ``[
]``
Example:
[ "--enable-skip-login" ]Declared by:
services.kubernetes.addons.dashboard.image¶
Docker image to seed for the kubernetes dashboard container.
Type: attribute set
Default:
{ finalImageTag = "v1.10.1"; imageDigest = "sha256:0ae6b69432e78069c5ce2bcde0fe409c5c4d6f0f4d9cd50a17974fea38898747"; imageName = "k8s.gcr.io/kubernetes-dashboard-amd64"; sha256 = "01xrr4pwgr2hcjrjsi3d14ifpzdfbxzqpzxbk2fkbjb9zkv38zxy"; }Declared by:
services.kubernetes.addons.dashboard.rbac¶
services.kubernetes.addons.dashboard.rbac.enable¶
Whether to enable role based access control is enabled for kubernetes dashboard
Type: boolean
Default:
trueDeclared by:
services.kubernetes.addons.dashboard.rbac.clusterAdmin¶
Whether to assign cluster admin rights to the kubernetes dashboard
Type: boolean
Default:
falseDeclared by:
services.kubernetes.addons.dashboard.version¶
Which version of the kubernetes dashboard to deploy
Type: string
Default:
"v1.10.1"Declared by:
services.kubernetes.addons.dns.enable¶
Whether to enable kubernetes dns addon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.kubernetes.addons.dns.clusterDomain¶
Dns cluster domain
Type: string
Default:
"cluster.local"Declared by:
services.kubernetes.addons.dns.clusterIp¶
Dns addon clusterIP
Type: string
Default:
"10.0.0.254"Declared by:
services.kubernetes.addons.dns.coredns¶
Docker image to seed for the CoreDNS container.
Type: attribute set
Default:
{ finalImageTag = "1.6.4"; imageDigest = "sha256:493ee88e1a92abebac67cbd4b5658b4730e0f33512461442d8d9214ea6734a9b"; imageName = "coredns/coredns"; sha256 = "0fm9zdjavpf5hni8g7fkdd3csjbhd7n7py7llxjc66sbii087028"; }Declared by:
services.kubernetes.addons.dns.reconcileMode¶
Controls the addon manager reconciliation mode for the DNS addon.
Setting reconcile mode to EnsureExists makes it possible to tailor DNS behavior by editing the coredns ConfigMap.
See: ` <https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/addon-manager/README.md>`_.
Type: one of “Reconcile”, “EnsureExists”
Default:
"Reconcile"Declared by:
services.kubernetes.addons.dns.replicas¶
Number of DNS pod replicas to deploy in the cluster.
Type: signed integer
Default:
2Declared by:
services.kubernetes.apiserver.enable¶
Whether to enable Kubernetes apiserver.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.kubernetes.apiserver.enableAdmissionPlugins¶
Kubernetes admission control plugins to enable. See` <https://kubernetes.io/docs/admin/admission-controllers/>`_
Type: list of strings
Default:
[ "NamespaceLifecycle" "LimitRanger" "ServiceAccount" "ResourceQuota" "DefaultStorageClass" "DefaultTolerationSeconds" "NodeRestriction" ]Example:
[ "NamespaceLifecycle" "NamespaceExists" "LimitRanger" "SecurityContextDeny" "ServiceAccount" "ResourceQuota" "PodSecurityPolicy" "NodeRestriction" "DefaultStorageClass" ]Declared by:
services.kubernetes.apiserver.advertiseAddress¶
Kubernetes apiserver IP address on which to advertise the apiserver to members of the cluster. This address must be reachable by the rest of the cluster.
Type: null or string
Default:
nullDeclared by:
services.kubernetes.apiserver.allowPrivileged¶
Whether to allow privileged containers on Kubernetes.
Type: boolean
Default:
falseDeclared by:
services.kubernetes.apiserver.authorizationMode¶
Kubernetes apiserver authorization mode (AlwaysAllow/AlwaysDeny/ABAC/Webhook/RBAC/Node). See` <https://kubernetes.io/docs/reference/access-authn-authz/authorization/>`_
Type: list of one of “AlwaysAllow”, “AlwaysDeny”, “ABAC”, “Webhook”, “RBAC”, “Node”s
Default:
[ "RBAC" "Node" ]Declared by:
services.kubernetes.apiserver.authorizationPolicy¶
Kubernetes apiserver authorization policy file. See` <https://kubernetes.io/docs/reference/access-authn-authz/authorization/>`_
Type: list of attribute sets
Default: ``[
]``
Declared by:
services.kubernetes.apiserver.basicAuthFile¶
Kubernetes apiserver basic authentication file. See` <https://kubernetes.io/docs/reference/access-authn-authz/authentication>`_
Type: null or path
Default:
nullDeclared by:
services.kubernetes.apiserver.bindAddress¶
The IP address on which to listen for the –secure-port port. The associated interface(s) must be reachable by the rest of the cluster, and by CLI/web clients.
Type: string
Default:
"0.0.0.0"Declared by:
services.kubernetes.apiserver.clientCaFile¶
Kubernetes apiserver CA file for client auth.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.apiserver.disableAdmissionPlugins¶
Kubernetes admission control plugins to disable. See` <https://kubernetes.io/docs/admin/admission-controllers/>`_
Type: list of strings
Default: ``[
]``
Declared by:
services.kubernetes.apiserver.etcd.caFile¶
Etcd ca file.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.apiserver.etcd.certFile¶
Etcd cert file.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.apiserver.etcd.keyFile¶
Etcd key file.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.apiserver.etcd.servers¶
List of etcd servers.
Type: list of strings
Default:
[ "http://127.0.0.1:2379" ]Declared by:
services.kubernetes.apiserver.extraOpts¶
Kubernetes apiserver extra command line options.
Type: string
Default:
""Declared by:
services.kubernetes.apiserver.extraSANs¶
Extra x509 Subject Alternative Names to be added to the kubernetes apiserver tls cert.
Type: list of strings
Default: ``[
]``
Declared by:
services.kubernetes.apiserver.featureGates¶
services.kubernetes.apiserver.insecureBindAddress¶
The IP address on which to serve the –insecure-port.
Type: string
Default:
"127.0.0.1"Declared by:
services.kubernetes.apiserver.insecurePort¶
Kubernetes apiserver insecure listening port. (0 = disabled)
Type: signed integer
Default:
0Declared by:
services.kubernetes.apiserver.kubeletClientCaFile¶
Path to a cert file for connecting to kubelet.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.apiserver.kubeletClientCertFile¶
Client certificate to use for connections to kubelet.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.apiserver.kubeletClientKeyFile¶
Key to use for connections to kubelet.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.apiserver.kubeletHttps¶
Whether to use https for connections to kubelet.
Type: boolean
Default:
trueDeclared by:
services.kubernetes.apiserver.preferredAddressTypes¶
List of the preferred NodeAddressTypes to use for kubelet connections.
Type: null or string
Default:
nullDeclared by:
services.kubernetes.apiserver.proxyClientCertFile¶
Client certificate to use for connections to proxy.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.apiserver.proxyClientKeyFile¶
Key to use for connections to proxy.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.apiserver.runtimeConfig¶
Api runtime configuration. See` <https://kubernetes.io/docs/tasks/administer-cluster/cluster-management/>`_
Type: string
Default:
"authentication.k8s.io/v1beta1=true"Example:
"api/all=false,api/v1=true"Declared by:
services.kubernetes.apiserver.securePort¶
Kubernetes apiserver secure port.
Type: signed integer
Default:
6443Declared by:
services.kubernetes.apiserver.serviceAccountKeyFile¶
Kubernetes apiserver PEM-encoded x509 RSA private or public key file, used to verify ServiceAccount tokens. By default tls private key file is used.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.apiserver.serviceClusterIpRange¶
A CIDR notation IP range from which to assign service cluster IPs. This must not overlap with any IP ranges assigned to nodes for pods.
Type: string
Default:
"10.0.0.0/24"Declared by:
services.kubernetes.apiserver.storageBackend¶
Kubernetes apiserver storage backend.
Type: one of “etcd2”, “etcd3”
Default:
"etcd3"Declared by:
services.kubernetes.apiserver.tlsCertFile¶
Kubernetes apiserver certificate file.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.apiserver.tlsKeyFile¶
Kubernetes apiserver private key file.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.apiserver.tokenAuthFile¶
Kubernetes apiserver token authentication file. See` <https://kubernetes.io/docs/reference/access-authn-authz/authentication>`_
Type: null or path
Default:
nullDeclared by:
services.kubernetes.apiserver.verbosity¶
Optional glog verbosity level for logging statements. See` <https://github.com/kubernetes/community/blob/master/contributors/devel/logging.md>`_
Type: null or signed integer
Default:
nullDeclared by:
services.kubernetes.apiserver.webhookConfig¶
Kubernetes apiserver Webhook config file. It uses the kubeconfig file format. See ` <https://kubernetes.io/docs/reference/access-authn-authz/webhook/>`_
Type: null or path
Default:
nullDeclared by:
services.kubernetes.apiserverAddress¶
Clusterwide accessible address for the kubernetes apiserver, including protocol and optional port.
Type: string
Example:
"https://kubernetes-apiserver.example.com:6443"Declared by:
services.kubernetes.caFile¶
Default kubernetes certificate authority
Type: null or path
Default:
nullDeclared by:
services.kubernetes.clusterCidr¶
Kubernetes controller manager and proxy CIDR Range for Pods in cluster.
Type: null or string
Default:
"10.1.0.0/16"Declared by:
services.kubernetes.controllerManager.enable¶
Whether to enable Kubernetes controller manager.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.kubernetes.controllerManager.allocateNodeCIDRs¶
Whether to automatically allocate CIDR ranges for cluster nodes.
Type: boolean
Default:
trueDeclared by:
services.kubernetes.controllerManager.bindAddress¶
Kubernetes controller manager listening address.
Type: string
Default:
"127.0.0.1"Declared by:
services.kubernetes.controllerManager.clusterCidr¶
Kubernetes CIDR Range for Pods in cluster.
Type: string
Default:
"10.1.0.0/16"Declared by:
services.kubernetes.controllerManager.extraOpts¶
Kubernetes controller manager extra command line options.
Type: string
Default:
""Declared by:
services.kubernetes.controllerManager.featureGates¶
services.kubernetes.controllerManager.insecurePort¶
Kubernetes controller manager insecure listening port.
Type: signed integer
Default:
0Declared by:
services.kubernetes.controllerManager.kubeconfig.caFile¶
Kubernetes controller manager certificate authority file used to connect to kube-apiserver.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.controllerManager.kubeconfig.certFile¶
Kubernetes controller manager client certificate file used to connect to kube-apiserver.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.controllerManager.kubeconfig.keyFile¶
Kubernetes controller manager client key file used to connect to kube-apiserver.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.controllerManager.kubeconfig.server¶
Kubernetes controller manager kube-apiserver server address.
Type: string
Declared by:
services.kubernetes.controllerManager.leaderElect¶
Whether to start leader election before executing main loop.
Type: boolean
Default:
trueDeclared by:
services.kubernetes.controllerManager.rootCaFile¶
Kubernetes controller manager certificate authority file included in service account’s token secret.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.controllerManager.securePort¶
Kubernetes controller manager secure listening port.
Type: signed integer
Default:
10252Declared by:
services.kubernetes.controllerManager.serviceAccountKeyFile¶
Kubernetes controller manager PEM-encoded private RSA key file used to sign service account tokens
Type: null or path
Default:
nullDeclared by:
services.kubernetes.controllerManager.tlsCertFile¶
Kubernetes controller-manager certificate file.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.controllerManager.tlsKeyFile¶
Kubernetes controller-manager private key file.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.controllerManager.verbosity¶
Optional glog verbosity level for logging statements. See` <https://github.com/kubernetes/community/blob/master/contributors/devel/logging.md>`_
Type: null or signed integer
Default:
nullDeclared by:
services.kubernetes.dataDir¶
Kubernetes root directory for managing kubelet files.
Type: path
Default:
"/var/lib/kubernetes"Declared by:
services.kubernetes.easyCerts¶
Automatically setup x509 certificates and keys for the entire cluster.
Type: boolean
Default:
falseDeclared by:
services.kubernetes.featureGates¶
services.kubernetes.flannel.enable¶
Whether to enable enable flannel networking.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.kubernetes.kubeconfig.caFile¶
Default kubeconfig certificate authority file used to connect to kube-apiserver.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.kubeconfig.certFile¶
Default kubeconfig client certificate file used to connect to kube-apiserver.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.kubeconfig.keyFile¶
Default kubeconfig client key file used to connect to kube-apiserver.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.kubeconfig.server¶
Default kubeconfig kube-apiserver server address.
Type: string
Declared by:
services.kubernetes.kubelet.enable¶
Whether to enable Kubernetes kubelet..
Type: boolean
Default:
falseExample:
trueDeclared by:
services.kubernetes.kubelet.address¶
Kubernetes kubelet info server listening address.
Type: string
Default:
"0.0.0.0"Declared by:
services.kubernetes.kubelet.clientCaFile¶
Kubernetes apiserver CA file for client authentication.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.kubelet.clusterDns¶
Use alternative DNS.
Type: string
Default:
"10.1.0.1"Declared by:
services.kubernetes.kubelet.clusterDomain¶
Use alternative domain.
Type: string
Default:
"cluster.local"Declared by:
services.kubernetes.kubelet.cni.packages¶
services.kubernetes.kubelet.cni.config¶
Kubernetes CNI configuration.
Type: list of attribute sets
Default: ``[
]``
Example:
[{ "cniVersion": "0.3.1", "name": "mynet", "type": "bridge", "bridge": "cni0", "isGateway": true, "ipMasq": true, "ipam": { "type": "host-local", "subnet": "10.22.0.0/16", "routes": [ { "dst": "0.0.0.0/0" } ] } } { "cniVersion": "0.3.1", "type": "loopback" }]Declared by:
services.kubernetes.kubelet.cni.configDir¶
Path to Kubernetes CNI configuration directory.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.kubelet.extraOpts¶
Kubernetes kubelet extra command line options.
Type: string
Default:
""Declared by:
services.kubernetes.kubelet.featureGates¶
services.kubernetes.kubelet.healthz.bind¶
Kubernetes kubelet healthz listening address.
Type: string
Default:
"127.0.0.1"Declared by:
services.kubernetes.kubelet.healthz.port¶
Kubernetes kubelet healthz port.
Type: signed integer
Default:
10248Declared by:
services.kubernetes.kubelet.hostname¶
Kubernetes kubelet hostname override.
Type: string
Default:
"nixos"Declared by:
services.kubernetes.kubelet.kubeconfig.caFile¶
Kubelet certificate authority file used to connect to kube-apiserver.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.kubelet.kubeconfig.certFile¶
Kubelet client certificate file used to connect to kube-apiserver.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.kubelet.kubeconfig.keyFile¶
Kubelet client key file used to connect to kube-apiserver.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.kubelet.kubeconfig.server¶
Kubelet kube-apiserver server address.
Type: string
Declared by:
services.kubernetes.kubelet.manifests¶
List of manifests to bootstrap with kubelet (only pods can be created as manifest entry)
Type: attribute set of attribute sets
Default: ``{
}``
Declared by:
services.kubernetes.kubelet.networkPlugin¶
Network plugin to use by Kubernetes.
Type: null or one of “cni”, “kubenet”
Default:
"kubenet"Declared by:
services.kubernetes.kubelet.nodeIp¶
IP address of the node. If set, kubelet will use this IP address for the node.
Type: null or string
Default:
nullDeclared by:
services.kubernetes.kubelet.port¶
Kubernetes kubelet info server listening port.
Type: signed integer
Default:
10250Declared by:
services.kubernetes.kubelet.registerNode¶
Whether to auto register kubelet with API server.
Type: boolean
Default:
trueDeclared by:
services.kubernetes.kubelet.seedDockerImages¶
services.kubernetes.kubelet.taints¶
Node taints (https://kubernetes.io/docs/concepts/configuration/assign-pod-node/).
Type: attribute set of submodules
Default: ``{
}``
Declared by:
services.kubernetes.kubelet.taints.<name>.effect¶
Effect of taint.
Type: one of “NoSchedule”, “PreferNoSchedule”, “NoExecute”
Example:
"NoSchedule"Declared by:
services.kubernetes.kubelet.taints.<name>.key¶
Key of taint.
Type: string
Default:
"‹name›"Declared by:
services.kubernetes.kubelet.taints.<name>.value¶
Value of taint.
Type: string
Declared by:
services.kubernetes.kubelet.tlsCertFile¶
File containing x509 Certificate for HTTPS.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.kubelet.tlsKeyFile¶
File containing x509 private key matching tlsCertFile.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.kubelet.unschedulable¶
Whether to set node taint to unschedulable=true as it is the case of node that has only master role.
Type: boolean
Default:
falseDeclared by:
services.kubernetes.kubelet.verbosity¶
Optional glog verbosity level for logging statements. See` <https://github.com/kubernetes/community/blob/master/contributors/devel/logging.md>`_
Type: null or signed integer
Default:
nullDeclared by:
services.kubernetes.lib¶
Common functions for the kubernetes modules.
Type: attribute set
Default:
{ mkCert = "<function>"; mkKubeConfig = "<function>"; mkKubeConfigOptions = "<function>"; }Declared by:
services.kubernetes.masterAddress¶
Clusterwide available network address or hostname for the kubernetes master server.
Type: string
Example:
"master.example.com"Declared by:
services.kubernetes.path¶
Packages added to the services’ PATH environment variable. Both the bin and sbin subdirectories of each package are added.
Type: list of packages
Default: ``[
]``
Declared by:
services.kubernetes.pki.enable¶
Whether to enable easyCert issuer service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.kubernetes.pki.caCertPathPrefix¶
Path-prefrix for the CA-certificate to be used for cfssl signing. Suffixes “.pem” and “-key.pem” will be automatically appended for the public and private keys respectively.
Type: string
Default:
"/var/lib/cfssl/ca"Declared by:
services.kubernetes.pki.caSpec¶
Certificate specification for the auto-generated CAcert.
Type: attribute set
Default:
{ CN = "kubernetes-cluster-ca"; L = "auto-generated"; O = "NixOS"; OU = "services.kubernetes.pki.caSpec"; }Declared by:
services.kubernetes.pki.certs¶
List of certificate specs to feed to cert generator.
Type: attribute set
Default: ``{
}``
Declared by:
services.kubernetes.pki.cfsslAPIExtraSANs¶
Extra x509 Subject Alternative Names to be added to the cfssl API webserver TLS cert.
Type: list of strings
Default: ``[
]``
Example:
[ "subdomain.example.com" ]Declared by:
services.kubernetes.pki.etcClusterAdminKubeconfig¶
Symlink a kubeconfig with cluster-admin privileges to environment path (/etc/<path>).
Type: null or string
Default:
nullDeclared by:
services.kubernetes.pki.genCfsslAPICerts¶
Whether to automatically generate cfssl API webserver TLS cert and key, if they don’t exist.
Type: boolean
Default:
trueDeclared by:
services.kubernetes.pki.genCfsslAPIToken¶
Whether to automatically generate cfssl API-token secret, if they doesn’t exist.
Type: boolean
Default:
trueDeclared by:
services.kubernetes.pki.genCfsslCACert¶
Whether to automatically generate cfssl CA certificate and key, if they don’t exist.
Type: boolean
Default:
trueDeclared by:
services.kubernetes.pki.pkiTrustOnBootstrap¶
Whether to always trust remote cfssl server upon initial PKI bootstrap.
Type: boolean
Default:
trueDeclared by:
services.kubernetes.proxy.enable¶
Whether to enable Kubernetes proxy.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.kubernetes.proxy.bindAddress¶
Kubernetes proxy listening address.
Type: string
Default:
"0.0.0.0"Declared by:
services.kubernetes.proxy.extraOpts¶
Kubernetes proxy extra command line options.
Type: string
Default:
""Declared by:
services.kubernetes.proxy.featureGates¶
services.kubernetes.proxy.hostname¶
Kubernetes proxy hostname override.
Type: string
Default:
"nixos"Declared by:
services.kubernetes.proxy.kubeconfig.caFile¶
Kubernetes proxy certificate authority file used to connect to kube-apiserver.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.proxy.kubeconfig.certFile¶
Kubernetes proxy client certificate file used to connect to kube-apiserver.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.proxy.kubeconfig.keyFile¶
Kubernetes proxy client key file used to connect to kube-apiserver.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.proxy.kubeconfig.server¶
Kubernetes proxy kube-apiserver server address.
Type: string
Declared by:
services.kubernetes.proxy.verbosity¶
Optional glog verbosity level for logging statements. See` <https://github.com/kubernetes/community/blob/master/contributors/devel/logging.md>`_
Type: null or signed integer
Default:
nullDeclared by:
services.kubernetes.roles¶
Kubernetes role that this machine should take.
Master role will enable etcd, apiserver, scheduler, controller manager addon manager, flannel and proxy services. Node role will enable flannel, docker, kubelet and proxy services.
Type: list of one of “master”, “node”s
Default: ``[
]``
Declared by:
services.kubernetes.scheduler.enable¶
Whether to enable Kubernetes scheduler.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.kubernetes.scheduler.address¶
Kubernetes scheduler listening address.
Type: string
Default:
"127.0.0.1"Declared by:
services.kubernetes.scheduler.extraOpts¶
Kubernetes scheduler extra command line options.
Type: string
Default:
""Declared by:
services.kubernetes.scheduler.featureGates¶
services.kubernetes.scheduler.kubeconfig.caFile¶
Kubernetes scheduler certificate authority file used to connect to kube-apiserver.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.scheduler.kubeconfig.certFile¶
Kubernetes scheduler client certificate file used to connect to kube-apiserver.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.scheduler.kubeconfig.keyFile¶
Kubernetes scheduler client key file used to connect to kube-apiserver.
Type: null or path
Default:
nullDeclared by:
services.kubernetes.scheduler.kubeconfig.server¶
Kubernetes scheduler kube-apiserver server address.
Type: string
Declared by:
services.kubernetes.scheduler.leaderElect¶
Whether to start leader election before executing main loop.
Type: boolean
Default:
trueDeclared by:
services.kubernetes.scheduler.port¶
Kubernetes scheduler listening port.
Type: signed integer
Default:
10251Declared by:
services.kubernetes.scheduler.verbosity¶
Optional glog verbosity level for logging statements. See` <https://github.com/kubernetes/community/blob/master/contributors/devel/logging.md>`_
Type: null or signed integer
Default:
nullDeclared by:
services.kubernetes.secretsPath¶
Default location for kubernetes secrets. Not a store location.
Type: path
Default:
"/var/lib/kubernetes/secrets"Declared by:
services.lambdabot.enable¶
Enable the Lambdabot IRC bot
Type: boolean
Default:
falseDeclared by:
services.lambdabot.package¶
Used lambdabot package
Type: package
Default:
"pkgs.lambdabot"Declared by:
services.lambdabot.script¶
Lambdabot script
Type: string
Default:
""Declared by:
services.leaps.enable¶
Whether to enable leaps.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.leaps.address¶
Hostname or IP-address to listen to. By default it will listen on all interfaces.
Type: string
Default:
""Example:
"127.0.0.1"Declared by:
services.leaps.path¶
Subdirectory used for reverse proxy setups
Type: path
Default:
"/"Declared by:
services.leaps.port¶
A port where leaps listens for incoming http requests
Type: signed integer
Default:
8080Declared by:
services.libreswan.enable¶
Whether to enable libreswan ipsec service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.libreswan.configSetup¶
Options to go in the ‘config setup’ section of the libreswan ipsec configuration
Type: strings concatenated with “\n”
Default:
'' protostack=netkey nat_traversal=yes virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12,%v4:25.0.0.0/8,%v4:100.64.0.0/10,%v6:fd00::/8,%v6:fe80::/10 ''Example:
'' secretsfile=/root/ipsec.secrets protostack=netkey nat_traversal=yes virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12,%v4:25.0.0.0/8,%v4:100.64.0.0/10,%v6:fd00::/8,%v6:fe80::/10 ''Declared by:
services.libreswan.connections¶
A set of connections to define for the libreswan ipsec service
Type: attribute set of strings concatenated with “\n”s
Default: ``{
}``
Example:
{ myconnection = "auto=add\\nleft=%defaultroute\\nleftid=@user\\n\\nright=my.vpn.com\\n\\nikev2=no\\nikelifetime=8h\\n"; }Declared by:
services.lidarr.enable¶
Whether to enable Lidarr.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.lidarr.package¶
The Lidarr package to use
Type: package
Default:
"pkgs.lidarr"Declared by:
services.lidarr.dataDir¶
The directory where Lidarr stores its data files.
Type: string
Default:
"/var/lib/lidarr/.config/Lidarr"Declared by:
services.lidarr.group¶
Group under which Lidarr runs.
Type: string
Default:
"lidarr"Declared by:
services.lidarr.openFirewall¶
Open ports in the firewall for Lidarr
Type: boolean
Default:
falseDeclared by:
services.lidarr.user¶
User account under which Lidarr runs.
Type: string
Default:
"lidarr"Declared by:
services.lighttpd.enable¶
Enable the lighttpd web server.
Type: boolean
Default:
falseDeclared by:
services.lighttpd.enableModules¶
List of lighttpd modules to enable. Sub-services take care of enabling modules as needed, so this option is mainly for when you want to add custom stuff to that depends on a certain module.
Type: list of strings
Default: ``[
]``
Example:
[ "mod_cgi" "mod_status" ]Declared by:
services.lighttpd.enableUpstreamMimeTypes¶
Whether to include the list of mime types bundled with lighttpd (upstream). If you disable this, no mime types will be added by NixOS and you will have to add your own mime types in.
Type: boolean
Default:
trueDeclared by:
services.lighttpd.cgit.enable¶
If true, enable cgit (fast web interface for git repositories) as a sub-service in lighttpd.
Type: boolean
Default:
falseDeclared by:
services.lighttpd.cgit.configText¶
Verbatim contents of the cgit runtime configuration file. Documentation (with cgitrc example file) is available in “man cgitrc”. Or online: http://git.zx2c4.com/cgit/tree/cgitrc.5.txt
Type: strings concatenated with “\n”
Default:
""Example:
'' source-filter=''${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py about-filter=''${pkgs.cgit}/lib/cgit/filters/about-formatting.sh cache-size=1000 scan-path=/srv/git ''Declared by:
services.lighttpd.cgit.subdir¶
The subdirectory in which to serve cgit. The web application will be accessible at http://yourserver/${subdir}
Type: string
Default:
"cgit"Example:
""Declared by:
services.lighttpd.collectd.enable¶
Whether to enable collectd subservice accessible at http://yourserver/collectd.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.lighttpd.collectd.collectionCgi¶
Path to collection.cgi script from (collectd sources)/contrib/collection.cgi This option allows to use a customized version
Type: path
Default:
*(build of collection.cgi)*Declared by:
services.lighttpd.configText¶
Overridable config file contents to use for lighttpd. By default, use the contents automatically generated by NixOS.
Type: strings concatenated with “\n”
Default:
""Example:
"...verbatim config file contents..."Declared by:
services.lighttpd.document-root¶
Document-root of the web server. Must be readable by the “lighttpd” user.
Type: path
Default:
"/srv/www"Declared by:
services.lighttpd.extraConfig¶
These configuration lines will be appended to the generated lighttpd config file. Note that this mechanism does not work when the manual option is used.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.lighttpd.gitweb.enable¶
If true, enable gitweb in lighttpd. Access it at http://yourserver/gitweb
Type: boolean
Default:
falseDeclared by:
services.lighttpd.mod_status¶
Show server status overview at /server-status, statistics at /server-statistics and list of loaded modules at /server-config.
Type: boolean
Default:
falseDeclared by:
services.lighttpd.mod_userdir¶
If true, requests in the form /~user/page.html are rewritten to take the file public_html/page.html from the home directory of the user.
Type: boolean
Default:
falseDeclared by:
services.lighttpd.port¶
TCP port number for lighttpd to bind to.
Type: signed integer
Default:
80Declared by:
services.limesurvey.enable¶
Whether to enable Limesurvey web application..
Type: boolean
Default:
falseExample:
trueDeclared by:
services.limesurvey.config¶
LimeSurvey configuration. Refer to` <https://manual.limesurvey.org/Optional_settings>`_ for details on supported values.
Type: limesurvey config type (str, int, bool or attribute set thereof)
Default: ``{
}``
Declared by:
services.limesurvey.database.createLocally¶
Create the database and database user locally. This currently only applies if database type “mysql” is selected.
Type: boolean
Default:
"true"Declared by:
services.limesurvey.database.host¶
Database host address.
Type: string
Default:
"localhost"Declared by:
services.limesurvey.database.name¶
Database name.
Type: string
Default:
"limesurvey"Declared by:
services.limesurvey.database.passwordFile¶
A file containing the password corresponding to.
Type: null or path
Default:
nullExample:
"/run/keys/limesurvey-dbpassword"Declared by:
services.limesurvey.database.port¶
Database host port.
Type: signed integer
Default:
"3306"Declared by:
services.limesurvey.database.socket¶
Path to the unix socket file to use for authentication.
Type: null or path
Default:
"/run/mysqld/mysqld.sock"Declared by:
services.limesurvey.database.type¶
Database engine to use.
Type: one of “mysql”, “pgsql”, “odbc”, “mssql”
Default:
"mysql"Example:
"pgsql"Declared by:
services.limesurvey.database.user¶
Database user.
Type: string
Default:
"limesurvey"Declared by:
services.limesurvey.poolConfig¶
Options for the LimeSurvey PHP pool. See the documentation on
php-fpm.conffor details on configuration directives.Type: attribute set of string or signed integer or booleans
Default:
{ pm = "dynamic"; pm.max_children = 32; pm.max_requests = 500; pm.max_spare_servers = 4; pm.min_spare_servers = 2; pm.start_servers = 2; }Declared by:
services.limesurvey.virtualHost¶
Apache configuration can be done by adapting
services.httpd.virtualHosts.<name>. See services.httpd.virtualHosts for further information.Type: submodule
Example:
{ hostName = "survey.example.org"; adminAddr = "webmaster@example.org"; forceSSL = true; enableACME = true; }Declared by:
services.limesurvey.virtualHost.enableACME¶
Whether to ask Let’s Encrypt to sign a certificate for this vhost. Alternately, you can use an existing certificate through .
Type: boolean
Default:
falseDeclared by:
services.limesurvey.virtualHost.enableUserDir¶
Whether to enable serving
~/public_htmlas``/~*username*``.Type: boolean
Default:
falseDeclared by:
services.limesurvey.virtualHost.acmeRoot¶
Directory for the acme challenge which is PUBLIC, don’t put certs or keys in here
Type: string
Default:
"/var/lib/acme/acme-challenges"Declared by:
services.limesurvey.virtualHost.addSSL¶
Whether to enable HTTPS in addition to plain HTTP. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443).
Type: boolean
Default:
falseDeclared by:
services.limesurvey.virtualHost.adminAddr¶
E-mail address of the server administrator.
Type: null or string
Default:
nullExample:
"admin@example.org"Declared by:
services.limesurvey.virtualHost.documentRoot¶
The path of Apache’s document root directory. If left undefined, an empty directory in the Nix store will be used as root.
Type: null or path
Default:
nullExample:
"/data/webserver/docs"Declared by:
services.limesurvey.virtualHost.extraConfig¶
These lines go to httpd.conf verbatim. They will go after directories and directory aliases defined by default.
Type: strings concatenated with “\n”
Default:
""Example:
'' <Directory /home> Options FollowSymlinks AllowOverride All </Directory> ''Declared by:
services.limesurvey.virtualHost.forceSSL¶
Whether to add a separate nginx server block that permanently redirects (301) all plain HTTP traffic to HTTPS. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443), where the non-SSL listens are used for the redirect vhosts.
Type: boolean
Default:
falseDeclared by:
services.limesurvey.virtualHost.globalRedirect¶
If set, all requests for this host are redirected permanently to the given URL.
Type: null or string
Default:
nullExample:
"http://newserver.example.org/"Declared by:
services.limesurvey.virtualHost.hostName¶
Canonical hostname for the server.
Type: string
Default:
"‹name›"Declared by:
services.limesurvey.virtualHost.http2¶
Whether to enable HTTP 2. HTTP/2 is supported in all multi-processing modules that come with httpd. However, if you use the prefork mpm, there will be severe restrictions. Refer to ` <https://httpd.apache.org/docs/2.4/howto/http2.html#mpm-config>`_ for details.
Type: boolean
Default:
falseDeclared by:
services.limesurvey.virtualHost.listen¶
services.limesurvey.virtualHost.listen.*.ip¶
IP to listen on. 0.0.0.0 for IPv4 only, * for all.
Type: string
Default:
"\*"Declared by:
services.limesurvey.virtualHost.listen.*.port¶
Port to listen on
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Declared by:
services.limesurvey.virtualHost.listen.*.ssl¶
Whether to enable SSL (https) support.
Type: boolean
Default:
falseDeclared by:
services.limesurvey.virtualHost.locations¶
Declarative location config. See ` <https://httpd.apache.org/docs/2.4/mod/core.html#location>`_ for details.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ "/" = { proxyPass = "http://localhost:3000"; }; "/foo/bar.png" = { alias = "/home/eelco/some-file.png"; }; };Declared by:
services.limesurvey.virtualHost.locations.<name>.alias¶
Alias directory for requests. See ` <https://httpd.apache.org/docs/2.4/mod/mod_alias.html#alias>`_.
Type: null or path
Default:
nullExample:
"/your/alias/directory"Declared by:
services.limesurvey.virtualHost.locations.<name>.extraConfig¶
These lines go to the end of the location verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.limesurvey.virtualHost.locations.<name>.index¶
Adds DirectoryIndex directive. See ` <https://httpd.apache.org/docs/2.4/mod/mod_dir.html#directoryindex>`_.
Type: null or string
Default:
nullExample:
"index.php index.html"Declared by:
services.limesurvey.virtualHost.locations.<name>.priority¶
Order of this location block in relation to the others in the vhost. The semantics are the same as with `lib.mkOrder`. Smaller values have a greater priority.
Type: signed integer
Default:
1000Declared by:
services.limesurvey.virtualHost.locations.<name>.proxyPass¶
Sets up a simple reverse proxy as described by ` <https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html#simple>`_.
Type: null or string
Default:
nullExample:
"http://www.example.org/"Declared by:
services.limesurvey.virtualHost.logFormat¶
Log format for Apache’s log files. Possible values are: combined, common, referer, agent.
Type: string
Default:
"common"Example:
"combined"Declared by:
services.limesurvey.virtualHost.onlySSL¶
Whether to enable HTTPS and reject plain HTTP connections. This will set defaults for
listento listen on all interfaces on port 443.Type: boolean
Default:
falseDeclared by:
services.limesurvey.virtualHost.robotsEntries¶
Specification of pages to be ignored by web crawlers. See ` <http://www.robotstxt.org/>`_ for details.
Type: strings concatenated with “\n”
Default:
""Example:
"Disallow: /foo/"Declared by:
services.limesurvey.virtualHost.servedDirs¶
services.limesurvey.virtualHost.servedFiles¶
This option provides a simple way to serve individual, static files.
Note
This option has been deprecated and will be removed in a future version of NixOS. You can achieve the same result by making use of the
locations.<name>.aliasoption.Type: list of attribute sets
Default: ``[
]``
Example: ``[
{ file = “/home/eelco/some-file.png”; urlPath = “/foo/bar.png”; }
]``
Declared by:
services.limesurvey.virtualHost.serverAliases¶
Additional names of virtual hosts served by this virtual host configuration.
Type: list of strings
Default: ``[
]``
Example:
[ "www.example.org" "www.example.org:8080" "example.org" ]Declared by:
services.limesurvey.virtualHost.sslServerCert¶
Path to server SSL certificate.
Type: path
Example:
"/var/host.cert"Declared by:
services.limesurvey.virtualHost.sslServerChain¶
Path to server SSL chain file.
Type: null or path
Default:
nullExample:
"/var/ca.pem"Declared by:
services.limesurvey.virtualHost.sslServerKey¶
Path to server SSL certificate key.
Type: path
Example:
"/var/host.key"Declared by:
services.limesurvey.virtualHost.useACMEHost¶
A host of an existing Let’s Encrypt certificate to use. This is useful if you have many subdomains and want to avoid hitting the`rate limit <https://letsencrypt.org/docs/rate-limits/>`_. Alternately, you can generate a certificate through .*Note that this option does not create any certificates, nor it does add subdomains to existing ones – you will need to create them manually using security.acme.certs.*
Type: null or string
Default:
nullDeclared by:
services.liquidsoap.streams¶
Set of Liquidsoap streams to start, one systemd service per stream.
Type: attribute set of path or strings
Default: ``{
}``
Example:
{ myStream1 = "/etc/liquidsoap/myStream1.liq"; myStream2 = ./myStream2.liq; myStream3 = "out(playlist(\\"/srv/music/\\"))"; }Declared by:
services.lirc.enable¶
Whether to enable LIRC daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.lirc.configs¶
Configurations for lircd to load, see man:lircd.conf(5) for details (
lircd.conf)Type: list of strings concatenated with “\n”s
Declared by:
services.lirc.extraArguments¶
services.lirc.options¶
LIRC default options descriped in man:lircd(8) (
lirc_options.conf)Type: strings concatenated with “\n”
Example:
'' [lircd] nodaemon = False ''Declared by:
services.lldpd.enable¶
Whether to enable Link Layer Discovery Protocol Daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.lldpd.extraArgs¶
List of command line parameters for lldpd
Type: list of strings
Default: ``[
]``
Example:
[ "-c" "-k" "-I eth0" ]Declared by:
services.localtime.enable¶
Enable
localtime, simple daemon for keeping the system timezone up-to-date based on the current location. It uses geoclue2 to determine the current location and systemd-timedated to actually set the timezone.Type: unspecified
Default:
falseDeclared by:
services.locate.enable¶
If enabled, NixOS will periodically update the database of files used by the locate command.
Type: boolean
Default:
falseDeclared by:
services.locate.extraFlags¶
services.locate.interval¶
Update the locate database at this interval. Updates by default at 2:15 AM every day.
The format is described insystemd.time7.
Type: string
Default:
"02:15"Example:
"hourly"Declared by:
services.locate.localuser¶
The user to search non-network directories as, using:command:su.
Type: null or string
Default:
"nobody"Declared by:
services.locate.locate¶
The locate implementation to use
Type: package
Default:
"pkgs.findutils"Example:
"pkgs.mlocate"Declared by:
services.locate.output¶
The database file to build.
Type: path
Default:
"/var/cache/locatedb"Declared by:
services.locate.pruneBindMounts¶
Whether not to index bind mounts
Type: boolean
Default:
falseDeclared by:
services.locate.pruneFS¶
Which filesystem types to exclude from indexing
Type: list of strings
Default:
[ "afs" "anon_inodefs" "auto" "autofs" "bdev" "binfmt" "binfmt_misc" "cgroup" "cifs" "coda" "configfs" "cramfs" "cpuset" "debugfs" "devfs" "devpts" "devtmpfs" "ecryptfs" "eventpollfs" "exofs" "futexfs" "ftpfs" "fuse" "fusectl" "gfs" "gfs2" "hostfs" "hugetlbfs" "inotifyfs" "iso9660" "jffs2" "lustre" "misc" "mqueue" "ncpfs" "nnpfs" "ocfs" "ocfs2" "pipefs" "proc" "ramfs" "rpc_pipefs" "securityfs" "selinuxfs" "sfs" "shfs" "smbfs" "sockfs" "spufs" "nfs" "NFS" "nfs4" "nfsd" "sshfs" "subfs" "supermount" "sysfs" "tmpfs" "ubifs" "udf" "usbfs" "vboxsf" "vperfctrfs" ]Declared by:
services.locate.pruneNames¶
Directory components which should exclude paths containing them from indexing
Type: list of strings
Default: ``[
]``
Declared by:
services.locate.prunePaths¶
Which paths to exclude from indexing
Type: list of paths
Default:
[ "/tmp" "/var/tmp" "/var/cache" "/var/lock" "/var/run" "/var/spool" "/nix/store" ]Declared by:
services.logcheck.enable¶
Enable the logcheck cron job.
Type: boolean
Default:
falseDeclared by:
services.logcheck.config¶
Config options that you would like in logcheck.conf.
Type: strings concatenated with “\n”
Default:
"FQDN=1"Declared by:
services.logcheck.extraGroups¶
Extra groups for the logcheck user, for example to be able to use sendmail, or to access certain log files.
Type: list of strings
Default: ``[
]``
Example:
[ "postdrop" "mongodb" ]Declared by:
services.logcheck.extraRulesDirs¶
Directories with extra rules.
Type: list of paths
Default: ``[
]``
Example:
"/etc/logcheck"Declared by:
services.logcheck.files¶
Which log files to check.
Type: list of paths
Default:
[ "/var/log/messages" ]Example:
[ "/var/log/messages" "/var/log/mail" ]Declared by:
services.logcheck.ignore¶
This option defines extra ignore rules.
Type: attribute set of submodules
Default: ``{
}``
Declared by:
services.logcheck.ignore.<name>.level¶
Set the logcheck level.
Type: one of “workstation”, “server”, “paranoid”
Default:
"server"Declared by:
services.logcheck.ignore.<name>.regex¶
Regex specifying which log lines to ignore.
Type: string
Default:
""Declared by:
services.logcheck.ignoreCron¶
This option defines extra ignore rules for cronjobs.
Type: attribute set of submodules
Default: ``{
}``
Declared by:
services.logcheck.ignoreCron.<name>.cmdline¶
Command line for the cron job. Will be turned into a regex for the logcheck ignore rule.
Type: string
Default:
""Declared by:
services.logcheck.ignoreCron.<name>.timeArgs¶
“min hr dom mon dow” crontab time args, to auto-create a cronjob too. Leave at null to not do this and just add a logcheck ignore rule.
Type: null or string
Default:
nullExample:
"02 06 * * \*"Declared by:
services.logcheck.ignoreCron.<name>.user¶
User that runs the cronjob.
Type: string
Default:
"root"Declared by:
services.logcheck.level¶
Set the logcheck level. Either “workstation”, “server”, or “paranoid”.
Type: string
Default:
"server"Declared by:
services.logcheck.mailTo¶
Email address to send reports to.
Type: string
Default:
"root"Example:
"you@domain.com"Declared by:
services.logcheck.timeOfDay¶
Time of day to run logcheck. A logcheck will be scheduled at xx:02 each day. Leave default (*) to run every hour. Of course when nothing special was logged, logcheck will be silent.
Type: string
Default:
"\*"Example:
"6"Declared by:
services.logcheck.user¶
Username for the logcheck user.
Type: string
Default:
"logcheck"Declared by:
services.logind.extraConfig¶
Extra config options for systemd-logind. See`logind.conf(5) <https://www.freedesktop.org/software/systemd/man/logind.conf.html>`_ for available options.
Type: strings concatenated with “\n”
Default:
""Example:
"IdleAction=lock"Declared by:
services.logind.killUserProcesses¶
Specifies whether the processes of a user should be killed when the user logs out. If true, the scope unit corresponding to the session and all processes inside that scope will be terminated. If false, the scope is “abandoned” (see`systemd.scope(5) <https://www.freedesktop.org/software/systemd/man/systemd.scope.html#>`_), and processes are not killed.
See logind.conf(5) for more details.
Type: boolean
Default:
falseDeclared by:
services.logind.lidSwitch¶
Specifies what to be done when the laptop lid is closed.
Type: one of “ignore”, “poweroff”, “reboot”, “halt”, “kexec”, “suspend”, “hibernate”, “hybrid-sleep”, “suspend-then-hibernate”, “lock”
Default:
"suspend"Example:
"ignore"Declared by:
services.logind.lidSwitchDocked¶
Specifies what to be done when the laptop lid is closed and another screen is added.
Type: one of “ignore”, “poweroff”, “reboot”, “halt”, “kexec”, “suspend”, “hibernate”, “hybrid-sleep”, “suspend-then-hibernate”, “lock”
Default:
"ignore"Example:
"suspend"Declared by:
services.logind.lidSwitchExternalPower¶
Specifies what to do when the laptop lid is closed and the system is on external power. By default use the same action as specified in services.logind.lidSwitch.
Type: one of “ignore”, “poweroff”, “reboot”, “halt”, “kexec”, “suspend”, “hibernate”, “hybrid-sleep”, “suspend-then-hibernate”, “lock”
Default:
"services.logind.lidSwitch"Example:
"ignore"Declared by:
services.logkeys.enable¶
Whether to enable logkeys service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.logkeys.device¶
Use the given device as keyboard input event device instead of /dev/input/eventX default.
Type: null or string
Default:
nullExample:
"/dev/input/event15"Declared by:
services.logmein-hamachi.enable¶
Whether to enable LogMeIn Hamachi, a proprietary (closed source) commercial VPN software.
Type: boolean
Default:
falseDeclared by:
services.logrotate.enable¶
Enable the logrotate cron job
Type: boolean
Default:
falseDeclared by:
services.logrotate.config¶
The contents of the logrotate config file
Type: strings concatenated with “\n”
Default:
""Declared by:
services.logstash.enable¶
Enable logstash.
Type: boolean
Default:
falseDeclared by:
services.logstash.package¶
Logstash package to use.
Type: package
Default:
"pkgs.logstash"Example:
pkgs.logstashDeclared by:
services.logstash.dataDir¶
A path to directory writable by logstash that it uses to store data. Plugins will also have access to this path.
Type: string
Default:
"/var/lib/logstash"Declared by:
services.logstash.extraSettings¶
Extra Logstash settings in YAML format.
Type: strings concatenated with “\n”
Default:
""Example:
'' pipeline: batch: size: 125 delay: 5 ''Declared by:
services.logstash.filterConfig¶
logstash filter configuration.
Type: strings concatenated with “\n”
Default:
""Example:
'' if [type] == "syslog" { # Keep only relevant systemd fields # http://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html prune { whitelist_names => [ "type", "@timestamp", "@version", "MESSAGE", "PRIORITY", "SYSLOG_FACILITY" ] } } ''Declared by:
services.logstash.filterWorkers¶
The quantity of filter workers to run.
Type: signed integer
Default:
1Declared by:
services.logstash.inputConfig¶
Logstash input configuration.
Type: strings concatenated with “\n”
Default:
"generator { }"Example:
'' # Read from journal pipe { command => "''${pkgs.systemd}/bin/journalctl -f -o json" type => "syslog" codec => json {} } ''Declared by:
services.logstash.listenAddress¶
Address on which to start webserver.
Type: string
Default:
"127.0.0.1"Declared by:
services.logstash.logLevel¶
Logging verbosity level.
Type: one of “debug”, “info”, “warn”, “error”, “fatal”
Default:
"warn"Declared by:
services.logstash.outputConfig¶
Logstash output configuration.
Type: strings concatenated with “\n”
Default:
"stdout { codec => rubydebug }"Example:
'' redis { host => ["localhost"] data_type => "list" key => "logstash" codec => json } elasticsearch { } ''Declared by:
services.logstash.plugins¶
The paths to find other logstash plugins in.
Type: list of paths
Default: ``[
]``
Example:
[ pkgs.logstash-contrib ]Declared by:
services.logstash.port¶
Port on which to start webserver.
Type: string
Default:
"9292"Declared by:
services.loki.enable¶
Whether to enable loki.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.loki.configFile¶
Specify a configuration file that Loki should use.
Type: null or path
Default:
nullDeclared by:
services.loki.configuration¶
services.loki.dataDir¶
Specify the directory for Loki.
Type: path
Default:
"/var/lib/loki"Declared by:
services.loki.extraFlags¶
Specify a list of additional command line flags, which get escaped and are then passed to Loki.
Type: list of strings
Default: ``[
]``
Example:
*Declared by:*
services.loki.group¶
Group under which the Loki service runs.
Type: string
Default:
"loki"Declared by:
services.loki.user¶
User under which the Loki service runs.
Type: string
Default:
"loki"Declared by:
services.longview.enable¶
If enabled, system metrics will be sent to Linode LongView.
Type: boolean
Default:
falseDeclared by:
services.longview.apacheStatusUrl¶
The Apache status page URL. If provided, Longview will gather statistics from this location. This requires Apache mod_status to be loaded and enabled.
Type: string
Default:
""Example:
"http://127.0.0.1/server-status"Declared by:
services.longview.apiKey¶
Longview API key. To get this, look in Longview settings which are found at https://manager.linode.com/longview/.
Warning: this secret is stored in the world-readable Nix store! Use instead.
Type: string
Default:
""Example:
"01234567-89AB-CDEF-0123456789ABCDEF"Declared by:
services.longview.apiKeyFile¶
A file containing the Longview API key. To get this, look in Longview settings which are found at https://manager.linode.com/longview/.
takes precedence over .
Type: null or path
Default:
nullExample:
"/run/keys/longview-api-key"Declared by:
services.longview.mysqlPassword¶
The password corresponding to . Warning: this is stored in cleartext in the Nix store! Use instead.
Type: string
Default:
""Declared by:
services.longview.mysqlPasswordFile¶
A file containing the password corresponding to .
Type: null or path
Default:
nullExample:
"/run/keys/dbpassword"Declared by:
services.longview.mysqlUser¶
The user for connecting to the MySQL database. If provided, Longview will connect to MySQL and collect statistics about queries, etc. This user does not need to have been granted any extra privileges.
Type: string
Default:
""Declared by:
services.longview.nginxStatusUrl¶
The Nginx status page URL. Longview will gather statistics from this URL. This requires the Nginx stub_status module to be enabled and configured at the given location.
Type: string
Default:
""Example:
"http://127.0.0.1/nginx_status"Declared by:
services.lorri.enable¶
Enables the daemon for `lorri`, a nix-shell replacement for project development. The socket-activated daemon starts on the first request issued by the `lorri` command.
Type: boolean
Default:
falseDeclared by:
services.lshd.enable¶
Whether to enable the GNU lshd SSH2 daemon, which allows secure remote login.
Type: unspecified
Default:
falseDeclared by:
services.lshd.hostKey¶
Path 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.
Type: unspecified
Default:
"/etc/lsh/host-key"Declared by:
services.lshd.interfaces¶
List of network interfaces where listening for connections. When providing the empty list, `[]’, lshd listens on all network interfaces.
Type: unspecified
Default: ``[
]``
Example:
[ "localhost" "1.2.3.4:443" ]Declared by:
services.lshd.loginShell¶
If non-null, override the default login shell with the specified value.
Type: unspecified
Default:
nullExample:
"/nix/store/xyz-bash-10.0/bin/bash10"Declared by:
services.lshd.passwordAuthentication¶
Whether to enable password authentication.
Type: unspecified
Default:
trueDeclared by:
services.lshd.portNumber¶
The port on which to listen for connections.
Type: unspecified
Default:
22Declared by:
services.lshd.publicKeyAuthentication¶
Whether to enable public key authentication.
Type: unspecified
Default:
trueDeclared by:
services.lshd.rootLogin¶
Whether to enable remote root login.
Type: unspecified
Default:
falseDeclared by:
services.lshd.srpKeyExchange¶
Whether to enable SRP key exchange and user authentication.
Type: unspecified
Default:
falseDeclared by:
services.lshd.subsystems¶
List 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.
Type: unspecified
Declared by:
services.lshd.syslog¶
Whether to enable syslog output.
Type: unspecified
Default:
trueDeclared by:
services.lshd.tcpForwarding¶
Whether to enable TCP/IP forwarding.
Type: unspecified
Default:
trueDeclared by:
services.lshd.x11Forwarding¶
Whether to enable X11 forwarding.
Type: unspecified
Default:
trueDeclared by:
services.magnetico.enable¶
Whether to enable Magnetico, Bittorrent DHT crawler.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.magnetico.crawler.address¶
Address to be used for indexing DHT nodes.
Type: string
Default:
"0.0.0.0"Example:
"1.2.3.4"Declared by:
services.magnetico.crawler.extraOptions¶
Extra command line arguments to pass to magneticod.
Type: list of strings
Default: ``[
]``
Declared by:
services.magnetico.crawler.maxLeeches¶
Maximum number of simultaneous leeches.
Type: positive integer, meaning >0
Default:
200Declared by:
services.magnetico.crawler.maxNeighbors¶
Maximum number of simultaneous neighbors of an indexer. Be careful changing this number: high values can very easily cause your network to be congested or even crash your router.
Type: positive integer, meaning >0
Default:
1000Declared by:
services.magnetico.crawler.port¶
Port to be used for indexing DHT nodes. This port should be added to.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
0Declared by:
services.magnetico.web.address¶
Address the web interface will listen to.
Type: string
Default:
"localhost"Example:
"1.2.3.4"Declared by:
services.magnetico.web.credentials¶
The credentials to access the web interface, in case authentication is enabled, in the format
username:hash. If unset no authentication will be required.Usernames must start with a lowercase ([a-z]) ASCII character, might contain non-consecutive underscores except at the end, and consists of small-case a-z characters and digits 0-9. The:command:htpasswd tool from the apacheHttpd package may be used to generate the hash: htpasswd -bnBC 12 username password
Warning
The hashes will be stored world-readable in the nix store. Consider using the
credentialsFileoption if you don’t want this.Type: attribute set of strings
Default: ``{
}``
Example:
{ myuser = "$2y$12$YE01LZ8jrbQbx6c0s2hdZO71dSjn2p/O9XsYJpz.5968yCysUgiaG"; }Declared by:
services.magnetico.web.credentialsFile¶
The path to the file holding the credentials to access the web interface. If unset no authentication will be required.
The file must constain user names and password hashes in the format``username:hash``, one for each line. Usernames must start with a lowecase ([a-z]) ASCII character, might contain non-consecutive underscores except at the end, and consists of small-case a-z characters and digits 0-9. The htpasswd tool from the apacheHttpd package may be used to generate the hash:htpasswd -bnBC 12 username password
Type: null or path
Default:
nullDeclared by:
services.magnetico.web.extraOptions¶
Extra command line arguments to pass to magneticow.
Type: list of strings
Default: ``[
]``
Declared by:
services.magnetico.web.port¶
Port the web interface will listen to.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
8080Declared by:
services.mail.freepopsd.enable¶
Enables Freepops, a POP3 webmail wrapper.
Type: boolean
Default:
falseDeclared by:
services.mail.freepopsd.bind¶
Bind over an IPv4 address instead of any.
Type: string
Default:
"0.0.0.0"Declared by:
services.mail.freepopsd.logFile¶
Filename of the log file or syslog to rely on the logging daemon.
Type: string
Default:
"/var/log/freepopsd"Example:
"syslog"Declared by:
services.mail.freepopsd.port¶
Port on which the pop server will listen.
Type: signed integer
Default:
2000Declared by:
services.mail.freepopsd.suid.group¶
Group under which freepopsd will be after binding the port.
Type: string
Default:
"nogroup"Declared by:
services.mail.freepopsd.suid.user¶
User name under which freepopsd will be after binding the port.
Type: string
Default:
"nobody"Declared by:
services.mail.freepopsd.threads¶
Max simultaneous connections.
Type: signed integer
Default:
5Declared by:
services.mailcatcher.enable¶
Whether to enable MailCatcher.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.mailcatcher.http.ip¶
The ip address of the http server.
Type: string
Default:
"127.0.0.1"Declared by:
services.mailcatcher.http.path¶
Prefix to all HTTP paths.
Type: null or string
Default:
nullExample:
"/mailcatcher"Declared by:
services.mailcatcher.http.port¶
The port address of the http server.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
1080Declared by:
services.mailcatcher.smtp.ip¶
The ip address of the smtp server.
Type: string
Default:
"127.0.0.1"Declared by:
services.mailcatcher.smtp.port¶
The port address of the smtp server.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
1025Declared by:
services.mailhog.enable¶
Whether to enable MailHog.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.mailhog.user¶
User account under which mailhog runs.
Type: string
Default:
"mailhog"Declared by:
services.mailman.enable¶
Enable Mailman on this host. Requires an active Postfix installation.
Type: boolean
Default:
falseDeclared by:
services.mailman.package¶
Mailman package to use
Type: package
Default:
"pkgs.mailman"Example:
"pkgs.mailman.override { archivers = \[]; }"Declared by:
services.mailman.hyperkitty.enable¶
Whether to enable the Hyperkitty archiver for Mailman.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.mailman.hyperkitty.baseUrl¶
Where can Mailman connect to Hyperkitty’s internal API, preferably on localhost?
Type: string
Default:
"http://localhost/hyperkitty/"Declared by:
services.mailman.siteOwner¶
Certain messages that must be delivered to a human, but which can’t be delivered to a list owner (e.g. a bounce from a list owner), will be sent to this address. It should point to a human.
Type: string
Example:
"postmaster@example.org"Declared by:
services.mailman.webHosts¶
The list of hostnames and/or IP addresses from which the Mailman Web UI will accept requests. By default, “localhost” and “127.0.0.1” are enabled. All additional names under which your web server accepts requests for the UI must be listed here or incoming requests will be rejected.
Type: list of strings
Default: ``[
]``
Declared by:
services.mailman.webRoot¶
The web root for the Hyperkity + Postorius apps provided by Mailman. This variable can be set, of course, but it mainly exists so that site admins can refer to it in their own hand-written web server configuration files.
Type: path
Default:
"\\${pkgs.mailman-web}/\\${pkgs.python3.sitePackages}"Declared by:
services.mailman.webSettings¶
Overrides for the default mailman-web Django settings.
Type: attribute set
Default: ``{
}``
Declared by:
services.mailman.webUser¶
User to run mailman-web as
Type: string
Default:
"wwwrun"Declared by:
services.mailpile.enable¶
Whether to enable Mailpile the mail client.
Type: unspecified
Default:
falseDeclared by:
services.mailpile.hostname¶
Listen to this hostname or ip.
Type: unspecified
Default:
"localhost"Declared by:
services.mailpile.port¶
Listen on this port.
Type: unspecified
Default:
"33411"Declared by:
services.mame.enable¶
Whether to setup TUN/TAP Ethernet interface for MAME emulator.
Type: boolean
Default:
falseDeclared by:
services.mame.emuAddr¶
IP address of the guest system. The same you set inside guest OS under MAME. Should be on the same subnet as .
Type: string
Example:
"192.168.31.155"Declared by:
services.mame.hostAddr¶
IP address of the host system. Usually an address of the main network adapter or the adapter through which you get an internet connection.
Type: string
Example:
"192.168.31.156"Declared by:
services.mame.user¶
User from which you run MAME binary.
Type: string
Declared by:
services.marathon.enable¶
Whether to enable the marathon mesos framework.
Type: boolean
Default:
falseDeclared by:
services.marathon.environment¶
Environment variables passed to Marathon.
Type: attribute set
Default: ``{
}``
Example:
{ JAVA_OPTS = "-Xmx512m"; MESOSPHERE_HTTP_CREDENTIALS = "username:password"; }Declared by:
services.marathon.extraCmdLineOptions¶
Extra command line options to pass to Marathon. See ` <https://mesosphere.github.io/marathon/docs/command-line-flags.html>`_ for all possible flags.
Type: list of strings
Default: ``[
]``
Example:
[ "--https_port=8443" "--zk_timeout=10000" "--marathon_store_timeout=2000" ]Declared by:
services.marathon.httpPort¶
Marathon listening port for HTTP connections.
Type: signed integer
Default:
8080Declared by:
services.marathon.master¶
Mesos master address. See ` <https://mesosphere.github.io/marathon/docs/>`_ for details.
Type: string
Default:
"zk://localhost:2181/mesos"Example:
"zk://1.2.3.4:2181,2.3.4.5:2181,3.4.5.6:2181/mesos"Declared by:
services.marathon.user¶
The user that the Marathon framework will be launched as. If the user doesn’t exist it will be created. If you want to run apps that require root access or you want to launch apps using arbitrary users, that is using the `–mesos_user` flag then you need to change this to `root`.
Type: string
Default:
"marathon"Example:
"root"Declared by:
services.marathon.zookeeperHosts¶
ZooKeeper hosts’ addresses.
Type: list of strings
Default:
[ "localhost:2181" ]Example:
[ "1.2.3.4:2181" "2.3.4.5:2181" "3.4.5.6:2181" ]Declared by:
services.mathics.enable¶
Whether to enable Mathics notebook service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.mathics.external¶
Listen on all interfaces, rather than just localhost?
Type: boolean
Default:
falseDeclared by:
services.mathics.port¶
TCP port to listen on.
Type: signed integer
Default:
8000Declared by:
services.matomo.enable¶
Enable Matomo web analytics with php-fpm backend. Either the nginx option or the webServerUser option is mandatory.
Type: boolean
Default:
falseDeclared by:
services.matomo.package¶
Matomo package for the service to use. This can be used to point to newer releases from nixos-unstable, as they don’t get backported if they are not security-relevant.
Type: package
Default:
"pkgs.matomo"Declared by:
services.matomo.nginx¶
With this option, you can customize an nginx virtualHost which already has sensible defaults for Matomo. Either this option or the webServerUser option is mandatory. Set this to {} to just enable the virtualHost if you don’t need any customization. If enabled, then by default, the is``${user}.${config.networking.hostName}.${config.networking.domain}``, SSL is active, and certificates are acquired via ACME. If this is set to null (the default), no nginx virtualHost will be configured.
Type: null or submodule
Default:
nullExample:
{ enableACME = false; serverAliases = [ "matomo.\\${config.networking.domain}" "stats.\\${config.networking.domain}" ] ; }Declared by:
services.matomo.nginx.enableACME¶
Whether to ask Let’s Encrypt to sign a certificate for this vhost. Alternately, you can use an existing certificate through .
Type: boolean
Default:
trueDeclared by:
services.matomo.nginx.acmeFallbackHost¶
Host which to proxy requests to if acme challenge is not found. Useful if you want multiple hosts to be able to verify the same domain name.
Type: null or string
Default:
nullDeclared by:
services.matomo.nginx.acmeRoot¶
Directory for the acme challenge which is PUBLIC, don’t put certs or keys in here
Type: string
Default:
"/var/lib/acme/acme-challenge"Declared by:
services.matomo.nginx.addSSL¶
Whether to enable HTTPS in addition to plain HTTP. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443).
Type: boolean
Default:
falseDeclared by:
services.matomo.nginx.basicAuth¶
Basic Auth protection for a vhost.
WARNING: This is implemented to store the password in plain text in the nix store.
Type: attribute set of strings
Default: ``{
}``
Example:
{ user = "password"; };Declared by:
services.matomo.nginx.basicAuthFile¶
Basic Auth password file for a vhost. Can be created via: htpasswd -c <filename> <username>
Type: null or path
Default:
nullDeclared by:
services.matomo.nginx.default¶
Makes this vhost the default.
Type: boolean
Default:
falseDeclared by:
services.matomo.nginx.extraConfig¶
These lines go to the end of the vhost verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.matomo.nginx.forceSSL¶
Whether to add a separate nginx server block that permanently redirects (301) all plain HTTP traffic to HTTPS. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443), where the non-SSL listens are used for the redirect vhosts.
Type: boolean
Default:
trueDeclared by:
services.matomo.nginx.globalRedirect¶
If set, all requests for this host are redirected permanently to the given hostname.
Type: null or string
Default:
nullExample:
"newserver.example.org"Declared by:
services.matomo.nginx.http2¶
Whether to enable HTTP 2. Note that (as of writing) due to nginx’s implementation, to disable HTTP 2 you have to disable it on all vhosts that use a given IP address / port. If there is one server block configured to enable http2,then it is enabled for all server blocks on this IP. See https://stackoverflow.com/a/39466948/263061.
Type: boolean
Default:
trueDeclared by:
services.matomo.nginx.listen¶
Listen addresses and ports for this virtual host. IPv6 addresses must be enclosed in square brackets. Note: this option overrides
addSSLandonlySSL.Type: list of submodules
Default: ``[
]``
Example: ``[
{ addr = “195.154.1.1”; port = 443; ssl = true; }
{ addr = “192.154.1.1”; port = 80; }
]``
Declared by:
services.matomo.nginx.listen.*.addr¶
services.matomo.nginx.listen.*.extraParameters¶
Extra parameters of this listen directive.
Type: list of strings
Default: ``[
]``
Example:
[ "reuseport" "deferred" ]Declared by:
services.matomo.nginx.listen.*.port¶
Port number.
Type: signed integer
Default:
80Declared by:
services.matomo.nginx.listen.*.ssl¶
Enable SSL.
Type: boolean
Default:
falseDeclared by:
services.matomo.nginx.locations¶
Declarative location config
Type: attribute set of submodules
Default: ``{
}``
Example:
{ "/" = { proxyPass = "http://localhost:3000"; }; };Declared by:
services.matomo.nginx.locations.<name>.alias¶
Alias directory for requests.
Type: null or path
Default:
nullExample:
"/your/alias/directory"Declared by:
services.matomo.nginx.locations.<name>.extraConfig¶
These lines go to the end of the location verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.matomo.nginx.locations.<name>.index¶
Adds index directive.
Type: null or string
Default:
nullExample:
"index.php index.html"Declared by:
services.matomo.nginx.locations.<name>.priority¶
Order of this location block in relation to the others in the vhost. The semantics are the same as with `lib.mkOrder`. Smaller values have a greater priority.
Type: signed integer
Default:
1000Declared by:
services.matomo.nginx.locations.<name>.proxyPass¶
Adds proxy_pass directive and sets recommended proxy headers if recommendedProxySettings is enabled.
Type: null or string
Default:
nullExample:
"http://www.example.org/"Declared by:
services.matomo.nginx.locations.<name>.proxyWebsockets¶
Whether to supporty proxying websocket connections with HTTP/1.1.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.matomo.nginx.locations.<name>.return¶
Adds a return directive, for e.g. redirections.
Type: null or string
Default:
nullExample:
"301 http://example.com\\$request_uri"Declared by:
services.matomo.nginx.locations.<name>.root¶
Root directory for requests.
Type: null or path
Default:
nullExample:
"/your/root/directory"Declared by:
services.matomo.nginx.locations.<name>.tryFiles¶
Adds try_files directive.
Type: null or string
Default:
nullExample:
"\\$uri =404"Declared by:
services.matomo.nginx.onlySSL¶
Whether to enable HTTPS and reject plain HTTP connections. This will set defaults for
listento listen on all interfaces on port 443.Type: boolean
Default:
falseDeclared by:
services.matomo.nginx.root¶
The path of the web root directory.
Type: null or path
Default:
nullExample:
"/data/webserver/docs"Declared by:
services.matomo.nginx.serverAliases¶
Additional names of virtual hosts served by this virtual host configuration.
Type: list of strings
Default: ``[
]``
Example:
[ "www.example.org" "example.org" ]Declared by:
services.matomo.nginx.serverName¶
Name of this virtual host. Defaults to attribute name in virtualHosts.
Type: null or string
Default:
nullExample:
"example.org"Declared by:
services.matomo.nginx.sslCertificate¶
Path to server SSL certificate.
Type: path
Example:
"/var/host.cert"Declared by:
services.matomo.nginx.sslCertificateKey¶
Path to server SSL certificate key.
Type: path
Example:
"/var/host.key"Declared by:
services.matomo.nginx.sslTrustedCertificate¶
Path to root SSL certificate for stapling and client certificates.
Type: null or path
Default:
nullExample:
"/var/root.cert"Declared by:
services.matomo.nginx.useACMEHost¶
A host of an existing Let’s Encrypt certificate to use. This is useful if you have many subdomains and want to avoid hitting the`rate limit <https://letsencrypt.org/docs/rate-limits/>`_. Alternately, you can generate a certificate through .*Note that this option does not create any certificates, nor it does add subdomains to existing ones – you will need to create them manually using security.acme.certs.*
Type: null or string
Default:
nullDeclared by:
services.matomo.periodicArchiveProcessing¶
Enable periodic archive processing, which generates aggregated reports from the visits.
This means that you can safely disable browser triggers for Matomo archiving, and safely enable to delete old visitor logs. Before deleting visitor logs, make sure though that you run
systemctl start matomo-archive-processing.serviceat least once without errors if you have already collected data before.Type: boolean
Default:
trueDeclared by:
services.matomo.webServerUser¶
Name of the web server user that forwards requests to the fastcgi socket for Matomo if the nginx option is not used. Either this option or the nginx option is mandatory. If you want to use another webserver than nginx, you need to set this to that server’s user and pass fastcgi requests to `index.php`, `matomo.php` and `piwik.php` (legacy name) to this socket.
Type: null or string
Default:
nullExample:
"lighttpd"Declared by:
services.matrix-synapse.enable¶
Whether to enable matrix.org synapse.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.matrix-synapse.enable_metrics¶
Enable collection and rendering of performance metrics
Type: boolean
Default:
falseDeclared by:
services.matrix-synapse.enable_registration¶
Enable registration for new users.
Type: boolean
Default:
falseDeclared by:
services.matrix-synapse.enable_registration_captcha¶
Enables ReCaptcha checks when registering, preventing signup unless a captcha is answered. Requires a valid ReCaptcha public/private key.
Type: boolean
Default:
falseDeclared by:
services.matrix-synapse.package¶
Overridable attribute of the matrix synapse server package to use.
Type: package
Default:
"pkgs.matrix-synapse"Declared by:
services.matrix-synapse.account_threepid_delegates.email¶
services.matrix-synapse.account_threepid_delegates.msisdn¶
Delegate SMS sending to this local process (https://localhost:8090)
Type: null or string
Default:
nullDeclared by:
services.matrix-synapse.allow_guest_access¶
Allows users to register as guests without a password/email/etc, and participate in rooms hosted on this server which have been made accessible to anonymous users.
Type: boolean
Default:
falseDeclared by:
services.matrix-synapse.app_service_config_files¶
services.matrix-synapse.bcrypt_rounds¶
Set the number of bcrypt rounds used to generate password hash. Larger numbers increase the work factor needed to generate the hash.
Type: string
Default:
"12"Declared by:
services.matrix-synapse.bind_host¶
DEPRECATED: Use listeners instead. Local interface to listen on. The empty string will cause synapse to listen on all interfaces.
Type: null or string
Default:
nullDeclared by:
services.matrix-synapse.bind_port¶
DEPRECATED: Use listeners instead. The port to listen for HTTPS requests on. For when matrix traffic is sent directly to synapse.
Type: null or signed integer
Default:
nullExample:
8448Declared by:
services.matrix-synapse.create_local_database¶
Whether to create a local database automatically.
Type: boolean
Default:
trueDeclared by:
services.matrix-synapse.dataDir¶
The directory where matrix-synapse stores its stateful data such as certificates, media and uploads.
Type: string
Default:
"/var/lib/matrix-synapse"Declared by:
services.matrix-synapse.database_args¶
Arguments to pass to the engine.
Type: attribute set
Default:
{ database = "matrix-synapse"; user = "matrix-synapse"; }Declared by:
services.matrix-synapse.database_name¶
Database name.
Type: string
Default:
"matrix-synapse"Declared by:
services.matrix-synapse.database_type¶
The database engine name. Can be sqlite or psycopg2.
Type: one of “sqlite3”, “psycopg2”
Default:
"psycopg2"Declared by:
services.matrix-synapse.database_user¶
Database user name.
Type: string
Default:
"matrix-synapse"Declared by:
services.matrix-synapse.dynamic_thumbnails¶
Whether to generate new thumbnails on the fly to precisely match the resolution requested by the client. If true then whenever a new resolution is requested by the client the server will generate a new thumbnail. If false the server will pick a thumbnail from a precalculated list.
Type: boolean
Default:
falseDeclared by:
services.matrix-synapse.event_cache_size¶
Number of events to cache in memory.
Type: string
Default:
"10K"Declared by:
services.matrix-synapse.expire_access_token¶
Whether to enable access token expiration.
Type: boolean
Default:
falseDeclared by:
services.matrix-synapse.extraConfig¶
Extra config options for matrix-synapse.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.matrix-synapse.extraConfigFiles¶
Extra config files to include.
The configuration files will be included based on the command line argument –config-path. This allows to configure secrets without having to go through the Nix store, e.g. based on deployment keys if NixOPS is in use.
Type: list of paths
Default: ``[
]``
Declared by:
services.matrix-synapse.federation_rc_concurrent¶
The number of federation requests to concurrently process from a single server
Type: string
Default:
"3"Declared by:
services.matrix-synapse.federation_rc_reject_limit¶
The maximum number of concurrent federation requests allowed from a single server
Type: string
Default:
"50"Declared by:
services.matrix-synapse.federation_rc_sleep_delay¶
The duration in milliseconds to delay processing events from remote servers by if they go over the sleep limit.
Type: string
Default:
"500"Declared by:
services.matrix-synapse.federation_rc_sleep_limit¶
The number of federation requests from a single server in a window before the server will delay processing the request.
Type: string
Default:
"10"Declared by:
services.matrix-synapse.federation_rc_window_size¶
The federation window size in milliseconds
Type: string
Default:
"1000"Declared by:
services.matrix-synapse.key_refresh_interval¶
How long key response published by this server is valid for. Used to set the valid_until_ts in /key/v2 APIs. Determines how quickly servers will query to check which keys are still valid.
Type: string
Default:
"1d"Declared by:
services.matrix-synapse.listeners¶
List of ports that Synapse should listen on, their purpose and their configuration.
Type: list of submodules
Default: ``[
{ bind_address = “”; port = 8448; resources = [
{ compress = true; names = [ “client” “webclient” ] ; }
{ compress = false; names = [ “federation” ] ; }
] ; tls = true; type = “http”; x_forwarded = false; }
]``
Declared by:
services.matrix-synapse.listeners.*.bind_address¶
Local interface to listen on. The empty string will cause synapse to listen on all interfaces.
Type: string
Default:
""Example:
"203.0.113.42"Declared by:
services.matrix-synapse.listeners.*.port¶
The port to listen for HTTP(S) requests on.
Type: signed integer
Example:
8448Declared by:
services.matrix-synapse.listeners.*.resources¶
List of HTTP resources to serve on this listener.
Type: list of submodules
Declared by:
services.matrix-synapse.listeners.*.resources.*.compress¶
Should synapse compress HTTP responses to clients that support it? This should be disabled if running synapse behind a load balancer that can do automatic compression.
Type: boolean
Declared by:
services.matrix-synapse.listeners.*.resources.*.names¶
List of resources to host on this listener.
Type: list of strings
Example:
[ "client" "webclient" "federation" ]Declared by:
services.matrix-synapse.listeners.*.tls¶
Whether to listen for HTTPS connections rather than HTTP.
Type: boolean
Default:
trueDeclared by:
services.matrix-synapse.listeners.*.type¶
Type of listener.
Type: string
Default:
"http"Declared by:
services.matrix-synapse.listeners.*.x_forwarded¶
Use the X-Forwarded-For (XFF) header as the client IP and not the actual client IP.
Type: boolean
Default:
falseDeclared by:
services.matrix-synapse.logConfig¶
A yaml python logging config file
Type: strings concatenated with “\n”
Default:
'' version: 1 # In systemd's journal, loglevel is implicitly stored, so let's omit it # from the message text. formatters: journal_fmt: format: '%(name)s: [%(request)s] %(message)s' filters: context: (): synapse.util.logcontext.LoggingContextFilter request: "" handlers: journal: class: systemd.journal.JournalHandler formatter: journal_fmt filters: [context] SYSLOG_IDENTIFIER: synapse root: level: INFO handlers: [journal] disable_existing_loggers: False ''Declared by:
services.matrix-synapse.macaroon_secret_key¶
Secret key for authentication tokens
Type: null or string
Default:
nullDeclared by:
services.matrix-synapse.max_image_pixels¶
Maximum number of pixels that will be thumbnailed
Type: string
Default:
"32M"Declared by:
services.matrix-synapse.max_upload_size¶
The largest allowed upload size in bytes
Type: string
Default:
"10M"Declared by:
services.matrix-synapse.no_tls¶
Don’t bind to the https port
Type: boolean
Default:
falseDeclared by:
services.matrix-synapse.public_baseurl¶
The public-facing base URL for the client API (not including _matrix/…)
Type: null or string
Default:
nullExample:
"https://example.com:8448/"Declared by:
services.matrix-synapse.rc_message_burst_count¶
Number of message a client can send before being throttled
Type: string
Default:
"10.0"Declared by:
services.matrix-synapse.rc_messages_per_second¶
Number of messages a client can send per second
Type: string
Default:
"0.2"Declared by:
services.matrix-synapse.recaptcha_private_key¶
This Home Server’s ReCAPTCHA private key.
Type: string
Default:
""Declared by:
services.matrix-synapse.recaptcha_public_key¶
This Home Server’s ReCAPTCHA public key.
Type: string
Default:
""Declared by:
services.matrix-synapse.redaction_retention_period¶
How long to keep redacted events in unredacted form in the database.
Type: signed integer
Default:
7Declared by:
services.matrix-synapse.report_stats¶
services.matrix-synapse.room_invite_state_types¶
A list of event types that will be included in the room_invite_state
Type: list of strings
Default:
[ "m.room.join_rules" "m.room.canonical_alias" "m.room.avatar" "m.room.name" ]Declared by:
services.matrix-synapse.server_name¶
The domain name of the server, with optional explicit port. This is used by remote servers to connect to this server, e.g. matrix.org, localhost:8080, etc. This is also the last part of your UserID.
Type: string
Default:
"nixos"Example:
"example.com"Declared by:
services.matrix-synapse.servers¶
The trusted servers to download signing keys from.
Type: attribute set of attribute set of stringss
Default:
{ matrix.org = { ed25519:auto = "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw"; } ; }Declared by:
services.matrix-synapse.tls_certificate_path¶
PEM encoded X509 certificate for TLS. You can replace the self-signed certificate that synapse autogenerates on launch with your own SSL certificate + key pair if you like. Any required intermediary certificates can be appended after the primary certificate in hierarchical order.
Type: null or string
Default:
nullExample:
"/var/lib/matrix-synapse/homeserver.tls.crt"Declared by:
services.matrix-synapse.tls_dh_params_path¶
PEM dh parameters for ephemeral keys
Type: null or string
Default:
nullExample:
"/var/lib/matrix-synapse/homeserver.tls.dh"Declared by:
services.matrix-synapse.tls_private_key_path¶
PEM encoded private key for TLS. Specify null if synapse is not speaking TLS directly.
Type: null or string
Default:
nullExample:
"/var/lib/matrix-synapse/homeserver.tls.key"Declared by:
services.matrix-synapse.turn_uris¶
The public URIs of the TURN server to give to clients
Type: list of strings
Default: ``[
]``
Declared by:
services.matrix-synapse.turn_user_lifetime¶
How long generated TURN credentials last
Type: string
Default:
"1h"Declared by:
services.matrix-synapse.unsecure_port¶
DEPRECATED: Use listeners instead. The port to listen for HTTP requests on. For when matrix traffic passes through loadbalancer that unwraps TLS.
Type: null or signed integer
Default:
nullExample:
8008Declared by:
services.matrix-synapse.url_preview_enabled¶
Is the preview URL API enabled? If enabled, you *must* specify an explicit url_preview_ip_range_blacklist of IPs that the spider is denied from accessing.
Type: boolean
Default:
falseDeclared by:
services.matrix-synapse.url_preview_ip_range_blacklist¶
List of IP address CIDR ranges that the URL preview spider is denied from accessing.
Type: list of strings
Default:
[ "127.0.0.0/8" "10.0.0.0/8" "172.16.0.0/12" "192.168.0.0/16" "100.64.0.0/10" "169.254.0.0/16" "::1/128" "fe80::/64" "fc00::/7" ]Declared by:
services.matrix-synapse.url_preview_ip_range_whitelist¶
List of IP address CIDR ranges that the URL preview spider is allowed to access even if they are specified in url_preview_ip_range_blacklist.
Type: list of strings
Default: ``[
]``
Declared by:
services.matrix-synapse.url_preview_url_blacklist¶
Optional list of URL matches that the URL preview spider is denied from accessing.
Type: list of strings
Default: ``[
]``
Declared by:
services.matrix-synapse.user_creation_max_duration¶
Sets the expiry for the short term user creation in milliseconds. The default value is two weeks.
Type: string
Default:
"1209600000"Declared by:
services.matrix-synapse.verbose¶
Logging verbosity level.
Type: string
Default:
"0"Declared by:
services.matrix-synapse.web_client¶
Whether to serve a web client from the HTTP/HTTPS root resource.
Type: boolean
Default:
falseDeclared by:
services.matterbridge.enable¶
Whether to enable Matterbridge chat platform bridge.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.matterbridge.configFile¶
WARNING: THIS IS INSECURE, as your password will end up in:file:/nix/store, thus publicly readable. Use``services.matterbridge.configPath`` instead.
The matterbridge configuration file in the TOML file format.
Type: string
Example:
'' # WARNING: as this file contains credentials, do not use this option! # It is kept only for backwards compatibility, and would cause your # credentials to be in the nix-store, thus with the world-readable # permission bits. # Use services.matterbridge.configPath instead. [irc] [irc.freenode] Server="irc.freenode.net:6667" Nick="matterbot" [mattermost] [mattermost.work] # Do not prefix it with http:// or https:// Server="yourmattermostserver.domain" Team="yourteam" Login="yourlogin" Password="yourpass" PrefixMessagesWithNick=true [[gateway]] name="gateway1" enable=true [[gateway.inout]] account="irc.freenode" channel="#testing" [[gateway.inout]] account="mattermost.work" channel="off-topic" ''Declared by:
services.matterbridge.configPath¶
The path to the matterbridge configuration file.
Type: null or string
Default:
nullExample:
"/etc/nixos/matterbridge.toml"Declared by:
services.matterbridge.group¶
Group which runs the matterbridge service.
Type: string
Default:
"matterbridge"Declared by:
services.matterbridge.user¶
User which runs the matterbridge service.
Type: string
Default:
"matterbridge"Declared by:
services.mattermost.enable¶
Whether to enable Mattermost chat server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.mattermost.extraConfig¶
Addtional configuration options as Nix attribute set in config.json schema.
Type: attribute set
Default: ``{
}``
Declared by:
services.mattermost.group¶
Group which runs the Mattermost service.
Type: string
Default:
"mattermost"Declared by:
services.mattermost.listenAddress¶
Address and port this Mattermost instance listens to.
Type: string
Default:
":8065"Example:
"\[::1]:8065"Declared by:
services.mattermost.localDatabaseCreate¶
Create a local PostgreSQL database for Mattermost automatically.
Type: boolean
Default:
trueDeclared by:
services.mattermost.localDatabaseName¶
Local Mattermost database name.
Type: string
Default:
"mattermost"Declared by:
services.mattermost.localDatabasePassword¶
Password for local Mattermost database user.
Type: string
Default:
"mmpgsecret"Declared by:
services.mattermost.localDatabaseUser¶
Local Mattermost database username.
Type: string
Default:
"mattermost"Declared by:
services.mattermost.matterircd.enable¶
Whether to enable Mattermost IRC bridge.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.mattermost.matterircd.parameters¶
Set commandline parameters to pass to matterircd. See https://github.com/42wim/matterircd#usage for more information.
Type: list of strings
Default: ``[
]``
Example:
[ "-mmserver chat.example.com" "-bind \[::]:6667" ]Declared by:
services.mattermost.mutableConfig¶
Whether the Mattermost config.json is writeable by Mattermost.
Most of the settings can be edited in the system console of Mattermost if this option is enabled. A template config using the options specified in services.mattermost will be generated but won’t be overwritten on changes or rebuilds.
If this option is disabled, changes in the system console won’t be possible (default). If an config.json is present, it will be overwritten!
Type: boolean
Default:
falseDeclared by:
services.mattermost.siteName¶
Name of this Mattermost site.
Type: string
Default:
"Mattermost"Declared by:
services.mattermost.siteUrl¶
URL this Mattermost instance is reachable under, without trailing slash.
Type: string
Example:
"https://chat.example.com"Declared by:
services.mattermost.statePath¶
Mattermost working directory
Type: string
Default:
"/var/lib/mattermost"Declared by:
services.mattermost.user¶
User which runs the Mattermost service.
Type: string
Default:
"mattermost"Declared by:
services.mbpfan.enable¶
Whether to enable mbpfan, fan controller daemon for Apple Macs and MacBooks.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.mbpfan.package¶
The package used for the mbpfan daemon.
Type: package
Default:
"pkgs.mbpfan"Declared by:
services.mbpfan.highTemp¶
The high temperature.
Type: signed integer
Default:
66Declared by:
services.mbpfan.lowTemp¶
The low temperature.
Type: signed integer
Default:
63Declared by:
services.mbpfan.maxFanSpeed¶
The maximum fan speed.
Type: signed integer
Default:
6200Declared by:
services.mbpfan.maxTemp¶
The maximum temperature.
Type: signed integer
Default:
86Declared by:
services.mbpfan.minFanSpeed¶
The minimum fan speed.
Type: signed integer
Default:
2000Declared by:
services.mbpfan.pollingInterval¶
The polling interval.
Type: signed integer
Default:
7Declared by:
services.mbpfan.verbose¶
If true, sets the log level to verbose.
Type: boolean
Default:
falseDeclared by:
services.mediatomb.enable¶
Whether to enable the mediatomb DLNA server.
Type: boolean
Default:
falseDeclared by:
services.mediatomb.customCfg¶
Allow mediatomb to create and use its own config file inside /var/lib/mediatomb.
Type: boolean
Default:
falseDeclared by:
services.mediatomb.dataDir¶
The directory where mediatomb stores its state, data, etc.
Type: path
Default:
"/var/lib/mediatomb"Declared by:
services.mediatomb.dsmSupport¶
Whether to enable D-Link DSM 320 specific tweaks. WARNING: incompatible with ps3 support.
Type: boolean
Default:
falseDeclared by:
services.mediatomb.group¶
Group account under which mediatomb runs.
Type: unspecified
Default:
"mediatomb"Declared by:
services.mediatomb.interface¶
A specific interface to bind to.
Type: unspecified
Default:
""Declared by:
services.mediatomb.port¶
The network port to listen on.
Type: unspecified
Default:
49152Declared by:
services.mediatomb.ps3Support¶
Whether to enable ps3 specific tweaks. WARNING: incompatible with DSM 320 support.
Type: boolean
Default:
falseDeclared by:
services.mediatomb.serverName¶
How to identify the server on the network.
Type: string
Default:
"mediatomb"Declared by:
services.mediatomb.tg100Support¶
Whether to enable Telegent TG100 specific tweaks.
Type: boolean
Default:
falseDeclared by:
services.mediatomb.transcoding¶
Whether to enable transcoding.
Type: boolean
Default:
falseDeclared by:
services.mediatomb.user¶
User account under which mediatomb runs.
Type: unspecified
Default:
"mediatomb"Declared by:
services.mediatomb.uuid¶
A unique (on your network) to identify the server by.
Type: unspecified
Default:
"fdfc8a4e-a3ad-4c1d-b43d-a2eedb03a687"Declared by:
services.mediawiki.enable¶
Whether to enable MediaWiki.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.mediawiki.package¶
Which MediaWiki package to use.
Type: package
Default:
*(build of mediawiki-1.34.0)*Declared by:
services.mediawiki.database.createLocally¶
Create the database and database user locally. This currently only applies if database type “mysql” is selected.
Type: boolean
Default:
"true"Declared by:
services.mediawiki.database.host¶
Database host address.
Type: string
Default:
"localhost"Declared by:
services.mediawiki.database.name¶
Database name.
Type: string
Default:
"mediawiki"Declared by:
services.mediawiki.database.passwordFile¶
A file containing the password corresponding to.
Type: null or path
Default:
nullExample:
"/run/keys/mediawiki-dbpassword"Declared by:
services.mediawiki.database.port¶
Database host port.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
3306Declared by:
services.mediawiki.database.socket¶
Path to the unix socket file to use for authentication.
Type: null or path
Default:
"/run/mysqld/mysqld.sock"Declared by:
services.mediawiki.database.tablePrefix¶
If you only have access to a single database and wish to install more than one version of MediaWiki, or have other applications that also use the database, you can give the table names a unique prefix to stop any naming conflicts or confusion. See ` <https://www.mediawiki.org/wiki/Manual:$wgDBprefix>`_.
Type: null or string
Default:
nullDeclared by:
services.mediawiki.database.type¶
Database engine to use. MySQL/MariaDB is the database of choice by MediaWiki developers.
Type: one of “mysql”, “postgres”, “sqlite”, “mssql”, “oracle”
Default:
"mysql"Declared by:
services.mediawiki.database.user¶
Database user.
Type: string
Default:
"mediawiki"Declared by:
services.mediawiki.extensions¶
List of paths whose content is copied to the ‘extensions’ subdirectory of the MediaWiki installation.
Type: attribute set of paths
Default: ``{
}``
Declared by:
services.mediawiki.extraConfig¶
Any additional text to be appended to MediaWiki’s LocalSettings.php configuration file. For configuration settings, see ` <https://www.mediawiki.org/wiki/Manual:Configuration_settings>`_.
Type: strings concatenated with “\n”
Default:
""Example:
'' $wgEnableEmail = false; ''Declared by:
services.mediawiki.name¶
Name of the wiki.
Type: unspecified
Default:
"MediaWiki"Example:
"Foobar Wiki"Declared by:
services.mediawiki.passwordFile¶
A file containing the initial password for the admin user.
Type: path
Example:
"/run/keys/mediawiki-password"Declared by:
services.mediawiki.poolConfig¶
Options for the MediaWiki PHP pool. See the documentation on
php-fpm.conffor details on configuration directives.Type: attribute set of string or signed integer or booleans
Default:
{ pm = "dynamic"; pm.max_children = 32; pm.max_requests = 500; pm.max_spare_servers = 4; pm.min_spare_servers = 2; pm.start_servers = 2; }Declared by:
services.mediawiki.skins¶
List of paths whose content is copied to the ‘skins’ subdirectory of the MediaWiki installation.
Type: attribute set of paths
Default: ``{
}``
Declared by:
services.mediawiki.uploadsDir¶
This directory is used for uploads of pictures. The directory passed here is automatically created and permissions adjusted as required.
Type: null or path
Default:
"/var/lib/mediawiki/uploads"Declared by:
services.mediawiki.virtualHost¶
Apache configuration can be done by adapting . See services.httpd.virtualHosts for further information.
Type: submodule
Example:
{ hostName = "mediawiki.example.org"; adminAddr = "webmaster@example.org"; forceSSL = true; enableACME = true; }Declared by:
services.mediawiki.virtualHost.enableACME¶
Whether to ask Let’s Encrypt to sign a certificate for this vhost. Alternately, you can use an existing certificate through .
Type: boolean
Default:
falseDeclared by:
services.mediawiki.virtualHost.enableUserDir¶
Whether to enable serving
~/public_htmlas``/~*username*``.Type: boolean
Default:
falseDeclared by:
services.mediawiki.virtualHost.acmeRoot¶
Directory for the acme challenge which is PUBLIC, don’t put certs or keys in here
Type: string
Default:
"/var/lib/acme/acme-challenges"Declared by:
services.mediawiki.virtualHost.addSSL¶
Whether to enable HTTPS in addition to plain HTTP. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443).
Type: boolean
Default:
falseDeclared by:
services.mediawiki.virtualHost.adminAddr¶
E-mail address of the server administrator.
Type: null or string
Default:
nullExample:
"admin@example.org"Declared by:
services.mediawiki.virtualHost.documentRoot¶
The path of Apache’s document root directory. If left undefined, an empty directory in the Nix store will be used as root.
Type: null or path
Default:
nullExample:
"/data/webserver/docs"Declared by:
services.mediawiki.virtualHost.extraConfig¶
These lines go to httpd.conf verbatim. They will go after directories and directory aliases defined by default.
Type: strings concatenated with “\n”
Default:
""Example:
'' <Directory /home> Options FollowSymlinks AllowOverride All </Directory> ''Declared by:
services.mediawiki.virtualHost.forceSSL¶
Whether to add a separate nginx server block that permanently redirects (301) all plain HTTP traffic to HTTPS. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443), where the non-SSL listens are used for the redirect vhosts.
Type: boolean
Default:
falseDeclared by:
services.mediawiki.virtualHost.globalRedirect¶
If set, all requests for this host are redirected permanently to the given URL.
Type: null or string
Default:
nullExample:
"http://newserver.example.org/"Declared by:
services.mediawiki.virtualHost.hostName¶
Canonical hostname for the server.
Type: string
Default:
"‹name›"Declared by:
services.mediawiki.virtualHost.http2¶
Whether to enable HTTP 2. HTTP/2 is supported in all multi-processing modules that come with httpd. However, if you use the prefork mpm, there will be severe restrictions. Refer to ` <https://httpd.apache.org/docs/2.4/howto/http2.html#mpm-config>`_ for details.
Type: boolean
Default:
falseDeclared by:
services.mediawiki.virtualHost.listen¶
services.mediawiki.virtualHost.listen.*.ip¶
IP to listen on. 0.0.0.0 for IPv4 only, * for all.
Type: string
Default:
"\*"Declared by:
services.mediawiki.virtualHost.listen.*.port¶
Port to listen on
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Declared by:
services.mediawiki.virtualHost.listen.*.ssl¶
Whether to enable SSL (https) support.
Type: boolean
Default:
falseDeclared by:
services.mediawiki.virtualHost.locations¶
Declarative location config. See ` <https://httpd.apache.org/docs/2.4/mod/core.html#location>`_ for details.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ "/" = { proxyPass = "http://localhost:3000"; }; "/foo/bar.png" = { alias = "/home/eelco/some-file.png"; }; };Declared by:
services.mediawiki.virtualHost.locations.<name>.alias¶
Alias directory for requests. See ` <https://httpd.apache.org/docs/2.4/mod/mod_alias.html#alias>`_.
Type: null or path
Default:
nullExample:
"/your/alias/directory"Declared by:
services.mediawiki.virtualHost.locations.<name>.extraConfig¶
These lines go to the end of the location verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.mediawiki.virtualHost.locations.<name>.index¶
Adds DirectoryIndex directive. See ` <https://httpd.apache.org/docs/2.4/mod/mod_dir.html#directoryindex>`_.
Type: null or string
Default:
nullExample:
"index.php index.html"Declared by:
services.mediawiki.virtualHost.locations.<name>.priority¶
Order of this location block in relation to the others in the vhost. The semantics are the same as with `lib.mkOrder`. Smaller values have a greater priority.
Type: signed integer
Default:
1000Declared by:
services.mediawiki.virtualHost.locations.<name>.proxyPass¶
Sets up a simple reverse proxy as described by ` <https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html#simple>`_.
Type: null or string
Default:
nullExample:
"http://www.example.org/"Declared by:
services.mediawiki.virtualHost.logFormat¶
Log format for Apache’s log files. Possible values are: combined, common, referer, agent.
Type: string
Default:
"common"Example:
"combined"Declared by:
services.mediawiki.virtualHost.onlySSL¶
Whether to enable HTTPS and reject plain HTTP connections. This will set defaults for
listento listen on all interfaces on port 443.Type: boolean
Default:
falseDeclared by:
services.mediawiki.virtualHost.robotsEntries¶
Specification of pages to be ignored by web crawlers. See ` <http://www.robotstxt.org/>`_ for details.
Type: strings concatenated with “\n”
Default:
""Example:
"Disallow: /foo/"Declared by:
services.mediawiki.virtualHost.servedDirs¶
services.mediawiki.virtualHost.servedFiles¶
This option provides a simple way to serve individual, static files.
Note
This option has been deprecated and will be removed in a future version of NixOS. You can achieve the same result by making use of the
locations.<name>.aliasoption.Type: list of attribute sets
Default: ``[
]``
Example: ``[
{ file = “/home/eelco/some-file.png”; urlPath = “/foo/bar.png”; }
]``
Declared by:
services.mediawiki.virtualHost.serverAliases¶
Additional names of virtual hosts served by this virtual host configuration.
Type: list of strings
Default: ``[
]``
Example:
[ "www.example.org" "www.example.org:8080" "example.org" ]Declared by:
services.mediawiki.virtualHost.sslServerCert¶
Path to server SSL certificate.
Type: path
Example:
"/var/host.cert"Declared by:
services.mediawiki.virtualHost.sslServerChain¶
Path to server SSL chain file.
Type: null or path
Default:
nullExample:
"/var/ca.pem"Declared by:
services.mediawiki.virtualHost.sslServerKey¶
Path to server SSL certificate key.
Type: path
Example:
"/var/host.key"Declared by:
services.mediawiki.virtualHost.useACMEHost¶
A host of an existing Let’s Encrypt certificate to use. This is useful if you have many subdomains and want to avoid hitting the`rate limit <https://letsencrypt.org/docs/rate-limits/>`_. Alternately, you can generate a certificate through .*Note that this option does not create any certificates, nor it does add subdomains to existing ones – you will need to create them manually using security.acme.certs.*
Type: null or string
Default:
nullDeclared by:
services.meguca.enable¶
Whether to enable meguca.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.meguca.assumeReverseProxy¶
Assume the server is behind a reverse proxy, when resolving client IPs.
Type: boolean
Default:
falseDeclared by:
services.meguca.cacheSize¶
Cache size in MB.
Type: null or signed integer
Default:
nullExample:
256Declared by:
services.meguca.compressTraffic¶
Compress all traffic with gzip.
Type: boolean
Default:
falseDeclared by:
services.meguca.dataDir¶
Location where meguca stores it’s database and links.
Type: path
Default:
"/var/lib/meguca"Example:
"/home/okina/meguca"Declared by:
services.meguca.httpsOnly¶
Serve and listen only through HTTPS.
Type: boolean
Default:
falseDeclared by:
services.meguca.listenAddress¶
Listen on a specific IP address and port.
Type: null or string
Default:
nullExample:
"127.0.0.1:8000"Declared by:
services.meguca.password¶
Password for the meguca database.
Type: string
Default:
"meguca"Example:
"dumbpass"Declared by:
services.meguca.passwordFile¶
Password file for the meguca database.
Type: path
Default:
"/run/keys/meguca-password-file"Example:
"/home/okina/meguca/keys/pass"Declared by:
services.meguca.postgresArgs¶
Postgresql connection arguments.
Type: string
Example:
"user=meguca password=dumbpass dbname=meguca sslmode=disable"Declared by:
services.meguca.postgresArgsFile¶
Postgresql connection arguments file.
Type: path
Default:
"/run/keys/meguca-postgres-args"Example:
"/home/okina/meguca/keys/postgres"Declared by:
services.meguca.reverseProxy¶
Reverse proxy IP.
Type: null or string
Default:
nullExample:
"192.168.1.5"Declared by:
services.meguca.sslCertificate¶
Path to the SSL certificate.
Type: null or string
Default:
nullExample:
"/home/okina/meguca/ssl.cert"Declared by:
services.meguca.videoPaths¶
Videos that will be symlinked into www/videos.
Type: list of paths
Default: ``[
]``
Example:
[ "/home/okina/Videos/tehe_pero.webm" ]Declared by:
services.memcached.enable¶
Whether to enable Memcached.
Type: unspecified
Default:
falseDeclared by:
services.memcached.enableUnixSocket¶
Whether to enable unix socket at /run/memcached/memcached.sock.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.memcached.extraOptions¶
A list of extra options that will be added as a suffix when running memcached
Type: unspecified
Default: ``[
]``
Declared by:
services.memcached.listen¶
The IP address to bind to
Type: unspecified
Default:
"127.0.0.1"Declared by:
services.memcached.maxConnections¶
The maximum number of simultaneous connections
Type: unspecified
Default:
1024Declared by:
services.memcached.maxMemory¶
The maximum amount of memory to use for storage, in megabytes.
Type: unspecified
Default:
64Declared by:
services.memcached.port¶
The port to bind to
Type: unspecified
Default:
11211Declared by:
services.memcached.user¶
The user to run Memcached as
Type: unspecified
Default:
"memcached"Declared by:
services.mesos.master.enable¶
Whether to enable the Mesos Master.
Type: boolean
Default:
falseDeclared by:
services.mesos.master.advertiseIp¶
IP address advertised to reach this master.
Type: null or string
Default:
nullDeclared by:
services.mesos.master.advertisePort¶
Port advertised to reach this Mesos master.
Type: null or signed integer
Default:
nullDeclared by:
services.mesos.master.extraCmdLineOptions¶
Extra command line options for Mesos Master.
See https://mesos.apache.org/documentation/latest/configuration/
Type: list of strings
Default:
[ "" ]Example:
[ "--credentials=VALUE" ]Declared by:
services.mesos.master.ip¶
IP address to listen on.
Type: string
Default:
"0.0.0.0"Declared by:
services.mesos.master.logLevel¶
The logging level used. Possible values: ‘INFO’, ‘WARNING’, ‘ERROR’
Type: string
Default:
"INFO"Declared by:
services.mesos.master.port¶
Mesos Master port
Type: signed integer
Default:
5050Declared by:
services.mesos.master.quorum¶
The size of the quorum of replicas when using ‘replicated_log’ based registry. It is imperative to set this value to be a majority of masters i.e., quorum > (number of masters)/2.
If 0 will fall back to –registry=in_memory.
Type: signed integer
Default:
0Declared by:
services.mesos.master.workDir¶
The Mesos work directory.
Type: string
Default:
"/var/lib/mesos/master"Declared by:
services.mesos.master.zk¶
ZooKeeper URL (used for leader election amongst masters). May be one of: zk://host1:port1,host2:port2,…/mesos zk://username:password@host1:port1,host2:port2,…/mesos
Type: string
Declared by:
services.mesos.slave.enable¶
Whether to enable the Mesos Slave.
Type: boolean
Default:
falseDeclared by:
services.mesos.slave.advertiseIp¶
IP address advertised to reach this agent.
Type: null or string
Default:
nullDeclared by:
services.mesos.slave.advertisePort¶
Port advertised to reach this agent.
Type: null or signed integer
Default:
nullDeclared by:
services.mesos.slave.attributes¶
Machine attributes for the slave instance.
Use caution when changing this; you may need to manually reset slave metadata before the slave can re-register.
Type: attribute set of strings
Default: ``{
}``
Example:
{ host = "aabc123"; os = "nixos"; rack = "aa"; }Declared by:
services.mesos.slave.containerizers¶
List of containerizer implementations to compose in order to provide containerization. Available options are mesos and docker. The order the containerizers are specified is the order they are tried.
Type: list of strings
Default:
[ "mesos" ]Declared by:
services.mesos.slave.dockerRegistry¶
The default url for pulling Docker images. It could either be a Docker registry server url, or a local path in which Docker image archives are stored.
Type: null or string or path
Default:
nullDeclared by:
services.mesos.slave.executorEnvironmentVariables¶
The environment variables that should be passed to the executor, and thus subsequently task(s).
Type: attribute set of strings
Default:
{ PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"; }Declared by:
services.mesos.slave.extraCmdLineOptions¶
Extra command line options for Mesos Slave.
See https://mesos.apache.org/documentation/latest/configuration/
Type: list of strings
Default:
[ "" ]Example:
[ "--gc_delay=3days" ]Declared by:
services.mesos.slave.imageProviders¶
List of supported image providers, e.g., APPC,DOCKER.
Type: list of strings
Default: ``[
]``
Declared by:
services.mesos.slave.imageProvisionerBackend¶
Strategy for provisioning container rootfs from images, e.g., aufs, bind, copy, overlay.
Type: string
Default:
"copy"Declared by:
services.mesos.slave.ip¶
IP address to listen on.
Type: string
Default:
"0.0.0.0"Declared by:
services.mesos.slave.isolation¶
Isolation mechanisms to use, e.g., posix/cpu,posix/mem, or cgroups/cpu,cgroups/mem, or network/port_mapping, or `gpu/nvidia` for nvidia specific gpu isolation.
Type: list of strings
Default:
[ "posix/cpu" "posix/mem" ]Declared by:
services.mesos.slave.logLevel¶
The logging level used. Possible values: ‘INFO’, ‘WARNING’, ‘ERROR’
Type: string
Default:
"INFO"Declared by:
services.mesos.slave.master¶
May be one of: zk://host1:port1,host2:port2,…/path zk://username:password@host1:port1,host2:port2,…/path
Type: string
Declared by:
services.mesos.slave.port¶
Port to listen on.
Type: signed integer
Default:
5051Declared by:
services.mesos.slave.withDocker¶
Enable the docker containerizer.
Type: boolean
Default:
falseDeclared by:
services.mesos.slave.withHadoop¶
Add the HADOOP_HOME to the slave.
Type: boolean
Default:
falseDeclared by:
services.mesos.slave.workDir¶
The Mesos work directory.
Type: string
Default:
"/var/lib/mesos/slave"Declared by:
services.metabase.enable¶
Whether to enable Metabase service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.metabase.listen.ip¶
IP address that Metabase should listen on.
Type: string
Default:
"0.0.0.0"Declared by:
services.metabase.listen.port¶
Listen port for Metabase.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
3000Declared by:
services.metabase.openFirewall¶
Open ports in the firewall for Metabase.
Type: boolean
Default:
falseDeclared by:
services.metabase.ssl.enable¶
Whether to enable SSL (https) support.
Type: boolean
Default:
falseDeclared by:
services.metabase.ssl.keystore¶
Java KeyStore file containing the certificates.
Type: null or path
Default:
"/var/lib/metabase/metabase.jks"Example:
"/etc/secrets/keystore.jks"Declared by:
services.metabase.ssl.port¶
Listen port over SSL (https) for Metabase.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
8443Declared by:
services.mighttpd2.enable¶
Whether to enable Mighttpd2 web server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.mighttpd2.config¶
Verbatim config file to use (see http://www.mew.org/~kazu/proj/mighttpd/en/config.html)
Type: strings concatenated with “\n”
Default:
""Example:
'' # Example configuration for Mighttpd 2 Port: 80 # IP address or "*" Host: * Debug_Mode: Yes # Yes or No # If available, "nobody" is much more secure for User:. User: root # If available, "nobody" is much more secure for Group:. Group: root Pid_File: /run/mighty.pid Logging: Yes # Yes or No Log_File: /var/log/mighty # The directory must be writable by User: Log_File_Size: 16777216 # bytes Log_Backup_Number: 10 Index_File: index.html Index_Cgi: index.cgi Status_File_Dir: /usr/local/share/mighty/status Connection_Timeout: 30 # seconds Fd_Cache_Duration: 10 # seconds # Server_Name: Mighttpd/3.x.y Tls_Port: 443 Tls_Cert_File: cert.pem # should change this with an absolute path # should change this with comma-separated absolute paths Tls_Chain_Files: chain.pem # Currently, Tls_Key_File must not be encrypted. Tls_Key_File: privkey.pem # should change this with an absolute path Service: 0 # 0 is HTTP only, 1 is HTTPS only, 2 is both ''Declared by:
services.mighttpd2.cores¶
How many cores to use. If null it will be determined automatically
Type: null or signed integer
Default:
nullDeclared by:
services.mighttpd2.routing¶
Verbatim routing file to use (see http://www.mew.org/~kazu/proj/mighttpd/en/config.html)
Type: strings concatenated with “\n”
Default:
""Example:
'' # Example routing for Mighttpd 2 # Domain lists [localhost www.example.com] # Entries are looked up in the specified order # All paths must end with "/" # A path to CGI scripts should be specified with "=>" /~alice/cgi-bin/ => /home/alice/public_html/cgi-bin/ # A path to static files should be specified with "->" /~alice/ -> /home/alice/public_html/ /cgi-bin/ => /export/cgi-bin/ # Reverse proxy rules should be specified with ">>" # /path >> host:port/path2 # Either "host" or ":port" can be committed, but not both. /app/cal/ >> example.net/calendar/ # Yesod app in the same server /app/wiki/ >> 127.0.0.1:3000/ / -> /export/www/ ''Declared by:
services.minecraft-server.enable¶
If enabled, start a Minecraft Server. The server data will be loaded from and saved to.
Type: boolean
Default:
falseDeclared by:
services.minecraft-server.package¶
Version of minecraft-server to run.
Type: package
Default:
"pkgs.minecraft-server"Example:
pkgs.minecraft-server_1_12_2Declared by:
services.minecraft-server.dataDir¶
Directory to store Minecraft database and other state/data files.
Type: path
Default:
"/var/lib/minecraft"Declared by:
services.minecraft-server.declarative¶
Whether to use a declarative Minecraft server configuration. Only if set to
true, the options and will be applied.Type: boolean
Default:
falseDeclared by:
services.minecraft-server.eula¶
Whether you agree to`Mojangs EULA <https://account.mojang.com/documents/minecraft_eula>`_. This option must be set to``true`` to run Minecraft server.
Type: boolean
Default:
falseDeclared by:
services.minecraft-server.jvmOpts¶
JVM options for the Minecraft server.
Type: strings concatenated with ” “
Default:
"-Xmx2048M -Xms2048M"Example:
"-Xmx2048M -Xms4092M -XX:+UseG1GC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10"Declared by:
services.minecraft-server.openFirewall¶
Whether to open ports in the firewall for the server.
Type: boolean
Default:
falseDeclared by:
services.minecraft-server.serverProperties¶
Minecraft server properties for the server.properties file. Only has an effect when is set to
true. See` <https://minecraft.gamepedia.com/Server.properties#Java_Edition_3>`_ for documentation on these values.Type: attribute set of boolean or signed integer or strings
Default: ``{
}``
Example:
{ server-port = 43000; difficulty = 3; gamemode = 1; max-players = 5; motd = "NixOS Minecraft server!"; white-list = true; enable-rcon = true; "rcon.password" = "hunter2"; }Declared by:
services.minecraft-server.whitelist¶
Whitelisted players, only has an effect when is``true`` and the whitelist is enabled via by setting
white-listtotrue. This is a mapping from Minecraft usernames to UUIDs. You can use ` <https://mcuuid.net/>`_ to get a Minecraft UUID for a username.Type: attribute set of Minecraft UUIDs
Default: ``{
}``
Example:
{ username1 = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"; username2 = "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"; };Declared by:
services.minetest-server.enable¶
If enabled, starts a Minetest Server.
Type: boolean
Default:
falseDeclared by:
services.minetest-server.configPath¶
Path to the config to use.
If set to null, the config of the running user will be used: `~/.minetest/minetest.conf`.
Type: null or path
Default:
nullDeclared by:
services.minetest-server.gameId¶
Id of the game to use. To list available games run `minetestserver –gameid list`.
If only one game exists, this option can be null.
Type: null or string
Default:
nullDeclared by:
services.minetest-server.logPath¶
Path to logfile for logging.
If set to null, logging will be output to stdout which means all output will be catched by systemd.
Type: null or path
Default:
nullDeclared by:
services.minetest-server.port¶
Port number to bind to.
If set to null, the default 30000 will be used.
Type: null or signed integer
Default:
nullDeclared by:
services.minetest-server.world¶
Name of the world to use. To list available worlds run `minetestserver –world list`.
If only one world exists, this option can be null.
Type: null or path
Default:
nullDeclared by:
services.mingetty.autologinUser¶
Username of the account that will be automatically logged in at the console. If unspecified, a login prompt is shown as usual.
Type: null or string
Default:
nullDeclared by:
services.mingetty.greetingLine¶
Welcome line printed by mingetty. The default shows current NixOS version label, machine type and tty.
Type: string
Declared by:
services.mingetty.helpLine¶
Help line printed by mingetty below the welcome line. Used by the installation CD to give some hints on how to proceed.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.mingetty.serialSpeed¶
Bitrates to allow for agetty’s listening on serial ports. Listing more bitrates gives more interoperability but at the cost of long delays for getting a sync on the line.
Type: list of signed integers
Default:
[ 115200 57600 38400 9600 ]Example:
[ 38400 9600 ]Declared by:
services.minidlna.enable¶
Whether to enable MiniDLNA, a simple DLNA server. It serves media files such as video and music to DLNA client devices such as televisions and media players.
Type: boolean
Default:
falseDeclared by:
services.minidlna.announceInterval¶
The interval between announces (in seconds).
By default miniDLNA will announce its presence on the network approximately every 15 minutes.
Many people prefer shorter announce intervals (e.g. 60 seconds) on their home networks, especially when DLNA clients are started on demand.
Type: signed integer
Default:
895Declared by:
services.minidlna.config¶
The contents of MiniDLNA’s configuration file. When the service is activated, a basic template is generated from the current options opened here.
Type: strings concatenated with “\n”
Declared by:
services.minidlna.extraConfig¶
Extra minidlna options not yet opened for configuration here (strict_dlna, model_number, model_name, etc…). This is appended to the current service already provided.
Type: strings concatenated with “\n”
Default:
""Example:
'' # Not exhaustive example # Support for streaming .jpg and .mp3 files to a TiVo supporting HMO. enable_tivo=no # SSDP notify interval, in seconds. notify_interval=10 # maximum number of simultaneous connections # note: many clients open several simultaneous connections while # streaming max_connections=50 # set this to yes to allow symlinks that point outside user-defined # media_dirs. wide_links=yes ''Declared by:
services.minidlna.friendlyName¶
Name that the DLNA server presents to clients.
Type: string
Default:
"\\$HOSTNAME MiniDLNA"Example:
"rpi3"Declared by:
services.minidlna.loglevel¶
Defines the type of messages that should be logged, and down to which level of importance they should be considered.
The possible types are “artwork”, “database”, “general”, “http”, “inotify”, “metadata”, “scanner”, “ssdp” and “tivo”.
The levels are “off”, “fatal”, “error”, “warn”, “info” and “debug”, listed here in order of decreasing importance. “off” turns off logging messages entirely, “fatal” logs the most critical messages only, and so on down to “debug” that logs every single messages.
The types are comma-separated, followed by an equal sign (‘=’), followed by a level that applies to the preceding types. This can be repeated, separating each of these constructs with a comma.
Defaults to “general,artwork,database,inotify,scanner,metadata, http,ssdp,tivo=warn” which logs every type of message at the “warn” level.
Type: string
Default:
"warn"Example:
"general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn"Declared by:
services.minidlna.mediaDirs¶
Directories to be scanned for media files. The prefixes``A,``,
V,and``P,`` restrict a directory to audio, video or image files. The directories must be accessible to the``minidlna`` user account.Type: list of strings
Default: ``[
]``
Example:
[ "/data/media" "V,/home/alice/video" ]Declared by:
services.minidlna.rootContainer¶
Use a different container as the root of the directory tree presented to clients. The possible values are: - “.” - standard container - “B” - “Browse Directory” - “M” - “Music” - “P” - “Pictures” - “V” - “Video” - Or, you can specify the ObjectID of your desired root container (eg. 1$F for Music/Playlists) If you specify “B” and the client device is audio-only then “Music/Folders” will be used as root.
Type: string
Default:
"."Example:
"B"Declared by:
services.miniflux.enable¶
Whether to enable miniflux.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.miniflux.adminCredentialsFile¶
File containing the ADMIN_USERNAME, default is “admin”, and ADMIN_PASSWORD (length >= 6), default is “password”; in the format of an EnvironmentFile=, as described by systemd.exec(5).
Type: null or path
Default:
nullExample:
"/etc/nixos/miniflux-admin-credentials"Declared by:
services.miniflux.config¶
Configuration for Miniflux, refer to` <http://docs.miniflux.app/en/latest/configuration.html>`_ for documentation on the supported values.
Type: attribute set of strings
Example:
{ CLEANUP_FREQUENCY = "48"; LISTEN_ADDR = "localhost:8080"; }Declared by:
services.minio.enable¶
Whether to enable Minio Object Storage.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.minio.package¶
Minio package to use.
Type: package
Default:
"pkgs.minio"Declared by:
services.minio.accessKey¶
Access key of 5 to 20 characters in length that clients use to access the server. This overrides the access key that is generated by minio on first startup and stored inside the``configDir`` directory.
Type: string
Default:
""Declared by:
services.minio.browser¶
Enable or disable access to web UI.
Type: boolean
Default:
trueDeclared by:
services.minio.configDir¶
The config directory, for the access keys and other settings.
Type: path
Default:
"/var/lib/minio/config"Declared by:
services.minio.dataDir¶
The data directory, for storing the objects.
Type: path
Default:
"/var/lib/minio/data"Declared by:
services.minio.listenAddress¶
Listen on a specific IP address and port.
Type: string
Default:
":9000"Declared by:
services.minio.region¶
The physical location of the server. By default it is set to us-east-1, which is same as AWS S3’s and Minio’s default region.
Type: string
Default:
"us-east-1"Declared by:
services.minio.secretKey¶
Specify the Secret key of 8 to 40 characters in length that clients use to access the server. This overrides the secret key that is generated by minio on first startup and stored inside the``configDir`` directory.
Type: string
Default:
""Declared by:
services.miniupnpd.enable¶
Whether to enable MiniUPnP daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.miniupnpd.appendConfig¶
Configuration lines appended to the MiniUPnP config.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.miniupnpd.externalInterface¶
Name of the external interface.
Type: string
Declared by:
services.miniupnpd.internalIPs¶
The IP address ranges to listen on.
Type: list of strings
Example:
[ "192.168.1.1/24" "enp1s0" ]Declared by:
services.miniupnpd.natpmp¶
Whether to enable NAT-PMP support.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.miniupnpd.upnp¶
Whether to enable UPNP support.
Type: boolean
Default:
trueDeclared by:
services.miredo.enable¶
Whether to enable the Miredo IPv6 tunneling service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.miredo.package¶
The package to use for the miredo daemon’s binary.
Type: package
Default:
"pkgs.miredo"Declared by:
services.miredo.bindAddress¶
Depending on the local firewall/NAT rules, you might need to force Miredo to use a fixed UDP port and or IPv4 address.
Type: null or string
Default:
nullDeclared by:
services.miredo.bindPort¶
Depending on the local firewall/NAT rules, you might need to force Miredo to use a fixed UDP port and or IPv4 address.
Type: null or string
Default:
nullDeclared by:
services.miredo.interfaceName¶
Name of the network tunneling interface.
Type: string
Default:
"teredo"Declared by:
services.miredo.serverAddress¶
The hostname or primary IPv4 address of the Teredo server. This setting is required if Miredo runs as a Teredo client. “teredo.remlab.net” is an experimental service for testing only. Please use another server for production and/or large scale deployments.
Type: string
Default:
"teredo.remlab.net"Declared by:
services.mjpg-streamer.enable¶
Whether to enable mjpg-streamer webcam streamer.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.mjpg-streamer.group¶
mjpg-streamer group name.
Type: string
Default:
"video"Declared by:
services.mjpg-streamer.inputPlugin¶
Input plugin. See plugins documentation for more information.
Type: string
Default:
"input_uvc.so"Declared by:
services.mjpg-streamer.outputPlugin¶
Output plugin.
@www@is substituted for default mjpg-streamer www directory. See plugins documentation for more information.Type: string
Default:
"output_http.so -w @www@ -n -p 5050"Declared by:
services.mjpg-streamer.user¶
mjpg-streamer user name.
Type: string
Default:
"mjpg-streamer"Declared by:
services.mlmmj.enable¶
Enable mlmmj
Type: boolean
Default:
falseDeclared by:
services.mlmmj.group¶
mailinglist local group
Type: string
Default:
"mlmmj"Declared by:
services.mlmmj.listDomain¶
Set the mailing list domain
Type: string
Default:
"localhost"Declared by:
services.mlmmj.mailLists¶
services.mlmmj.maintInterval¶
Time interval between mlmmj-maintd runs, seesystemd.time7 for format information.
Type: string
Default:
"20min"Declared by:
services.mlmmj.user¶
mailinglist local user
Type: string
Default:
"mlmmj"Declared by:
services.moinmoin.enable¶
Whether to enable MoinMoin Wiki Engine.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.moinmoin.gunicorn.workers¶
The number of worker processes for handling requests.
Type: positive integer, meaning >0
Default:
3Example:
10Declared by:
services.moinmoin.webServer¶
Which web server to use to serve the wiki. Use
noneif you want to configure this yourself.Type: one of “nginx-gunicorn”, “gunicorn”, “none”
Default:
"nginx-gunicorn"Example:
"none"Declared by:
services.moinmoin.wikis¶
Configurations of the individual wikis. Attribute names must be valid Python identifiers of the form
[A-Za-z_][A-Za-z0-9_]*.For every attribute WIKINAME, a helper script moin-WIKINAME is created which runs the:command:moin command under the
moinuser (to avoid file ownership issues) and with the right configuration directory passed to it.Type: attribute set of submodules
Example:
{ "mywiki" = { siteName = "Example Wiki"; webHost = "wiki.example.org"; superUsers = [ "admin" ]; frontPage = "Index"; extraConfig = "page_category_regex = ur'(?P<all>(Category|Kategorie)(?P<key>(?!Template)\S+))'" }; }Declared by:
services.moinmoin.wikis.<name>.extraConfig¶
Additional configuration to be appended verbatim to this wiki’s config.
See ` <http://moinmo.in/HelpOnConfiguration>`_ for documentation.
Type: strings concatenated with “\n”
Default:
""Example:
'' show_hosts = True search_results_per_page = 100 acl_rights_default = u"Known:read,write,delete,revert All:read" logo_string = u"<h2>\U0001f639</h2>" theme_default = u"modernized" user_checkbox_defaults = {'show_page_trail': 0, 'edit_on_doubleclick': 0} navi_bar = [u'SomePage'] + multiconfig.DefaultConfig.navi_bar actions_excluded = multiconfig.DefaultConfig.actions_excluded + ['newaccount'] mail_smarthost = "mail.example.org" mail_from = u"Example.Org Wiki <wiki@example.org>" ''Declared by:
services.moinmoin.wikis.<name>.frontPage¶
Front page name. Set this to something like
FrontPageonce languages are configured.Type: string
Default:
"LanguageSetup"Example:
"FrontPage"Declared by:
services.moinmoin.wikis.<name>.languageDefault¶
The ISO-639-1 name of the main wiki language. Languages that MoinMoin does not support are ignored.
Type: string
Default:
"en"Example:
"de"Declared by:
services.moinmoin.wikis.<name>.siteName¶
Short description of your wiki site, displayed below the logo on each page, and used in RSS documents as the channel title.
Type: string
Default:
"Untitled Wiki"Example:
"ExampleWiki"Declared by:
services.moinmoin.wikis.<name>.superUsers¶
List of trusted user names with wiki system administration super powers.
Please note that accounts for these users need to be created using the moin command-line utility, e.g.:moin-*WIKINAME* account create --name=*NAME* --email=*EMAIL* --password=*PASSWORD*.
Type: list of strings
Default: ``[
]``
Example:
[ "elvis" ]Declared by:
services.moinmoin.wikis.<name>.webHost¶
Host part of the wiki URL. If undefined, the name of the attribute set will be used.
Type: string
Example:
"wiki.example.org"Declared by:
services.moinmoin.wikis.<name>.webLocation¶
Location part of the wiki URL.
Type: string
Default:
"/"Example:
"/moin"Declared by:
services.monero.enable¶
Whether to enable Monero node daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.monero.exclusiveNodes¶
List of peer IP addresses to connect to *only*. If given the other peer options will be ignored.
Type: list of strings
Default: ``[
]``
Declared by:
services.monero.extraConfig¶
Extra lines to be added verbatim to monerod configuration.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.monero.extraNodes¶
List of additional peer IP addresses to add to the local list.
Type: list of strings
Default: ``[
]``
Declared by:
services.monero.limits.download¶
Limit of the download rate in kB/s. Set to
-1to leave unlimited.Type: signed integer
Default:
-1Declared by:
services.monero.limits.syncSize¶
Maximum number of blocks to sync at once. Set to
0for adaptive.Type: signed integer
Default:
0Declared by:
services.monero.limits.threads¶
Maximum number of threads used for a parallel job. Set to
0to leave unlimited.Type: signed integer
Default:
0Declared by:
services.monero.limits.upload¶
Limit of the upload rate in kB/s. Set to
-1to leave unlimited.Type: signed integer
Default:
-1Declared by:
services.monero.mining.enable¶
Whether to mine moneroj.
Type: boolean
Default:
falseDeclared by:
services.monero.mining.address¶
Monero address where to send mining rewards.
Type: string
Default:
""Declared by:
services.monero.mining.threads¶
Number of threads used for mining. Set to
0to use all available.Type: signed integer
Default:
0Declared by:
services.monero.priorityNodes¶
List of peer IP addresses to connect to and attempt to keep the connection open.
Type: list of strings
Default: ``[
]``
Declared by:
services.monero.rpc.address¶
IP address the RPC server will bind to.
Type: string
Default:
"127.0.0.1"Declared by:
services.monero.rpc.password¶
Password for RPC connections.
Type: string
Default:
nullDeclared by:
services.monero.rpc.port¶
Port the RPC server will bind to.
Type: signed integer
Default:
18081Declared by:
services.monero.rpc.restricted¶
Whether to restrict RPC to view only commands.
Type: boolean
Default:
falseDeclared by:
services.monero.rpc.user¶
User name for RPC connections.
Type: null or string
Default:
nullDeclared by:
services.monetdb.enable¶
Whether to enable the MonetDB database server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.monetdb.package¶
MonetDB package to use.
Type: package
Default:
"pkgs.monetdb"Declared by:
services.monetdb.dataDir¶
Data directory for the dbfarm.
Type: path
Default:
"/var/lib/monetdb"Declared by:
services.monetdb.group¶
Group under which MonetDB runs.
Type: string
Default:
"monetdb"Declared by:
services.monetdb.listenAddress¶
Address to listen on.
Type: string
Default:
"127.0.0.1"Example:
"0.0.0.0"Declared by:
services.monetdb.port¶
Port to listen on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
50000Declared by:
services.monetdb.user¶
User account under which MonetDB runs.
Type: string
Default:
"monetdb"Declared by:
services.mongodb.enable¶
Whether to enable the MongoDB server.
Type: unspecified
Default:
falseDeclared by:
services.mongodb.enableAuth¶
Enable client authentication. Creates a default superuser with username root!
Type: boolean
Default:
falseDeclared by:
services.mongodb.package¶
Which MongoDB derivation to use.
Type: package
Default:
"pkgs.mongodb"Declared by:
services.mongodb.bind_ip¶
IP to bind to
Type: unspecified
Default:
"127.0.0.1"Declared by:
services.mongodb.dbpath¶
Location where MongoDB stores its files
Type: unspecified
Default:
"/var/db/mongodb"Declared by:
services.mongodb.extraConfig¶
MongoDB extra configuration in YAML format
Type: unspecified
Default:
""Example:
'' storage.journal.enabled: false ''Declared by:
services.mongodb.initialRootPassword¶
Password for the root user if auth is enabled.
Type: null or string
Default:
nullDeclared by:
services.mongodb.initialScript¶
A file containing MongoDB statements to execute on first startup.
Type: null or path
Default:
nullDeclared by:
services.mongodb.pidFile¶
Location of MongoDB pid file
Type: unspecified
Default:
"/run/mongodb.pid"Declared by:
services.mongodb.quiet¶
quieter output
Type: unspecified
Default:
falseDeclared by:
services.mongodb.replSetName¶
If this instance is part of a replica set, set its name here. Otherwise, leave empty to run as single node.
Type: unspecified
Default:
""Declared by:
services.mongodb.user¶
User account under which MongoDB runs
Type: unspecified
Default:
"mongodb"Declared by:
services.monit.enable¶
Whether to enable Monit.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.monit.config¶
monitrc content
Type: strings concatenated with “\n”
Default:
""Declared by:
services.moodle.enable¶
Whether to enable Moodle web application.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.moodle.package¶
The Moodle package to use.
Type: package
Default:
"pkgs.moodle"Declared by:
services.moodle.database.createLocally¶
Create the database and database user locally.
Type: boolean
Default:
trueDeclared by:
services.moodle.database.host¶
Database host address.
Type: string
Default:
"localhost"Declared by:
services.moodle.database.name¶
Database name.
Type: string
Default:
"moodle"Declared by:
services.moodle.database.passwordFile¶
A file containing the password corresponding to.
Type: null or path
Default:
nullExample:
"/run/keys/moodle-dbpassword"Declared by:
services.moodle.database.port¶
Database host port.
Type: signed integer
Default:
"3306"Declared by:
services.moodle.database.socket¶
Path to the unix socket file to use for authentication.
Type: null or path
Default:
"/run/mysqld/mysqld.sock"Declared by:
services.moodle.database.type¶
Database engine to use.
Type: one of “mysql”, “pgsql”
Default:
"mysql"Declared by:
services.moodle.database.user¶
Database user.
Type: string
Default:
"moodle"Declared by:
services.moodle.extraConfig¶
Any additional text to be appended to the config.php configuration file. This is a PHP script. For configuration details, see ` <https://docs.moodle.org/37/en/Configuration_file>`_.
Type: strings concatenated with “\n”
Default:
""Example:
'' $CFG->disableupdatenotifications = true; ''Declared by:
services.moodle.initialPassword¶
Specifies the initial password for the admin, i.e. the password assigned if the user does not already exist. The password specified here is world-readable in the Nix store, so it should be changed promptly.
Type: string
Example:
"correcthorsebatterystaple"Declared by:
services.moodle.poolConfig¶
Options for the Moodle PHP pool. See the documentation on
php-fpm.conffor details on configuration directives.Type: attribute set of string or signed integer or booleans
Default:
{ pm = "dynamic"; pm.max_children = 32; pm.max_requests = 500; pm.max_spare_servers = 4; pm.min_spare_servers = 2; pm.start_servers = 2; }Declared by:
services.moodle.virtualHost¶
Apache configuration can be done by adapting . See services.httpd.virtualHosts for further information.
Type: submodule
Example:
{ hostName = "moodle.example.org"; adminAddr = "webmaster@example.org"; forceSSL = true; enableACME = true; }Declared by:
services.moodle.virtualHost.enableACME¶
Whether to ask Let’s Encrypt to sign a certificate for this vhost. Alternately, you can use an existing certificate through .
Type: boolean
Default:
falseDeclared by:
services.moodle.virtualHost.enableUserDir¶
Whether to enable serving
~/public_htmlas``/~*username*``.Type: boolean
Default:
falseDeclared by:
services.moodle.virtualHost.acmeRoot¶
Directory for the acme challenge which is PUBLIC, don’t put certs or keys in here
Type: string
Default:
"/var/lib/acme/acme-challenges"Declared by:
services.moodle.virtualHost.addSSL¶
Whether to enable HTTPS in addition to plain HTTP. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443).
Type: boolean
Default:
falseDeclared by:
services.moodle.virtualHost.adminAddr¶
E-mail address of the server administrator.
Type: null or string
Default:
nullExample:
"admin@example.org"Declared by:
services.moodle.virtualHost.documentRoot¶
The path of Apache’s document root directory. If left undefined, an empty directory in the Nix store will be used as root.
Type: null or path
Default:
nullExample:
"/data/webserver/docs"Declared by:
services.moodle.virtualHost.extraConfig¶
These lines go to httpd.conf verbatim. They will go after directories and directory aliases defined by default.
Type: strings concatenated with “\n”
Default:
""Example:
'' <Directory /home> Options FollowSymlinks AllowOverride All </Directory> ''Declared by:
services.moodle.virtualHost.forceSSL¶
Whether to add a separate nginx server block that permanently redirects (301) all plain HTTP traffic to HTTPS. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443), where the non-SSL listens are used for the redirect vhosts.
Type: boolean
Default:
falseDeclared by:
services.moodle.virtualHost.globalRedirect¶
If set, all requests for this host are redirected permanently to the given URL.
Type: null or string
Default:
nullExample:
"http://newserver.example.org/"Declared by:
services.moodle.virtualHost.hostName¶
Canonical hostname for the server.
Type: string
Default:
"‹name›"Declared by:
services.moodle.virtualHost.http2¶
Whether to enable HTTP 2. HTTP/2 is supported in all multi-processing modules that come with httpd. However, if you use the prefork mpm, there will be severe restrictions. Refer to ` <https://httpd.apache.org/docs/2.4/howto/http2.html#mpm-config>`_ for details.
Type: boolean
Default:
falseDeclared by:
services.moodle.virtualHost.listen¶
services.moodle.virtualHost.listen.*.ip¶
IP to listen on. 0.0.0.0 for IPv4 only, * for all.
Type: string
Default:
"\*"Declared by:
services.moodle.virtualHost.listen.*.port¶
Port to listen on
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Declared by:
services.moodle.virtualHost.listen.*.ssl¶
Whether to enable SSL (https) support.
Type: boolean
Default:
falseDeclared by:
services.moodle.virtualHost.locations¶
Declarative location config. See ` <https://httpd.apache.org/docs/2.4/mod/core.html#location>`_ for details.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ "/" = { proxyPass = "http://localhost:3000"; }; "/foo/bar.png" = { alias = "/home/eelco/some-file.png"; }; };Declared by:
services.moodle.virtualHost.locations.<name>.alias¶
Alias directory for requests. See ` <https://httpd.apache.org/docs/2.4/mod/mod_alias.html#alias>`_.
Type: null or path
Default:
nullExample:
"/your/alias/directory"Declared by:
services.moodle.virtualHost.locations.<name>.extraConfig¶
These lines go to the end of the location verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.moodle.virtualHost.locations.<name>.index¶
Adds DirectoryIndex directive. See ` <https://httpd.apache.org/docs/2.4/mod/mod_dir.html#directoryindex>`_.
Type: null or string
Default:
nullExample:
"index.php index.html"Declared by:
services.moodle.virtualHost.locations.<name>.priority¶
Order of this location block in relation to the others in the vhost. The semantics are the same as with `lib.mkOrder`. Smaller values have a greater priority.
Type: signed integer
Default:
1000Declared by:
services.moodle.virtualHost.locations.<name>.proxyPass¶
Sets up a simple reverse proxy as described by ` <https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html#simple>`_.
Type: null or string
Default:
nullExample:
"http://www.example.org/"Declared by:
services.moodle.virtualHost.logFormat¶
Log format for Apache’s log files. Possible values are: combined, common, referer, agent.
Type: string
Default:
"common"Example:
"combined"Declared by:
services.moodle.virtualHost.onlySSL¶
Whether to enable HTTPS and reject plain HTTP connections. This will set defaults for
listento listen on all interfaces on port 443.Type: boolean
Default:
falseDeclared by:
services.moodle.virtualHost.robotsEntries¶
Specification of pages to be ignored by web crawlers. See ` <http://www.robotstxt.org/>`_ for details.
Type: strings concatenated with “\n”
Default:
""Example:
"Disallow: /foo/"Declared by:
services.moodle.virtualHost.servedDirs¶
services.moodle.virtualHost.servedFiles¶
This option provides a simple way to serve individual, static files.
Note
This option has been deprecated and will be removed in a future version of NixOS. You can achieve the same result by making use of the
locations.<name>.aliasoption.Type: list of attribute sets
Default: ``[
]``
Example: ``[
{ file = “/home/eelco/some-file.png”; urlPath = “/foo/bar.png”; }
]``
Declared by:
services.moodle.virtualHost.serverAliases¶
Additional names of virtual hosts served by this virtual host configuration.
Type: list of strings
Default: ``[
]``
Example:
[ "www.example.org" "www.example.org:8080" "example.org" ]Declared by:
services.moodle.virtualHost.sslServerCert¶
Path to server SSL certificate.
Type: path
Example:
"/var/host.cert"Declared by:
services.moodle.virtualHost.sslServerChain¶
Path to server SSL chain file.
Type: null or path
Default:
nullExample:
"/var/ca.pem"Declared by:
services.moodle.virtualHost.sslServerKey¶
Path to server SSL certificate key.
Type: path
Example:
"/var/host.key"Declared by:
services.moodle.virtualHost.useACMEHost¶
A host of an existing Let’s Encrypt certificate to use. This is useful if you have many subdomains and want to avoid hitting the`rate limit <https://letsencrypt.org/docs/rate-limits/>`_. Alternately, you can generate a certificate through .*Note that this option does not create any certificates, nor it does add subdomains to existing ones – you will need to create them manually using security.acme.certs.*
Type: null or string
Default:
nullDeclared by:
services.mopidy.enable¶
Whether to enable Mopidy, a music player daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.mopidy.configuration¶
The configuration that Mopidy should use.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.mopidy.dataDir¶
The directory where Mopidy stores its state.
Type: string
Default:
"/var/lib/mopidy"Declared by:
services.mopidy.extensionPackages¶
Mopidy extensions that should be loaded by the service.
Type: list of packages
Default: ``[
]``
Example:
[ pkgs.mopidy-spotify ]Declared by:
services.mopidy.extraConfigFiles¶
Extra config file read by Mopidy when the service starts. Later files in the list overrides earlier configuration.
Type: list of strings
Default: ``[
]``
Declared by:
services.morty.enable¶
Whether to enable Morty proxy server. See https://github.com/asciimoo/morty.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.morty.package¶
morty package to use.
Type: package
Default:
"pkgs.morty"Declared by:
services.morty.ipv6¶
Allow IPv6 HTTP requests?
Type: boolean
Default:
"Allow IPv6 HTTP requests."Declared by:
services.morty.key¶
HMAC url validation key (hexadecimal encoded). Leave blank to disable. Without validation key, anyone can submit proxy requests. Leave blank to disable.
Type: string
Default:
"No HMAC url validation. Generate with echo -n somevalue | openssl dgst -sha1 -hmac somekey"Declared by:
services.morty.listenAddress¶
The address on which the service listens
Type: string
Default:
"127.0.0.1 (localhost)"Declared by:
services.morty.port¶
Listing port
Type: signed integer
Default:
3000Declared by:
services.morty.timeout¶
Request timeout in seconds.
Type: signed integer
Default:
"A resource now gets 2 seconds to respond."Declared by:
services.mosquitto.enable¶
Whether to enable the MQTT Mosquitto broker.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.mosquitto.aclExtraConf¶
Extra config to prepend to the ACL file.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.mosquitto.allowAnonymous¶
Allow clients to connect without authentication.
Type: boolean
Default:
falseDeclared by:
services.mosquitto.checkPasswords¶
Refuse connection when clients provide incorrect passwords.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.mosquitto.dataDir¶
The data directory.
Type: path
Default:
"/var/lib/mosquitto"Declared by:
services.mosquitto.extraConf¶
Extra config to append to `mosquitto.conf` file.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.mosquitto.host¶
Host to listen on without SSL.
Type: string
Default:
"127.0.0.1"Example:
"0.0.0.0"Declared by:
services.mosquitto.port¶
Port on which to listen without SSL.
Type: signed integer
Default:
1883Example:
1883Declared by:
services.mosquitto.ssl.enable¶
Whether to enable SSL listener.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.mosquitto.ssl.cafile¶
Path to PEM encoded CA certificates.
Type: null or path
Default:
nullDeclared by:
services.mosquitto.ssl.certfile¶
Path to PEM encoded server certificate.
Type: null or path
Default:
nullDeclared by:
services.mosquitto.ssl.host¶
Host to listen on with SSL.
Type: string
Default:
"0.0.0.0"Example:
"localhost"Declared by:
services.mosquitto.ssl.keyfile¶
Path to PEM encoded server key.
Type: null or path
Default:
nullDeclared by:
services.mosquitto.ssl.port¶
Port on which to listen with SSL.
Type: signed integer
Default:
8883Example:
8883Declared by:
services.mosquitto.users¶
A set of users and their passwords and ACLs.
Type: attribute set of submodules
Example:
{ john = { acl = [ "topic readwrite john/#" ] ; password = "123456"; } ; }Declared by:
services.mosquitto.users.<name>.acl¶
Control client access to topics on the broker.
Type: list of strings
Example:
[ "topic read A/B" "topic A/#" ]Declared by:
services.mosquitto.users.<name>.hashedPassword¶
Specifies the hashed password for the MQTT User. overrides . To generate hashed password install
mosquittopackage and usemosquitto_passwd.Type: null or string
Default:
nullDeclared by:
services.mosquitto.users.<name>.password¶
Specifies the (clear text) password for the MQTT User.
Type: null or string
Default:
nullDeclared by:
services.mpd.enable¶
Whether to enable MPD, the music player daemon.
Type: boolean
Default:
falseDeclared by:
services.mpd.dataDir¶
The directory where MPD stores its state, tag cache, playlists etc.
Type: path
Default:
"/var/lib/mpd"Declared by:
services.mpd.dbFile¶
The path to MPD’s database. If set to
nullthe parameter is omitted from the configuration.Type: null or string
Default:
"\\${dataDir}/tag_cache"Declared by:
services.mpd.extraConfig¶
Extra directives added to to the end of MPD’s configuration file, mpd.conf. Basic configuration like file location and uid/gid is added automatically to the beginning of the file. For available options see
man 5 mpd.conf’.Type: strings concatenated with “\n”
Default:
""Declared by:
services.mpd.group¶
Group account under which MPD runs.
Type: string
Default:
"mpd"Declared by:
services.mpd.musicDirectory¶
The directory or NFS/SMB network share where mpd reads music from.
Type: path or string matching the pattern (http|https|nfs|smb)://.+
Default:
"\\${dataDir}/music"Declared by:
services.mpd.network.listenAddress¶
The address for the daemon to listen on. Use
anyto listen on all addresses.Type: string
Default:
"127.0.0.1"Example:
"any"Declared by:
services.mpd.network.port¶
This setting is the TCP port that is desired for the daemon to get assigned to.
Type: signed integer
Default:
6600Declared by:
services.mpd.playlistDirectory¶
The directory where mpd stores playlists.
Type: path
Default:
"\\${dataDir}/playlists"Declared by:
services.mpd.startWhenNeeded¶
If set, mpd is socket-activated; that is, instead of having it permanently running as a daemon, systemd will start it on the first incoming connection.
Type: boolean
Default:
falseDeclared by:
services.mpd.user¶
User account under which MPD runs.
Type: string
Default:
"mpd"Declared by:
services.mstpd.enable¶
Whether to enable the multiple spanning tree protocol daemon.
Type: boolean
Default:
falseDeclared by:
services.mtprotoproxy.enable¶
Whether to enable mtprotoproxy.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.mtprotoproxy.adTag¶
Tag for advertising that can be obtained from @MTProxybot.
Type: null or string
Default:
nullExample:
"3c09c680b76ee91a4c25ad51f742267d"Declared by:
services.mtprotoproxy.extraConfig¶
Extra configuration options for mtprotoproxy.
Type: attribute set
Default: ``{
}``
Example:
{ STATS_PRINT_PERIOD = 600; }Declared by:
services.mtprotoproxy.port¶
TCP port to accept mtproto connections on.
Type: signed integer
Default:
3256Declared by:
services.mtprotoproxy.secureOnly¶
Don’t allow users to connect in non-secure mode (without random padding).
Type: boolean
Default:
trueDeclared by:
services.mtprotoproxy.users¶
Allowed users and their secrets. A secret is a 32 characters long hex string.
Type: attribute set of strings
Example:
{ tg = "00000000000000000000000000000000"; tg2 = "0123456789abcdef0123456789abcdef"; }Declared by:
services.munge.enable¶
Whether to enable munge service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.munge.password¶
The path to a daemon’s secret key.
Type: path
Default:
"/etc/munge/munge.key"Declared by:
services.munin-cron.enable¶
Enable munin-cron. Takes care of all heavy lifting to collect data from nodes and draws graphs to html. Runs munin-update, munin-limits, munin-graphs and munin-html in that order.
HTML output is in
/var/www/munin/, configure your favourite webserver to serve static files.Type: boolean
Default:
falseDeclared by:
services.munin-cron.extraCSS¶
Custom styling for the HTML that munin-cron generates. This will be appended to the CSS files used by munin-cron and will thus take precedence over the builtin styles.
Type: strings concatenated with “\n”
Default:
""Example:
'' /* A simple dark theme. */ html, body { background: #222222; } #header, #footer { background: #333333; } img.i, img.iwarn, img.icrit, img.iunkn { filter: invert(100%) hue-rotate(-30deg); } ''Declared by:
services.munin-cron.extraGlobalConfig¶
munin.confextra global configuration. See ` <http://guide.munin-monitoring.org/en/latest/reference/munin.conf.html>`_. Useful to setup notifications, see` <http://guide.munin-monitoring.org/en/latest/tutorial/alert.html>`_Type: strings concatenated with “\n”
Default:
""Example:
'' contact.email.command mail -s "Munin notification for ''${var:host}" someone@example.com ''Declared by:
services.munin-cron.hosts¶
Definitions of hosts of nodes to collect data from. Needs at least one host for cron to succeed. See` <http://guide.munin-monitoring.org/en/latest/reference/munin.conf.html>`_
Type: strings concatenated with “\n”
Default:
""Example:
'' [''${config.networking.hostName}] address localhost ''Declared by:
services.munin-node.enable¶
Enable Munin Node agent. Munin node listens on 0.0.0.0 and by default accepts connections only from 127.0.0.1 for security reasons.
See ` <http://guide.munin-monitoring.org/en/latest/architecture/index.html>`_.
Type: boolean
Default:
falseDeclared by:
services.munin-node.disabledPlugins¶
Munin plugins to disable, even if``munin-node-configure –suggest`` tries to enable them. To disable a wildcard plugin, use an actual wildcard, as in the example.
munin_stats is disabled by default as it tries to read``/var/log/munin/munin-update.log`` for timing information, and the NixOS build of Munin does not write this file.
Type: list of strings
Default:
[ "munin_stats" ]Example:
[ "diskstats" "zfs_usage_*" ]Declared by:
services.munin-node.extraAutoPlugins¶
Additional Munin plugins to autoconfigure, using``munin-node-configure –suggest``. These should be the actual paths to the plugin files (or directories containing them), not just their names.
If you want to manually enable individual plugins instead, use.
Note that only plugins that have the ‘autoconfig’ capability will do anything if listed here, since plugins that cannot autoconfigure won’t be automatically enabled by``munin-node-configure``.
Plugins will be copied into the Nix store, and it will attempt to modify them to run properly by fixing hardcoded references to``/bin``,
/usr/bin,``/sbin``, and/usr/sbin.Type: list of paths
Default: ``[
]``
Example:
[ /src/munin-contrib/plugins/zfs /src/munin-contrib/plugins/ssh ];Declared by:
services.munin-node.extraConfig¶
munin-node.confextra configuration. See` <http://guide.munin-monitoring.org/en/latest/reference/munin-node.conf.html>`_Type: strings concatenated with “\n”
Default:
""Declared by:
services.munin-node.extraPluginConfig¶
plugin-conf.dextra plugin configuration. See` <http://guide.munin-monitoring.org/en/latest/plugin/use.html>`_Type: strings concatenated with “\n”
Default:
""Example:
'' [fail2ban_*] user root ''Declared by:
services.munin-node.extraPlugins¶
Additional Munin plugins to activate. Keys are the name of the plugin symlink, values are the path to the underlying plugin script. You can use the same plugin script multiple times (e.g. for wildcard plugins).
Note that these plugins do not participate in autoconfiguration. If you want to autoconfigure additional plugins, use.
Plugins enabled in this manner take precedence over autoconfigured plugins.
Plugins will be copied into the Nix store, and it will attempt to modify them to run properly by fixing hardcoded references to``/bin``,
/usr/bin,``/sbin``, and/usr/sbin.Type: attribute set of paths
Default: ``{
}``
Example:
{ zfs_usage_bigpool = /src/munin-contrib/plugins/zfs/zfs_usage_; zfs_usage_smallpool = /src/munin-contrib/plugins/zfs/zfs_usage_; zfs_list = /src/munin-contrib/plugins/zfs/zfs_list; };Declared by:
services.murmur.enable¶
If enabled, start the Murmur Mumble server.
Type: boolean
Default:
falseDeclared by:
services.murmur.allowHtml¶
Allow HTML in client messages, comments, and channel descriptions.
Type: boolean
Default:
trueDeclared by:
services.murmur.autobanAttempts¶
Number of attempts a client is allowed to make in``autobanTimeframe`` seconds, before being banned for
autobanTime.Type: signed integer
Default:
10Declared by:
services.murmur.autobanTime¶
The amount of time an IP ban lasts (in seconds).
Type: signed integer
Default:
300Declared by:
services.murmur.autobanTimeframe¶
Timeframe in which a client can connect without being banned for repeated attempts (in seconds).
Type: signed integer
Default:
120Declared by:
services.murmur.bandwidth¶
Maximum bandwidth (in bits per second) that clients may send speech at.
Type: signed integer
Default:
72000Declared by:
services.murmur.bonjour¶
Enable Bonjour auto-discovery, which allows clients over your LAN to automatically discover Murmur servers.
Type: boolean
Default:
falseDeclared by:
services.murmur.clientCertRequired¶
Require clients to authenticate via certificates.
Type: boolean
Default:
falseDeclared by:
services.murmur.extraConfig¶
Extra configuration to put into murmur.ini.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.murmur.hostName¶
Host to bind to. Defaults binding on all addresses.
Type: string
Default:
""Declared by:
services.murmur.imgMsgLength¶
Max length of image messages. Set 0 for no limit.
Type: signed integer
Default:
131072Declared by:
services.murmur.logDays¶
How long to store RPC logs for in the database. Set 0 to keep logs forever, or -1 to disable DB logging.
Type: signed integer
Default:
31Declared by:
services.murmur.logFile¶
Path to the log file for Murmur daemon. Empty means log to journald.
Type: null or path
Default:
nullExample:
"/var/log/murmur/murmurd.log"Declared by:
services.murmur.password¶
Required password to join server, if specified.
Type: string
Default:
""Declared by:
services.murmur.port¶
Ports to bind to (UDP and TCP).
Type: signed integer
Default:
64738Declared by:
services.murmur.registerHostname¶
DNS hostname where your server can be reached. This is only needed if you want your server to be accessed by its hostname and not IP - but the name *must* resolve on the internet properly.
Type: string
Default:
""Declared by:
services.murmur.registerName¶
Public server registration name, and also the name of the Root channel. Even if you don’t publicly register your server, you probably still want to set this.
Type: string
Default:
""Declared by:
services.murmur.registerPassword¶
Public server registry password, used authenticate your server to the registry to prevent impersonation; required for subsequent registry updates.
Type: string
Default:
""Declared by:
services.murmur.registerUrl¶
URL website for your server.
Type: string
Default:
""Declared by:
services.murmur.sendVersion¶
Send Murmur version in UDP response.
Type: boolean
Default:
trueDeclared by:
services.murmur.sslCa¶
Path to your SSL CA certificate.
Type: string
Default:
""Declared by:
services.murmur.sslCert¶
Path to your SSL certificate.
Type: string
Default:
""Declared by:
services.murmur.sslKey¶
Path to your SSL key.
Type: string
Default:
""Declared by:
services.murmur.textMsgLength¶
Max length of text messages. Set 0 for no limit.
Type: signed integer
Default:
5000Declared by:
services.murmur.users¶
Maximum number of concurrent clients allowed.
Type: signed integer
Default:
100Declared by:
services.murmur.welcometext¶
Welcome message for connected clients.
Type: string
Default:
""Declared by:
services.mwlib.nserve.enable¶
Whether to enable nserve. Nserve is a HTTP server. The Collection extension is talking to that program directly. Nserve uses at least one qserve instance in order to distribute and manage jobs.
Type: boolean
Default:
falseDeclared by:
services.mwlib.nserve.address¶
Specify network interface to listen on.
Type: string
Default:
"127.0.0.1"Declared by:
services.mwlib.nserve.port¶
Specify port to listen on.
Type: signed integer
Default:
8899Declared by:
services.mwlib.nserve.qserve¶
Register qserve instance.
Type: list of strings
Default:
[ "127.0.0.1:14311" ]Declared by:
services.mwlib.nserve.user¶
User to run as.
Type: string
Default:
"nobody"Declared by:
services.mwlib.nslave.enable¶
Pulls new jobs from exactly one qserve instance and calls the zip and render programs in order to download article collections and convert them to different output formats. Nslave uses a cache directory to store the generated documents. Nslave also starts an internal http server serving the content of the cache directory.
Type: boolean
Default:
falseDeclared by:
services.mwlib.nslave.cachedir¶
Directory to store generated documents.
Type: path
Default:
"/var/cache/mwlib-nslave"Declared by:
services.mwlib.nslave.http¶
Internal http server serving the content of the cache directory. You have to enable it, or use your own way for serving files and set the http.url option accordingly.
Type: submodule
Default: ``{
}``
Declared by:
services.mwlib.nslave.http.enable¶
Enable internal http server.
Type: boolean
Default:
trueDeclared by:
services.mwlib.nslave.http.address¶
Specify network interface to listen on.
Type: string
Default:
"127.0.0.1"Declared by:
services.mwlib.nslave.http.port¶
Port to listen to when serving files from cache.
Type: signed integer
Default:
8898Declared by:
services.mwlib.nslave.http.url¶
Specify URL for accessing generated files from cache. The Collection extension of Mediawiki won’t be able to download files without it.
Type: string
Default:
"http://localhost:8898/cache"Declared by:
services.mwlib.nslave.numprocs¶
Number of parallel jobs to be executed.
Type: signed integer
Default:
10Declared by:
services.mwlib.nslave.user¶
User to run as.
Type: string
Default:
"nobody"Declared by:
services.mwlib.qserve.enable¶
A job queue server used to distribute and manage jobs. You should start one qserve instance for each machine that is supposed to render pdf files. Unless you’re operating the Wikipedia installation, one machine should suffice.
Type: boolean
Default:
falseDeclared by:
services.mwlib.qserve.address¶
Specify network interface to listen on.
Type: string
Default:
"127.0.0.1"Declared by:
services.mwlib.qserve.allow¶
List of allowed client IPs. Empty means any.
Type: list of strings
Default:
[ "127.0.0.1" ]Declared by:
services.mwlib.qserve.datadir¶
qserve data directory (FIXME: unused?)
Type: path
Default:
"/var/lib/mwlib-qserve"Declared by:
services.mwlib.qserve.port¶
Specify port to listen on.
Type: signed integer
Default:
14311Declared by:
services.mwlib.qserve.user¶
User to run as.
Type: string
Default:
"nobody"Declared by:
services.mxisd.enable¶
Whether to enable matrix federated identity server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.mxisd.package¶
The mxisd/ma1sd package to use
Type: package
Default:
"pkgs.mxisd"Declared by:
services.mxisd.dataDir¶
Where data mxisd/ma1sd uses resides
Type: string
Default:
"/var/lib/mxisd"Declared by:
services.mxisd.extraConfig¶
Extra options merged into the mxisd/ma1sd configuration
Type: attribute set
Default: ``{
}``
Declared by:
services.mxisd.matrix.domain¶
the domain of the matrix homeserver
Type: string
Declared by:
services.mxisd.server.name¶
Public hostname of mxisd/ma1sd, if different from the Matrix domain.
Type: null or string
Default:
nullDeclared by:
services.mxisd.server.port¶
HTTP port to listen on (unencrypted)
Type: null or signed integer
Default:
nullDeclared by:
services.mysql.enable¶
Whether to enable the MySQL server.
Type: boolean
Default:
falseDeclared by:
services.mysql.package¶
Which MySQL derivation to use. MariaDB packages are supported too.
Type: package
Example:
pkgs.mysqlDeclared by:
services.mysql.bind¶
Address to bind to. The default is to bind to all addresses
Type: null or string
Default:
nullExample:
0.0.0.0Declared by:
services.mysql.dataDir¶
Location where MySQL stores its table files
Type: path
Example:
"/var/lib/mysql"Declared by:
services.mysql.ensureDatabases¶
Ensures that the specified databases exist. This option will never delete existing databases, especially not when the value of this option is changed. This means that databases created once through this option or otherwise have to be removed manually.
Type: list of strings
Default: ``[
]``
Example:
[ "nextcloud" "matomo" ]Declared by:
services.mysql.ensureUsers¶
Ensures that the specified users exist and have at least the ensured permissions. The MySQL users will be identified using Unix socket authentication. This authenticates the Unix user with the same name only, and that without the need for a password. This option will never delete existing users or remove permissions, especially not when the value of this option is changed. This means that users created and permissions assigned once through this option or otherwise have to be removed manually.
Type: list of submodules
Default: ``[
]``
Example:
[ { name = "nextcloud"; ensurePermissions = { "nextcloud.*" = "ALL PRIVILEGES"; }; } { name = "backup"; ensurePermissions = { "*.*" = "SELECT, LOCK TABLES"; }; } ]Declared by:
services.mysql.ensureUsers.*.ensurePermissions¶
Permissions to ensure for the user, specified as attribute set. The attribute names specify the database and tables to grant the permissions for, separated by a dot. You may use wildcards here. The attribute values specfiy the permissions to grant. You may specify one or multiple comma-separated SQL privileges here.
For more information on how to specify the target and on which privileges exist, see the`GRANT syntax <https://mariadb.com/kb/en/library/grant/>`_. The attributes are used as GRANT ${attrName} ON ${attrValue}.
Type: attribute set of strings
Default: ``{
}``
Example:
{ "database.*" = "ALL PRIVILEGES"; "*.*" = "SELECT, LOCK TABLES"; }Declared by:
services.mysql.ensureUsers.*.name¶
Name of the user to ensure.
Type: string
Declared by:
services.mysql.extraOptions¶
Provide extra options to the MySQL configuration file.
Please note, that these options are added to the``[mysqld]`` section so you don’t need to explicitly state it again.
Type: strings concatenated with “\n”
Default:
""Example:
'' key_buffer_size = 6G table_cache = 1600 log-error = /var/log/mysql_err.log ''Declared by:
services.mysql.initialDatabases¶
List of database names and their initial schemas that should be used to create databases on the first startup of MySQL. The schema attribute is optional: If not specified, an empty database is created.
Type: list of submodules
Default: ``[
]``
Example: ``[
{ name = “foodatabase”; schema = ./foodatabase.sql; }
{ name = “bardatabase”; }
]``
Declared by:
services.mysql.initialDatabases.*.name¶
The name of the database to create.
Type: string
Declared by:
services.mysql.initialDatabases.*.schema¶
The initial schema of the database; if null (the default), an empty database is created.
Type: null or path
Default:
nullDeclared by:
services.mysql.initialScript¶
A file containing SQL statements to be executed on the first startup. Can be used for granting certain permissions on the database
Type: null or path
Default:
nullDeclared by:
services.mysql.port¶
Port of MySQL
Type: signed integer
Default:
3306Declared by:
services.mysql.replication.masterHost¶
Hostname of the MySQL master server
Type: string
Declared by:
services.mysql.replication.masterPassword¶
Password of the MySQL replication user
Type: string
Declared by:
services.mysql.replication.masterPort¶
Port number on which the MySQL master server runs
Type: signed integer
Default:
3306Declared by:
services.mysql.replication.masterUser¶
Username of the MySQL replication user
Type: string
Declared by:
services.mysql.replication.role¶
Role of the MySQL server instance.
Type: one of “master”, “slave”, “none”
Default:
"none"Declared by:
services.mysql.replication.serverId¶
Id of the MySQL server instance. This number must be unique for each instance
Type: signed integer
Default:
1Declared by:
services.mysql.replication.slaveHost¶
Hostname of the MySQL slave server
Type: string
Declared by:
services.mysql.user¶
User account under which MySQL runs
Type: string
Default:
"mysql"Declared by:
services.mysqlBackup.enable¶
Whether to enable MySQL backups.
Type: unspecified
Default:
falseDeclared by:
services.mysqlBackup.calendar¶
Configured when to run the backup service systemd unit (DayOfWeek Year-Month-Day Hour:Minute:Second).
Type: string
Default:
"01:15:00"Declared by:
services.mysqlBackup.databases¶
services.mysqlBackup.location¶
Location to put the gzipped MySQL database dumps.
Type: unspecified
Default:
"/var/backup/mysql"Declared by:
services.mysqlBackup.singleTransaction¶
Whether to create database dump in a single transaction
Type: unspecified
Default:
falseDeclared by:
services.mysqlBackup.user¶
User to be used to perform backup.
Type: unspecified
Default:
"mysqlbackup"Declared by:
services.nagios.enable¶
Whether to enable Nagios to monitor your system or network..
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nagios.enableWebInterface¶
Whether to enable the Nagios web interface. You should also enable Apache ().
Type: boolean
Default:
falseDeclared by:
services.nagios.cgiConfigFile¶
Derivation for the configuration file of Nagios CGI scripts that can be used in web servers for running the Nagios web interface.
Type: package
Default:
"nagiosCGICfgFile"Declared by:
services.nagios.extraConfig¶
Configuration to add to /etc/nagios.cfg
Type: attribute set of strings
Default: ``{
}``
Example:
{ debug_file = "/var/log/nagios/debug.log"; debug_level = "-1"; }Declared by:
services.nagios.mainConfigFile¶
If non-null, overrides the main configuration file of Nagios.
Type: null or package
Default:
nullDeclared by:
services.nagios.objectDefs¶
A list of Nagios object configuration files that must define the hosts, host groups, services and contacts for the network that you want Nagios to monitor.
Type: list of paths
Example:
[ ./objects.cfg ]Declared by:
services.nagios.plugins¶
Packages to be added to the Nagios PATH. Typically used to add plugins, but can be anything.
Type: list of packages
Default:
"\[pkgs.nagiosPluginsOfficial pkgs.ssmtp pkgs.mailutils]"Declared by:
services.nagios.validateConfig¶
if true, the syntax of the nagios configuration file is checked at build time
Type: boolean
Default:
falseDeclared by:
services.nagios.virtualHost¶
Apache configuration can be done by adapting . See services.httpd.virtualHosts for further information.
Type: submodule
Example:
{ hostName = "example.org"; adminAddr = "webmaster@example.org"; enableSSL = true; sslServerCert = "/var/lib/acme/example.org/full.pem"; sslServerKey = "/var/lib/acme/example.org/key.pem"; }Declared by:
services.nagios.virtualHost.enableACME¶
Whether to ask Let’s Encrypt to sign a certificate for this vhost. Alternately, you can use an existing certificate through .
Type: boolean
Default:
falseDeclared by:
services.nagios.virtualHost.enableUserDir¶
Whether to enable serving
~/public_htmlas``/~*username*``.Type: boolean
Default:
falseDeclared by:
services.nagios.virtualHost.acmeRoot¶
Directory for the acme challenge which is PUBLIC, don’t put certs or keys in here
Type: string
Default:
"/var/lib/acme/acme-challenges"Declared by:
services.nagios.virtualHost.addSSL¶
Whether to enable HTTPS in addition to plain HTTP. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443).
Type: boolean
Default:
falseDeclared by:
services.nagios.virtualHost.adminAddr¶
E-mail address of the server administrator.
Type: null or string
Default:
nullExample:
"admin@example.org"Declared by:
services.nagios.virtualHost.documentRoot¶
The path of Apache’s document root directory. If left undefined, an empty directory in the Nix store will be used as root.
Type: null or path
Default:
nullExample:
"/data/webserver/docs"Declared by:
services.nagios.virtualHost.extraConfig¶
These lines go to httpd.conf verbatim. They will go after directories and directory aliases defined by default.
Type: strings concatenated with “\n”
Default:
""Example:
'' <Directory /home> Options FollowSymlinks AllowOverride All </Directory> ''Declared by:
services.nagios.virtualHost.forceSSL¶
Whether to add a separate nginx server block that permanently redirects (301) all plain HTTP traffic to HTTPS. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443), where the non-SSL listens are used for the redirect vhosts.
Type: boolean
Default:
falseDeclared by:
services.nagios.virtualHost.globalRedirect¶
If set, all requests for this host are redirected permanently to the given URL.
Type: null or string
Default:
nullExample:
"http://newserver.example.org/"Declared by:
services.nagios.virtualHost.hostName¶
Canonical hostname for the server.
Type: string
Default:
"‹name›"Declared by:
services.nagios.virtualHost.http2¶
Whether to enable HTTP 2. HTTP/2 is supported in all multi-processing modules that come with httpd. However, if you use the prefork mpm, there will be severe restrictions. Refer to ` <https://httpd.apache.org/docs/2.4/howto/http2.html#mpm-config>`_ for details.
Type: boolean
Default:
falseDeclared by:
services.nagios.virtualHost.listen¶
services.nagios.virtualHost.listen.*.ip¶
IP to listen on. 0.0.0.0 for IPv4 only, * for all.
Type: string
Default:
"\*"Declared by:
services.nagios.virtualHost.listen.*.port¶
Port to listen on
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Declared by:
services.nagios.virtualHost.listen.*.ssl¶
Whether to enable SSL (https) support.
Type: boolean
Default:
falseDeclared by:
services.nagios.virtualHost.locations¶
Declarative location config. See ` <https://httpd.apache.org/docs/2.4/mod/core.html#location>`_ for details.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ "/" = { proxyPass = "http://localhost:3000"; }; "/foo/bar.png" = { alias = "/home/eelco/some-file.png"; }; };Declared by:
services.nagios.virtualHost.locations.<name>.alias¶
Alias directory for requests. See ` <https://httpd.apache.org/docs/2.4/mod/mod_alias.html#alias>`_.
Type: null or path
Default:
nullExample:
"/your/alias/directory"Declared by:
services.nagios.virtualHost.locations.<name>.extraConfig¶
These lines go to the end of the location verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.nagios.virtualHost.locations.<name>.index¶
Adds DirectoryIndex directive. See ` <https://httpd.apache.org/docs/2.4/mod/mod_dir.html#directoryindex>`_.
Type: null or string
Default:
nullExample:
"index.php index.html"Declared by:
services.nagios.virtualHost.locations.<name>.priority¶
Order of this location block in relation to the others in the vhost. The semantics are the same as with `lib.mkOrder`. Smaller values have a greater priority.
Type: signed integer
Default:
1000Declared by:
services.nagios.virtualHost.locations.<name>.proxyPass¶
Sets up a simple reverse proxy as described by ` <https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html#simple>`_.
Type: null or string
Default:
nullExample:
"http://www.example.org/"Declared by:
services.nagios.virtualHost.logFormat¶
Log format for Apache’s log files. Possible values are: combined, common, referer, agent.
Type: string
Default:
"common"Example:
"combined"Declared by:
services.nagios.virtualHost.onlySSL¶
Whether to enable HTTPS and reject plain HTTP connections. This will set defaults for
listento listen on all interfaces on port 443.Type: boolean
Default:
falseDeclared by:
services.nagios.virtualHost.robotsEntries¶
Specification of pages to be ignored by web crawlers. See ` <http://www.robotstxt.org/>`_ for details.
Type: strings concatenated with “\n”
Default:
""Example:
"Disallow: /foo/"Declared by:
services.nagios.virtualHost.servedDirs¶
services.nagios.virtualHost.servedFiles¶
This option provides a simple way to serve individual, static files.
Note
This option has been deprecated and will be removed in a future version of NixOS. You can achieve the same result by making use of the
locations.<name>.aliasoption.Type: list of attribute sets
Default: ``[
]``
Example: ``[
{ file = “/home/eelco/some-file.png”; urlPath = “/foo/bar.png”; }
]``
Declared by:
services.nagios.virtualHost.serverAliases¶
Additional names of virtual hosts served by this virtual host configuration.
Type: list of strings
Default: ``[
]``
Example:
[ "www.example.org" "www.example.org:8080" "example.org" ]Declared by:
services.nagios.virtualHost.sslServerCert¶
Path to server SSL certificate.
Type: path
Example:
"/var/host.cert"Declared by:
services.nagios.virtualHost.sslServerChain¶
Path to server SSL chain file.
Type: null or path
Default:
nullExample:
"/var/ca.pem"Declared by:
services.nagios.virtualHost.sslServerKey¶
Path to server SSL certificate key.
Type: path
Example:
"/var/host.key"Declared by:
services.nagios.virtualHost.useACMEHost¶
A host of an existing Let’s Encrypt certificate to use. This is useful if you have many subdomains and want to avoid hitting the`rate limit <https://letsencrypt.org/docs/rate-limits/>`_. Alternately, you can generate a certificate through .*Note that this option does not create any certificates, nor it does add subdomains to existing ones – you will need to create them manually using security.acme.certs.*
Type: null or string
Default:
nullDeclared by:
services.namecoind.enable¶
Whether to enable namecoind, Namecoin client.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.namecoind.extraNodes¶
List of additional peer IP addresses to connect to.
Type: list of strings
Default: ``[
]``
Declared by:
services.namecoind.generate¶
Whether to generate (mine) Namecoins.
Type: boolean
Default:
falseDeclared by:
services.namecoind.rpc.address¶
IP address the RPC server will bind to.
Type: string
Default:
"0.0.0.0"Declared by:
services.namecoind.rpc.allowFrom¶
List of IP address ranges allowed to use the RPC API. Wiledcards (*) can be user to specify a range.
Type: list of strings
Default:
[ "127.0.0.1" ]Declared by:
services.namecoind.rpc.certificate¶
Certificate file for securing RPC connections.
Type: null or path
Default:
nullExample:
"/var/lib/namecoind/server.cert"Declared by:
services.namecoind.rpc.key¶
Key file for securing RPC connections.
Type: null or path
Default:
nullExample:
"/var/lib/namecoind/server.pem"Declared by:
services.namecoind.rpc.password¶
Password for RPC connections.
Type: string
Default:
nullDeclared by:
services.namecoind.rpc.port¶
Port the RPC server will bind to.
Type: signed integer
Default:
8332Declared by:
services.namecoind.rpc.user¶
User name for RPC connections.
Type: null or string
Default:
nullDeclared by:
services.namecoind.trustedNodes¶
List of the only peer IP addresses to connect to. If specified no other connection will be made.
Type: list of strings
Default: ``[
]``
Declared by:
services.namecoind.wallet¶
Wallet file. The ownership of the file has to be namecoin:namecoin, and the permissions must be 0640.
Type: path
Default:
"/var/lib/namecoind/wallet.dat"Declared by:
services.ndppd.enable¶
Whether to enable daemon that proxies NDP (Neighbor Discovery Protocol) messages between interfaces.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.ndppd.configFile¶
Path to configuration file.
Type: null or path
Default:
nullDeclared by:
services.ndppd.interface¶
Interface which is on link-level with router. (Legacy option, use services.ndppd.proxies.<interface>.rules.<network> instead)
Type: null or string
Default:
nullExample:
"eth0"Declared by:
services.ndppd.network¶
Network that we proxy. (Legacy option, use services.ndppd.proxies.<interface>.rules.<network> instead)
Type: null or string
Default:
nullExample:
"1111::/64"Declared by:
services.ndppd.proxies¶
services.ndppd.proxies.<name>.interface¶
Listen for any Neighbor Solicitation messages on this interface, and respond to them according to a set of rules. Defaults to the name of the attrset.
Type: null or string
Default:
nullDeclared by:
services.ndppd.proxies.<name>.router¶
Turns on or off the router flag for Neighbor Advertisement Messages.
Type: boolean
Default:
trueDeclared by:
services.ndppd.proxies.<name>.rules¶
This is a rule that the target address is to match against. If no netmask is provided, /128 is assumed. You may have several rule sections, and the addresses may or may not overlap.
Type: attribute set of submodules
Default: ``{
}``
Declared by:
services.ndppd.proxies.<name>.rules.<name>.interface¶
Interface to use when method is iface.
Type: null or string
Default:
nullDeclared by:
services.ndppd.proxies.<name>.rules.<name>.method¶
static: Immediately answer any Neighbor Solicitation Messages (if they match the IP rule). iface: Forward the Neighbor Solicitation Message through the specified interface and only respond if a matching Neighbor Advertisement Message is received. auto: Same as iface, but instead of manually specifying the outgoing interface, check for a matching route in /proc/net/ipv6_route.
Type: one of “static”, “iface”, “auto”
Default:
"auto"Declared by:
services.ndppd.proxies.<name>.rules.<name>.network¶
This is the target address is to match against. If no netmask is provided, /128 is assumed. The addresses of serveral rules may or may not overlap. Defaults to the name of the attrset.
Type: null or string
Default:
nullDeclared by:
services.ndppd.proxies.<name>.timeout¶
Controls how long to wait for a Neighbor Advertisment Message before invalidating the entry, in milliseconds.
Type: signed integer
Default:
500Declared by:
services.ndppd.proxies.<name>.ttl¶
Controls how long a valid or invalid entry remains in the cache, in milliseconds.
Type: signed integer
Default:
30000Declared by:
services.ndppd.routeTTL¶
This tells ‘ndppd’ how often to reload the route file /proc/net/ipv6_route, in milliseconds.
Type: signed integer
Default:
30000Declared by:
services.neard.enable¶
Whether to enable neard, NFC daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.neo4j.enable¶
Whether to enable Neo4j Community Edition.
Type: boolean
Default:
falseDeclared by:
services.neo4j.package¶
Neo4j package to use.
Type: package
Default:
"pkgs.neo4j"Declared by:
services.neo4j.allowUpgrade¶
Allow upgrade of Neo4j database files from an older version.
Type: boolean
Default:
falseDeclared by:
services.neo4j.bolt.enable¶
Enable the BOLT connector for Neo4j. Setting this option to``false`` will stop Neo4j from listening for incoming connections on the BOLT port (7687 by default).
Type: boolean
Default:
trueDeclared by:
services.neo4j.bolt.listenAddress¶
Neo4j listen address for BOLT traffic. The listen address is expressed in the format
<ip-address>:<port-number>.Type: string
Default:
":7687"Declared by:
services.neo4j.bolt.sslPolicy¶
Neo4j SSL policy for BOLT traffic.
The legacy policy is a special policy which is not defined in the policy configuration section, but rather derives from and associated files (by default:
neo4j.keyand:file:neo4j.cert). Its use will be deprecated.Note: This connector must be configured to support/require SSL/TLS for the legacy policy to actually be utilized. See.
Type: string
Default:
"legacy"Declared by:
services.neo4j.bolt.tlsLevel¶
SSL/TSL requirement level for BOLT traffic.
Type: one of “REQUIRED”, “OPTIONAL”, “DISABLED”
Default:
"OPTIONAL"Declared by:
services.neo4j.constrainLoadCsv¶
Sets the root directory for file URLs used with the Cypher``LOAD CSV`` clause to be that defined by. It restricts access to only those files within that directory and its subdirectories.
Setting this option to
falseintroduces possible security problems.Type: boolean
Default:
trueDeclared by:
services.neo4j.defaultListenAddress¶
Default network interface to listen for incoming connections. To listen for connections on all interfaces, use “0.0.0.0”.
Specifies the default IP address and address part of connector specific options. To bind specific connectors to a specific network interfaces, specify the entire option for that connector.
Type: string
Default:
"127.0.0.1"Declared by:
services.neo4j.directories.certificates¶
Directory for storing certificates to be used by Neo4j for TLS connections.
When setting this directory to something other than its default, ensure the directory’s existence, and that read/write permissions are given to the Neo4j daemon user
neo4j.Note that changing this directory from its default will prevent the directory structure required for each SSL policy from being automatically generated. A policy’s directory structure as defined by its , and must then be setup manually. The existence of these directories is mandatory, as well as the presence of the certificate file and the private key. Ensure the correct permissions are set on these directories and files.
Type: path
Default:
"/var/lib/neo4j/certificates"Declared by:
services.neo4j.directories.data¶
Path of the data directory. You must not configure more than one Neo4j installation to use the same data directory.
When setting this directory to something other than its default, ensure the directory’s existence, and that read/write permissions are given to the Neo4j daemon user
neo4j.Type: path
Default:
"/var/lib/neo4j/data"Declared by:
services.neo4j.directories.home¶
Path of the Neo4j home directory. Other default directories are subdirectories of this path. This directory will be created if non-existent, and its ownership will be chown to the Neo4j daemon user
neo4j.Type: path
Default:
"/var/lib/neo4j"Declared by:
services.neo4j.directories.imports¶
The root directory for file URLs used with the Cypher``LOAD CSV`` clause. Only meaningful when is set to``true``.
When setting this directory to something other than its default, ensure the directory’s existence, and that read permission is given to the Neo4j daemon user
neo4j.Type: path
Default:
"/var/lib/neo4j/import"Declared by:
services.neo4j.directories.plugins¶
Path of the database plugin directory. Compiled Java JAR files that contain database procedures will be loaded if they are placed in this directory.
When setting this directory to something other than its default, ensure the directory’s existence, and that read permission is given to the Neo4j daemon user
neo4j.Type: path
Default:
"/var/lib/neo4j/plugins"Declared by:
services.neo4j.extraServerConfig¶
Extra configuration for Neo4j Community server. Refer to the`complete reference <https://neo4j.com/docs/operations-manual/current/reference/configuration-settings/>`_ of Neo4j configuration settings.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.neo4j.http.enable¶
The HTTP connector is required for Neo4j, and cannot be disabled. Setting this option to
falsewill force the HTTP connector’s to the loopback interface to prevent connection of remote clients. To prevent all clients from connecting, block the HTTP port (7474 by default) by firewall.Type: boolean
Default:
trueDeclared by:
services.neo4j.http.listenAddress¶
Neo4j listen address for HTTP traffic. The listen address is expressed in the format
<ip-address>:<port-number>.Type: string
Default:
":7474"Declared by:
services.neo4j.https.enable¶
Enable the HTTPS connector for Neo4j. Setting this option to``false`` will stop Neo4j from listening for incoming connections on the HTTPS port (7473 by default).
Type: boolean
Default:
trueDeclared by:
services.neo4j.https.listenAddress¶
Neo4j listen address for HTTPS traffic. The listen address is expressed in the format
<ip-address>:<port-number>.Type: string
Default:
":7473"Declared by:
services.neo4j.https.sslPolicy¶
Neo4j SSL policy for HTTPS traffic.
The legacy policy is a special policy which is not defined in the policy configuration section, but rather derives from and associated files (by default:
neo4j.keyand:file:neo4j.cert). Its use will be deprecated.Type: string
Default:
"legacy"Declared by:
services.neo4j.readOnly¶
Only allow read operations from this Neo4j instance.
Type: boolean
Default:
falseDeclared by:
services.neo4j.shell.enable¶
Enable a remote shell server which Neo4j Shell clients can log in to. Only applicable to neo4j-shell.
Type: boolean
Default:
falseDeclared by:
services.neo4j.ssl.policies¶
Defines the SSL policies for use with Neo4j connectors. Each attribute of this set defines a policy, with the attribute name defining the name of the policy and its namespace. Refer to the operations manual section on Neo4j’s`SSL Framework <https://neo4j.com/docs/operations-manual/current/security/ssl-framework/>`_ for further details.
Type: attribute set of submodules
Default: ``{
}``
Declared by:
services.neo4j.ssl.policies.<name>.allowKeyGeneration¶
Allows the generation of a private key and associated self-signed certificate. Only performed when both objects cannot be found for this policy. It is recommended to turn this off again after keys have been generated.
The public certificate is required to be duplicated to the directory holding trusted certificates as defined by the option.
Keys should in general be generated and distributed offline by a trusted certificate authority and not by utilizing this mode.
Type: boolean
Default:
falseDeclared by:
services.neo4j.ssl.policies.<name>.baseDirectory¶
The mandatory base directory for cryptographic objects of this policy. This path is only automatically generated when this option as well as are left at their default. Ensure read/write permissions are given to the Neo4j daemon user
neo4j.It is also possible to override each individual configuration with absolute paths. See the and policy options.
Type: path
Default:
"/var/lib/neo4j/certificates/‹name›"Declared by:
services.neo4j.ssl.policies.<name>.ciphers¶
Restrict the allowed ciphers of this policy to those defined here. The default ciphers are those of the JVM platform.
Type: null or list of strings
Default:
nullDeclared by:
services.neo4j.ssl.policies.<name>.clientAuth¶
The client authentication stance for this policy.
Type: one of “NONE”, “OPTIONAL”, “REQUIRE”
Default:
"REQUIRE"Declared by:
services.neo4j.ssl.policies.<name>.privateKey¶
The name of private PKCS #8 key file for this policy to be found in the , or the absolute path to the key file. It is mandatory that a key can be found or generated.
Type: string
Default:
"private.key"Declared by:
services.neo4j.ssl.policies.<name>.publicCertificate¶
The name of public X.509 certificate (chain) file in PEM format for this policy to be found in the , or the absolute path to the certificate file. It is mandatory that a certificate can be found or generated.
The public certificate is required to be duplicated to the directory holding trusted certificates as defined by the option.
Type: string
Default:
"public.crt"Declared by:
services.neo4j.ssl.policies.<name>.revokedDir¶
Path to directory of CRLs (Certificate Revocation Lists) in PEM format. Must be an absolute path. The existence of this directory is mandatory and will need to be created manually when: setting this option to something other than its default; setting either this policy’s or to something other than their default. Ensure read/write permissions are given to the Neo4j daemon user
neo4j.Type: path
Default:
"/var/lib/neo4j/certificates/‹name›/revoked"Declared by:
services.neo4j.ssl.policies.<name>.tlsVersions¶
Restrict the TLS protocol versions of this policy to those defined here.
Type: list of strings
Default:
[ "TLSv1.2" ]Declared by:
services.neo4j.ssl.policies.<name>.trustAll¶
Makes this policy trust all remote parties. Enabling this is not recommended and the policy’s trusted directory will be ignored. Use of this mode is discouraged. It would offer encryption but no security.
Type: boolean
Default:
falseDeclared by:
services.neo4j.ssl.policies.<name>.trustedDir¶
Path to directory of X.509 certificates in PEM format for trusted parties. Must be an absolute path. The existence of this directory is mandatory and will need to be created manually when: setting this option to something other than its default; setting either this policy’s or to something other than their default. Ensure read/write permissions are given to the Neo4j daemon user
neo4j.The public certificate as defined by is required to be duplicated to this directory.
Type: path
Default:
"/var/lib/neo4j/certificates/‹name›/trusted"Declared by:
services.neo4j.udc.enable¶
Enable the Usage Data Collector which Neo4j uses to collect usage data. Refer to the operations manual section on the`Usage Data Collector <https://neo4j.com/docs/operations-manual/current/configuration/usage-data-collector/>`_ for more information.
Type: boolean
Default:
falseDeclared by:
services.neo4j.workerCount¶
Number of Neo4j worker threads, where the default of``0`` indicates a worker count equal to the number of available processors.
Type: integer between 0 and 44738 (both inclusive)
Default:
0Declared by:
services.netatalk.enable¶
Whether to enable the Netatalk AFP fileserver.
Type: unspecified
Default:
falseDeclared by:
services.netatalk.extmap¶
File name extension mappings. See
man extmap.conffor more information.Type: strings concatenated with “\n”
Default:
""Declared by:
services.netatalk.extraConfig¶
Lines of configuration to add to the
[Global]section. Seeman apf.conffor more information.Type: strings concatenated with “\n”
Default:
""Example:
"uam list = uams_guest.so"Declared by:
services.netatalk.homes.enable¶
Enable sharing of the UNIX server user home directories.
Type: unspecified
Default:
falseDeclared by:
services.netatalk.homes.basedirRegex¶
Regex which matches the parent directory of the user homes.
Type: unspecified
Example:
"/home"Declared by:
services.netatalk.homes.extraConfig¶
Lines of configuration to add to the
[Homes]section. Seeman apf.conffor more information.Type: strings concatenated with “\n”
Default:
""Declared by:
services.netatalk.homes.path¶
Share not the whole user home but this subdirectory path.
Type: unspecified
Default:
""Example:
"afp-data"Declared by:
services.netatalk.port¶
TCP port to be used for AFP.
Type: unspecified
Default:
548Declared by:
services.netatalk.volumes¶
Set of AFP volumes to export. See
man apf.conffor more information.Type: attribute set of attribute set of unspecifiedss
Default: ``{
}``
Example:
{ srv = { hosts allow = "10.1.0.0/16 10.2.1.100 2001:0db8:1234::/48"; path = "/srv"; read only = true; } ; }Declared by:
services.netdata.enable¶
Whether to enable netdata.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.netdata.config¶
netdata.conf configuration as nix attributes. cannot be combined with configText.
Type: attribute set of attribute sets
Default: ``{
}``
Example:
global = { "debug log" = "syslog"; "access log" = "syslog"; "error log" = "syslog"; };Declared by:
services.netdata.configText¶
Verbatim netdata.conf, cannot be combined with config.
Type: null or strings concatenated with “\n”
Default:
nullExample:
'' [global] debug log = syslog access log = syslog error log = syslog ''Declared by:
services.netdata.extraPluginPaths¶
Extra paths to add to the netdata global “plugins directory” option. Useful for when you want to include your own collection scripts.
Details about writing a custom netdata plugin are available at:` <https://docs.netdata.cloud/collectors/plugins.d/>`_
Cannot be combined with configText.
Type: list of paths
Default: ``[
]``
Example:
[ "/path/to/plugins.d" ]Declared by:
services.netdata.group¶
Group under which netdata runs.
Type: string
Default:
"netdata"Declared by:
services.netdata.python.enable¶
Whether to enable python-based plugins
Type: boolean
Default:
trueDeclared by:
services.netdata.python.extraPackages¶
Extra python packages available at runtime to enable additional python plugins.
Type: unspecified
Default:
"ps: \[]"Example:
ps: [ ps.psycopg2 ps.docker ps.dnspython ]Declared by:
services.netdata.user¶
User account under which netdata runs.
Type: string
Default:
"netdata"Declared by:
services.networking.websockify.enable¶
Whether to enable websockify to forward websocket connections to TCP connections.
Type: boolean
Default:
falseDeclared by:
services.networking.websockify.portMap¶
services.networking.websockify.sslCert¶
Path to the SSL certificate.
Type: path
Declared by:
services.networking.websockify.sslKey¶
Path to the SSL key.
Type: path
Default:
"config.services.networking.websockify.sslCert"Declared by:
services.nextcloud.enable¶
Whether to enable nextcloud.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nextcloud.autoUpdateApps.enable¶
Run regular auto update of all apps installed from the nextcloud app store.
Type: boolean
Default:
falseDeclared by:
services.nextcloud.autoUpdateApps.startAt¶
When to run the update. See `systemd.services.<name>.startAt`.
Type: string or list of strings
Default:
"05:00:00"Example:
"Sun 14:00:00"Declared by:
services.nextcloud.caching.apcu¶
Whether to load the APCu module into PHP.
Type: boolean
Default:
trueDeclared by:
services.nextcloud.caching.memcached¶
Whether to load the Memcached module into PHP. You still need to enable Memcached in your config.php. See https://docs.nextcloud.com/server/14/admin_manual/configuration_server/caching_configuration.html
Type: boolean
Default:
falseDeclared by:
services.nextcloud.caching.redis¶
Whether to load the Redis module into PHP. You still need to enable Redis in your config.php. See https://docs.nextcloud.com/server/14/admin_manual/configuration_server/caching_configuration.html
Type: boolean
Default:
falseDeclared by:
services.nextcloud.config.adminpass¶
Admin password. Use
adminpassFileto avoid this being world-readable in the/nix/store.Type: null or string
Default:
nullDeclared by:
services.nextcloud.config.adminpassFile¶
The full path to a file that contains the admin’s password.
Type: null or string
Default:
nullDeclared by:
services.nextcloud.config.adminuser¶
Admin username.
Type: string
Default:
"root"Declared by:
services.nextcloud.config.dbhost¶
Database host.
Note: for using Unix authentication with PostgreSQL, this should be set to
/run/postgresql.Type: null or string
Default:
"localhost"Declared by:
services.nextcloud.config.dbname¶
Database name.
Type: null or string
Default:
"nextcloud"Declared by:
services.nextcloud.config.dbpass¶
Database password. Use
dbpassFileto avoid this being world-readable in the/nix/store.Type: null or string
Default:
nullDeclared by:
services.nextcloud.config.dbpassFile¶
The full path to a file that contains the database password.
Type: null or string
Default:
nullDeclared by:
services.nextcloud.config.dbport¶
Database port.
Type: null or signed integer or string
Default:
nullDeclared by:
services.nextcloud.config.dbtableprefix¶
Table prefix in Nextcloud database.
Type: null or string
Default:
nullDeclared by:
services.nextcloud.config.dbtype¶
Database type.
Type: one of “sqlite”, “pgsql”, “mysql”
Default:
"sqlite"Declared by:
services.nextcloud.config.dbuser¶
Database user.
Type: null or string
Default:
"nextcloud"Declared by:
services.nextcloud.config.extraTrustedDomains¶
Trusted domains, from which the nextcloud installation will be acessible. You don’t need to add``services.nextcloud.hostname`` here.
Type: list of strings
Default: ``[
]``
Declared by:
services.nextcloud.config.overwriteProtocol¶
Force Nextcloud to always use HTTPS i.e. for link generation. Nextcloud uses the currently used protocol by default, but when behind a reverse-proxy, it may use
httpfor everything although Nextcloud may be served via HTTPS.Type: null or one of “http”, “https”
Default:
nullExample:
"https"Declared by:
services.nextcloud.config.trustedProxies¶
Trusted proxies, to provide if the nextcloud installation is being proxied to secure against e.g. spoofing.
Type: list of strings
Default: ``[
]``
Declared by:
services.nextcloud.home¶
Storage path of nextcloud.
Type: string
Default:
"/var/lib/nextcloud"Declared by:
services.nextcloud.hostName¶
FQDN for the nextcloud instance.
Type: string
Declared by:
services.nextcloud.https¶
Use https for generated links.
Type: boolean
Default:
falseDeclared by:
services.nextcloud.logLevel¶
Log level value between 0 (DEBUG) and 4 (FATAL).
Type: integer between 0 and 4 (both inclusive)
Default:
2Declared by:
services.nextcloud.maxUploadSize¶
Defines the upload limit for files. This changes the relevant options in php.ini and nginx if enabled.
Type: string
Default:
"512M"Declared by:
services.nextcloud.nginx.enable¶
Whether to enable nginx virtual host management. Further nginx configuration can be done by adapting
services.nginx.virtualHosts.<name>. See services.nginx.virtualHosts for further information.Type: boolean
Default:
falseDeclared by:
services.nextcloud.phpOptions¶
Options for PHP’s php.ini file for nextcloud.
Type: attribute set of strings
Default:
{ catch_workers_output = "yes"; display_errors = "stderr"; error_reporting = "E_ALL & ~E_DEPRECATED & ~E_STRICT"; expose_php = "Off"; opcache.enable_cli = "1"; opcache.fast_shutdown = "1"; opcache.interned_strings_buffer = "8"; opcache.max_accelerated_files = "10000"; opcache.memory_consumption = "128"; opcache.revalidate_freq = "1"; openssl.cafile = "/etc/ssl/certs/ca-certificates.crt"; short_open_tag = "Off"; }Declared by:
services.nextcloud.poolConfig¶
Options for nextcloud’s PHP pool. See the documentation on
php-fpm.conffor details on configuration directives.Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.nextcloud.poolSettings¶
Options for nextcloud’s PHP pool. See the documentation on
php-fpm.conffor details on configuration directives.Type: attribute set of string or signed integer or booleans
Default:
{ pm = "dynamic"; pm.max_children = "32"; pm.max_requests = "500"; pm.max_spare_servers = "4"; pm.min_spare_servers = "2"; pm.start_servers = "2"; }Declared by:
services.nextcloud.skeletonDirectory¶
The directory where the skeleton files are located. These files will be copied to the data directory of new users. Leave empty to not copy any skeleton files.
Type: string
Default:
""Declared by:
services.nextcloud.webfinger¶
Enable this option if you plan on using the webfinger plugin. The appropriate nginx rewrite rules will be added to your configuration.
Type: boolean
Default:
falseDeclared by:
services.nexus.enable¶
Whether to enable Sonatype Nexus3 OSS service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nexus.package¶
Package which runs Nexus3
Type: package
Default:
*(build of nexus-3.20.1-01)*Declared by:
services.nexus.group¶
Group which runs Nexus3.
Type: string
Default:
"nexus"Declared by:
services.nexus.home¶
Home directory of the Nexus3 instance.
Type: string
Default:
"/var/lib/sonatype-work"Declared by:
services.nexus.jvmOpts¶
Options for the JVM written to `nexus.jvmopts`. Please refer to the docs (https://help.sonatype.com/repomanager3/installation/configuring-the-runtime-environment) for further information.
Type: strings concatenated with “\n”
Default:
'' -Xms1200M -Xmx1200M -XX:MaxDirectMemorySize=2G -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -XX:+LogVMOutput -XX:LogFile=/var/lib/sonatype-work/nexus3/log/jvm.log -XX:-OmitStackTraceInFastThrow -Djava.net.preferIPv4Stack=true -Dkaraf.home=''${pkgs.nexus} -Dkaraf.base=''${pkgs.nexus} -Dkaraf.etc=''${pkgs.nexus}/etc/karaf -Djava.util.logging.config.file=''${pkgs.nexus}/etc/karaf/java.util.logging.properties -Dkaraf.data=/var/lib/sonatype-work/nexus3 -Djava.io.tmpdir=/var/lib/sonatype-work/nexus3/tmp -Dkaraf.startLocalConsole=false -Djava.endorsed.dirs=''${pkgs.nexus}/lib/endorsed ''Declared by:
services.nexus.listenAddress¶
Address to listen on.
Type: string
Default:
"127.0.0.1"Declared by:
services.nexus.listenPort¶
Port to listen on.
Type: signed integer
Default:
8081Declared by:
services.nexus.user¶
User which runs Nexus3.
Type: string
Default:
"nexus"Declared by:
services.nfs.extraConfig¶
Extra nfs-utils configuration.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.nfs.server.enable¶
Whether to enable the kernel’s NFS server.
Type: boolean
Default:
falseDeclared by:
services.nfs.server.createMountPoints¶
Whether to create the mount points in the exports file at startup time.
Type: boolean
Default:
falseDeclared by:
services.nfs.server.exports¶
Contents of the /etc/exports file. Seeexports5 for the format.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.nfs.server.extraNfsdConfig¶
Extra configuration options for the [nfsd] section of /etc/nfs.conf.
Type: string
Default:
""Declared by:
services.nfs.server.hostName¶
Hostname or address on which NFS requests will be accepted. Default is all. See the option innfsd8.
Type: null or string
Default:
nullDeclared by:
services.nfs.server.lockdPort¶
Use a fixed port for the NFS lock manager kernel module (
lockd/nlockmgr). This is useful if the NFS server is behind a firewall.Type: null or signed integer
Default:
nullExample:
4001Declared by:
services.nfs.server.mountdPort¶
Use fixed port for rpc.mountd, useful if server is behind firewall.
Type: null or signed integer
Default:
nullExample:
4002Declared by:
services.nfs.server.nproc¶
Number of NFS server threads. Defaults to the recommended value of 8.
Type: signed integer
Default:
8Declared by:
services.nfs.server.statdPort¶
Use a fixed port for rpc.statd. This is useful if the NFS server is behind a firewall.
Type: null or signed integer
Default:
nullExample:
4000Declared by:
services.nghttpx.enable¶
Whether to enable nghttpx.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nghttpx.backend-address-family¶
Specify address family of backend connections. If “auto” is given, both IPv4 and IPv6 are considered. If “IPv4” is given, only IPv4 address is considered. If “IPv6” is given, only IPv6 address is considered.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx–backend-address-family
Type: one of “auto”, “IPv4”, “IPv6”
Default:
"auto"Declared by:
services.nghttpx.backends¶
A list of backend specifications.
Type: list of submodules
Example: ``[
{ params = { proto = “http/1.1”; redirect-if-not-tls = true; } ; patterns = [ “/” ] ; server = { host = “172.16.0.22”; port = 8443; } ; }
]``
Declared by:
services.nghttpx.backends.*.params¶
Parameters to configure a backend.
Type: null or submodule
Default:
nullExample:
{ proto = "h2"; tls = true; }Declared by:
services.nghttpx.backends.*.params.affinity¶
If “ip” is given, client IP based session affinity is enabled. If “none” is given, session affinity is disabled.
Session affinity is enabled (by nghttpx) per-backend pattern. If at least one backend has a non-“none” affinity, then session affinity is enabled for all backend servers sharing the same pattern.
It is advised to set affinity on all backends explicitly if session affinity is desired. The session affinity may break if one of the backend gets unreachable, or backend settings are reloaded or replaced by API.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx-b for more detail.
Type: one of “ip”, “none”
Default:
"none"Declared by:
services.nghttpx.backends.*.params.dns¶
Name resolution of a backends host name is done at start up, or configuration reload. If “dns” is true, name resolution takes place dynamically.
This is useful if a backends address changes frequently. If “dns” is true, name resolution of a backend’s host name at start up, or configuration reload is skipped.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx-b for more detail.
Type: boolean
Default:
falseDeclared by:
services.nghttpx.backends.*.params.fall¶
If nghttpx cannot connect to the backend N times in a row, the backend is assumed to be offline and is excluded from load balancing. If N is 0 the backend is never excluded from load balancing.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx-b for more detail.
Type: signed integer
Default:
0Declared by:
services.nghttpx.backends.*.params.proto¶
This option configures the protocol the backend server expects to use.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx-b for more detail.
Type: one of “h2”, “http/1.1”
Default:
"http/1.1"Declared by:
services.nghttpx.backends.*.params.redirect-if-not-tls¶
If true, a backend match requires the frontend connection be TLS encrypted. If it is not, nghttpx responds to the request with a 308 status code and https URI the client should use instead in the Location header.
The port number in the redirect URI is 443 by default and can be changed using ‘services.nghttpx.redirect-https-port’ option.
If at least one backend has “redirect-if-not-tls” set to true, this feature is enabled for all backend servers with the same pattern. It is advised to set “redirect-if-no-tls” parameter to all backends explicitly if this feature is desired.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx-b for more detail.
Type: boolean
Default:
falseDeclared by:
services.nghttpx.backends.*.params.rise¶
If the backend is excluded from load balancing, nghttpx will periodically attempt to make a connection to the backend. If the connection is successful N times in a row the backend is re-included in load balancing. If N is 0 a backend is never reconsidered for load balancing once it falls.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx-b for more detail.
Type: signed integer
Default:
0Declared by:
services.nghttpx.backends.*.params.sni¶
Override the TLS SNI field value. This value (in nghttpx) defaults to the host value of the backend configuration.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx-b for more detail.
Type: null or string
Default:
nullDeclared by:
services.nghttpx.backends.*.params.tls¶
This option determines whether nghttpx will negotiate its connection with a backend server using TLS or not. The burden is on the backend server to provide the TLS certificate!
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx-b for more detail.
Type: boolean
Default:
falseDeclared by:
services.nghttpx.backends.*.patterns¶
List of nghttpx backend patterns.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx-b for more information on the pattern syntax and nghttpxs behavior.
Type: list of strings
Default: ``[
]``
Example:
[ "\*.host.net/v1/" "host.org/v2/mypath" "/somepath" ]Declared by:
services.nghttpx.backends.*.server¶
Backend server location specified as either a host:port pair or a unix domain docket.
Type: submodule or path
Default:
{ host = "127.0.0.1"; port = 80; }Example:
{ host = "127.0.0.1"; port = 8888; }Declared by:
services.nghttpx.backlog¶
Listen backlog size.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx–backlog
Type: signed integer
Default:
65536Declared by:
services.nghttpx.extraConfig¶
Extra configuration options to be appended to the generated configuration file.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.nghttpx.frontends¶
A list of frontend listener specifications.
Type: list of submodules
Example: ``[
{ params = { tls = “no-tls”; } ; server = { host = “*”; port = 80; } ; }
]``
Declared by:
services.nghttpx.frontends.*.params¶
Parameters to configure a backend.
Type: null or submodule
Default:
nullExample:
{ tls = "tls"; }Declared by:
services.nghttpx.frontends.*.params.api¶
Enable API access for this frontend. This enables you to dynamically modify nghttpx at run-time therefore this feature is disabled by default and should be turned on with care.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx-f for more detail.
Type: boolean
Default:
falseDeclared by:
services.nghttpx.frontends.*.params.healthmon¶
Make this frontend a health monitor endpoint. Any request received on this frontend is responded to with a 200 OK.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx-f for more detail.
Type: boolean
Default:
falseDeclared by:
services.nghttpx.frontends.*.params.proxyproto¶
Accept PROXY protocol version 1 on frontend connection.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx-f for more detail.
Type: boolean
Default:
falseDeclared by:
services.nghttpx.frontends.*.params.sni-fwd¶
When performing a match to select a backend server, SNI host name received from the client is used instead of the request host. See –backend option about the pattern match.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx-f for more detail.
Type: boolean
Default:
falseDeclared by:
services.nghttpx.frontends.*.params.tls¶
Enable or disable TLS. If true (enabled) the key and certificate must be configured for nghttpx.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx-f for more detail.
Type: one of “tls”, “no-tls”
Default:
"tls"Declared by:
services.nghttpx.frontends.*.server¶
Frontend server interface binding specification as either a host:port pair or a unix domain docket.
NB: a host of “*” listens on all interfaces and includes IPv6 addresses.
Type: submodule or path
Default:
{ host = "127.0.0.1"; port = 80; }Example:
{ host = "127.0.0.1"; port = 8888; }Declared by:
services.nghttpx.rlimit-nofile¶
Set maximum number of open files (RLIMIT_NOFILE) to <N>. If 0 is given, nghttpx does not set the limit.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx–rlimit-nofile
Type: signed integer
Default:
0Declared by:
services.nghttpx.single-process¶
Run this program in a single process mode for debugging purpose. Without this option, nghttpx creates at least 2 processes: master and worker processes. If this option is used, master and worker are unified into a single process. nghttpx still spawns additional process if neverbleed is used. In the single process mode, the signal handling feature is disabled.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx–single-process
Type: boolean
Default:
falseDeclared by:
services.nghttpx.single-thread¶
Run everything in one thread inside the worker process. This feature is provided for better debugging experience, or for the platforms which lack thread support. If threading is disabled, this option is always enabled.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx–single-thread
Type: boolean
Default:
falseDeclared by:
services.nghttpx.tls¶
TLS certificate and key paths. Note that this does not enable TLS for a frontend listener, to do so, a frontend specification must set
params.tlsto true.Type: null or submodule
Default:
nullExample:
{ crt = "/etc/ssl/certs/server.crt"; key = "/etc/ssl/keys/server.key"; }Declared by:
services.nghttpx.tls.crt¶
Path to the TLS certificate file.
Type: string
Default:
"/etc/ssl/certs/server.crt"Example:
"/etc/ssl/certs/mycert.crt"Declared by:
services.nghttpx.tls.key¶
Path to the TLS key file.
Type: string
Default:
"/etc/ssl/keys/server.key"Example:
"/etc/ssl/keys/mykeyfile.key"Declared by:
services.nghttpx.workers¶
Set the number of worker threads.
Please see https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx-n
Type: signed integer
Default:
1Declared by:
services.nginx.enable¶
Whether to enable Nginx Web Server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nginx.enableReload¶
Reload nginx when configuration file changes (instead of restart). The configuration file is exposed at
/etc/nginx/nginx.conf. See alsosystemd.services.*.restartIfChanged.Type: boolean
Default:
falseDeclared by:
services.nginx.package¶
Nginx package to use. This defaults to the stable version. Note that the nginx team recommends to use the mainline version which available in nixpkgs as
nginxMainline.Type: package
Default:
"pkgs.nginxStable"Declared by:
services.nginx.appendConfig¶
Configuration lines appended to the generated Nginx configuration file. Commonly used by different modules providing http snippets. can be specified more than once and it’s value will be concatenated (contrary to which can be set only once).
Type: strings concatenated with “\n”
Default:
""Declared by:
services.nginx.appendHttpConfig¶
Configuration lines to be appended to the generated http block. This is mutually exclusive with using config and httpConfig for specifying the whole http block verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.nginx.clientMaxBodySize¶
Set nginx global client_max_body_size.
Type: string
Default:
"10m"Declared by:
services.nginx.commonHttpConfig¶
With nginx you must provide common http context definitions before they are used, e.g. log_format, resolver, etc. inside of server or location contexts. Use this attribute to set these definitions at the appropriate location.
Type: strings concatenated with “\n”
Default:
""Example:
'' resolver 127.0.0.1 valid=5s; log_format myformat '$remote_addr - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent ' '"$http_referer" "$http_user_agent"'; ''Declared by:
services.nginx.config¶
Verbatim nginx.conf configuration. This is mutually exclusive with the structured configuration via virtualHosts and the recommendedXyzSettings configuration options. See appendConfig for appending to the generated http block.
Type: unspecified
Default:
""Declared by:
services.nginx.eventsConfig¶
Configuration lines to be set inside the events block.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.nginx.gitweb.enable¶
If true, enable gitweb in nginx.
Type: boolean
Default:
falseDeclared by:
services.nginx.gitweb.group¶
Group that the CGI process will belong to. (Set to
config.services.gitolite.groupif you are using gitolite.)Type: string
Default:
"nginx"Declared by:
services.nginx.gitweb.location¶
Location to serve gitweb on.
Type: string
Default:
"/gitweb"Declared by:
services.nginx.gitweb.user¶
Existing user that the CGI process will belong to. (Default almost surely will do.)
Type: string
Default:
"nginx"Declared by:
services.nginx.gitweb.virtualHost¶
VirtualHost to serve gitweb on. Default is catch-all.
Type: string
Default:
"_"Declared by:
services.nginx.group¶
Group account under which nginx runs.
Type: string
Default:
"nginx"Declared by:
services.nginx.httpConfig¶
Configuration lines to be set inside the http block. This is mutually exclusive with the structured configuration via virtualHosts and the recommendedXyzSettings configuration options. See appendHttpConfig for appending to the generated http block.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.nginx.logError¶
Configures logging. The first parameter defines a file that will store the log. The special value stderr selects the standard error file. Logging to syslog can be configured by specifying the “syslog:” prefix. The second parameter determines the level of logging, and can be one of the following: debug, info, notice, warn, error, crit, alert, or emerg. Log levels above are listed in the order of increasing severity. Setting a certain log level will cause all messages of the specified and more severe log levels to be logged. If this parameter is omitted then error is used.
Type: unspecified
Default:
"stderr"Declared by:
services.nginx.mapHashBucketSize¶
Sets the bucket size for the map variables hash tables. Default value depends on the processor’s cache line size.
Type: null or one of 32, 64, 128
Default:
nullDeclared by:
services.nginx.mapHashMaxSize¶
Sets the maximum size of the map variables hash tables.
Type: null or positive integer, meaning >0
Default:
nullDeclared by:
services.nginx.preStart¶
Shell commands executed before the service’s nginx is started.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.nginx.proxyResolveWhileRunning¶
Resolves domains of proxyPass targets at runtime and not only at start, you have to set services.nginx.resolver, too.
Type: boolean
Default:
falseDeclared by:
services.nginx.recommendedGzipSettings¶
Enable recommended gzip settings.
Type: boolean
Default:
falseDeclared by:
services.nginx.recommendedOptimisation¶
Enable recommended optimisation settings.
Type: boolean
Default:
falseDeclared by:
services.nginx.recommendedProxySettings¶
Enable recommended proxy settings.
Type: boolean
Default:
falseDeclared by:
services.nginx.recommendedTlsSettings¶
Enable recommended TLS settings.
Type: boolean
Default:
falseDeclared by:
services.nginx.resolver¶
Configures name servers used to resolve names of upstream servers into addresses
Type: submodule
Default: ``{
}``
Declared by:
services.nginx.resolver.addresses¶
List of resolvers to use
Type: list of strings
Default: ``[
]``
Example:
[ "[::1]" "127.0.0.1:5353" ]Declared by:
services.nginx.resolver.ipv6¶
By default, nginx will look up both IPv4 and IPv6 addresses while resolving. If looking up of IPv6 addresses is not desired, the ipv6=off parameter can be specified.
Type: boolean
Default:
trueDeclared by:
services.nginx.resolver.valid¶
By default, nginx caches answers using the TTL value of a response. An optional valid parameter allows overriding it
Type: string
Default:
""Example:
"30s"Declared by:
services.nginx.serverTokens¶
Show nginx version in headers and error pages.
Type: boolean
Default:
falseDeclared by:
services.nginx.sslCiphers¶
Ciphers to choose from when negotiating tls handshakes.
Type: string
Default:
"EECDH+aRSA+AESGCM:EDH+aRSA:EECDH+aRSA:+AES256:+AES128:+SHA1:!CAMELLIA:!SEED:!3DES:!DES:!RC4:!eNULL"Declared by:
services.nginx.sslDhparam¶
Path to DH parameters file.
Type: null or path
Default:
nullExample:
"/path/to/dhparams.pem"Declared by:
services.nginx.sslProtocols¶
Allowed TLS protocol versions.
Type: string
Default:
"TLSv1.2 TLSv1.3"Example:
"TLSv1 TLSv1.1 TLSv1.2 TLSv1.3"Declared by:
services.nginx.sso.enable¶
Whether to enable nginx-sso service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nginx.sso.configuration¶
nginx-sso configuration (documentation) as a Nix attribute set.
Type: attribute set of unspecifieds
Default: ``{
}``
Example:
{ listen = { addr = "127.0.0.1"; port = 8080; }; providers.token.tokens = { myuser = "MyToken"; }; acl = { rule_sets = [ { rules = [ { field = "x-application"; equals = "MyApp"; } ]; allow = [ "myuser" ]; } ]; }; }Declared by:
services.nginx.stateDir¶
Directory holding all state for nginx to run.
Type: unspecified
Default:
"/var/spool/nginx"Declared by:
services.nginx.statusPage¶
Enable status page reachable from localhost on http://127.0.0.1/nginx_status.
Type: boolean
Default:
falseDeclared by:
services.nginx.upstreams¶
Defines a group of servers to use as proxy target.
Type: attribute set of submodules
Default: ``{
}``
Declared by:
services.nginx.upstreams.<name>.extraConfig¶
These lines go to the end of the upstream verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.nginx.upstreams.<name>.servers¶
Defines the address and other parameters of the upstream servers.
Type: attribute set of submodules
Default: ``{
}``
Declared by:
services.nginx.upstreams.<name>.servers.<name>.backup¶
Marks the server as a backup server. It will be passed requests when the primary servers are unavailable.
Type: boolean
Default:
falseDeclared by:
services.nginx.user¶
User account under which nginx runs.
Type: string
Default:
"nginx"Declared by:
services.nginx.virtualHosts¶
Declarative vhost config
Type: attribute set of submodules
Default: ``{ localhost = {
}``
Example:
{ "hydra.example.com" = { forceSSL = true; enableACME = true; locations."/" = { proxyPass = "http://localhost:3000"; }; }; };Declared by:
services.nginx.virtualHosts.<name>.enableACME¶
Whether to ask Let’s Encrypt to sign a certificate for this vhost. Alternately, you can use an existing certificate through .
Type: boolean
Default:
falseDeclared by:
services.nginx.virtualHosts.<name>.acmeFallbackHost¶
Host which to proxy requests to if acme challenge is not found. Useful if you want multiple hosts to be able to verify the same domain name.
Type: null or string
Default:
nullDeclared by:
services.nginx.virtualHosts.<name>.acmeRoot¶
Directory for the acme challenge which is PUBLIC, don’t put certs or keys in here
Type: string
Default:
"/var/lib/acme/acme-challenge"Declared by:
services.nginx.virtualHosts.<name>.addSSL¶
Whether to enable HTTPS in addition to plain HTTP. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443).
Type: boolean
Default:
falseDeclared by:
services.nginx.virtualHosts.<name>.basicAuth¶
Basic Auth protection for a vhost.
WARNING: This is implemented to store the password in plain text in the nix store.
Type: attribute set of strings
Default: ``{
}``
Example:
{ user = "password"; };Declared by:
services.nginx.virtualHosts.<name>.basicAuthFile¶
Basic Auth password file for a vhost. Can be created via: htpasswd -c <filename> <username>
Type: null or path
Default:
nullDeclared by:
services.nginx.virtualHosts.<name>.default¶
Makes this vhost the default.
Type: boolean
Default:
falseDeclared by:
services.nginx.virtualHosts.<name>.extraConfig¶
These lines go to the end of the vhost verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.nginx.virtualHosts.<name>.forceSSL¶
Whether to add a separate nginx server block that permanently redirects (301) all plain HTTP traffic to HTTPS. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443), where the non-SSL listens are used for the redirect vhosts.
Type: boolean
Default:
falseDeclared by:
services.nginx.virtualHosts.<name>.globalRedirect¶
If set, all requests for this host are redirected permanently to the given hostname.
Type: null or string
Default:
nullExample:
"newserver.example.org"Declared by:
services.nginx.virtualHosts.<name>.http2¶
Whether to enable HTTP 2. Note that (as of writing) due to nginx’s implementation, to disable HTTP 2 you have to disable it on all vhosts that use a given IP address / port. If there is one server block configured to enable http2,then it is enabled for all server blocks on this IP. See https://stackoverflow.com/a/39466948/263061.
Type: boolean
Default:
trueDeclared by:
services.nginx.virtualHosts.<name>.listen¶
Listen addresses and ports for this virtual host. IPv6 addresses must be enclosed in square brackets. Note: this option overrides
addSSLandonlySSL.Type: list of submodules
Default: ``[
]``
Example: ``[
{ addr = “195.154.1.1”; port = 443; ssl = true; }
{ addr = “192.154.1.1”; port = 80; }
]``
Declared by:
services.nginx.virtualHosts.<name>.listen.*.addr¶
IP address.
Type: string
Declared by:
services.nginx.virtualHosts.<name>.listen.*.extraParameters¶
Extra parameters of this listen directive.
Type: list of strings
Default: ``[
]``
Example:
[ "reuseport" "deferred" ]Declared by:
services.nginx.virtualHosts.<name>.listen.*.port¶
Port number.
Type: signed integer
Default:
80Declared by:
services.nginx.virtualHosts.<name>.listen.*.ssl¶
Enable SSL.
Type: boolean
Default:
falseDeclared by:
services.nginx.virtualHosts.<name>.locations¶
Declarative location config
Type: attribute set of submodules
Default: ``{
}``
Example:
{ "/" = { proxyPass = "http://localhost:3000"; }; };Declared by:
services.nginx.virtualHosts.<name>.locations.<name>.alias¶
Alias directory for requests.
Type: null or path
Default:
nullExample:
"/your/alias/directory"Declared by:
services.nginx.virtualHosts.<name>.locations.<name>.extraConfig¶
These lines go to the end of the location verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.nginx.virtualHosts.<name>.locations.<name>.index¶
Adds index directive.
Type: null or string
Default:
nullExample:
"index.php index.html"Declared by:
services.nginx.virtualHosts.<name>.locations.<name>.priority¶
Order of this location block in relation to the others in the vhost. The semantics are the same as with `lib.mkOrder`. Smaller values have a greater priority.
Type: signed integer
Default:
1000Declared by:
services.nginx.virtualHosts.<name>.locations.<name>.proxyPass¶
Adds proxy_pass directive and sets recommended proxy headers if recommendedProxySettings is enabled.
Type: null or string
Default:
nullExample:
"http://www.example.org/"Declared by:
services.nginx.virtualHosts.<name>.locations.<name>.proxyWebsockets¶
Whether to supporty proxying websocket connections with HTTP/1.1.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nginx.virtualHosts.<name>.locations.<name>.return¶
Adds a return directive, for e.g. redirections.
Type: null or string
Default:
nullExample:
"301 http://example.com\\$request_uri"Declared by:
services.nginx.virtualHosts.<name>.locations.<name>.root¶
Root directory for requests.
Type: null or path
Default:
nullExample:
"/your/root/directory"Declared by:
services.nginx.virtualHosts.<name>.locations.<name>.tryFiles¶
Adds try_files directive.
Type: null or string
Default:
nullExample:
"\\$uri =404"Declared by:
services.nginx.virtualHosts.<name>.onlySSL¶
Whether to enable HTTPS and reject plain HTTP connections. This will set defaults for
listento listen on all interfaces on port 443.Type: boolean
Default:
falseDeclared by:
services.nginx.virtualHosts.<name>.root¶
The path of the web root directory.
Type: null or path
Default:
nullExample:
"/data/webserver/docs"Declared by:
services.nginx.virtualHosts.<name>.serverAliases¶
Additional names of virtual hosts served by this virtual host configuration.
Type: list of strings
Default: ``[
]``
Example:
[ "www.example.org" "example.org" ]Declared by:
services.nginx.virtualHosts.<name>.serverName¶
Name of this virtual host. Defaults to attribute name in virtualHosts.
Type: null or string
Default:
nullExample:
"example.org"Declared by:
services.nginx.virtualHosts.<name>.sslCertificate¶
Path to server SSL certificate.
Type: path
Example:
"/var/host.cert"Declared by:
services.nginx.virtualHosts.<name>.sslCertificateKey¶
Path to server SSL certificate key.
Type: path
Example:
"/var/host.key"Declared by:
services.nginx.virtualHosts.<name>.sslTrustedCertificate¶
Path to root SSL certificate for stapling and client certificates.
Type: null or path
Default:
nullExample:
"/var/root.cert"Declared by:
services.nginx.virtualHosts.<name>.useACMEHost¶
A host of an existing Let’s Encrypt certificate to use. This is useful if you have many subdomains and want to avoid hitting the`rate limit <https://letsencrypt.org/docs/rate-limits/>`_. Alternately, you can generate a certificate through .*Note that this option does not create any certificates, nor it does add subdomains to existing ones – you will need to create them manually using security.acme.certs.*
Type: null or string
Default:
nullDeclared by:
services.ngircd.enable¶
Whether to enable the ngircd IRC server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.ngircd.package¶
The ngircd package.
Type: package
Default:
"pkgs.ngircd"Declared by:
services.ngircd.config¶
The ngircd configuration (see ngircd.conf(5)).
Type: strings concatenated with “\n”
Declared by:
services.nix-serve.enable¶
Whether to enable nix-serve, the standalone Nix binary cache server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nix-serve.bindAddress¶
IP address where nix-serve will bind its listening socket.
Type: string
Default:
"0.0.0.0"Declared by:
services.nix-serve.extraParams¶
Extra command line parameters for nix-serve.
Type: strings concatenated with ” “
Default:
""Declared by:
services.nix-serve.port¶
Port number where nix-serve will listen on.
Type: signed integer
Default:
5000Declared by:
services.nix-serve.secretKeyFile¶
The path to the file used for signing derivation data. Generate with:
` nix-store --generate-binary-cache-key key-name secret-key-file public-key-file \`Make sure user `nix-serve` has read access to the private key file.
For more details see nix-store1.
Type: null or string
Default:
nullDeclared by:
services.nixops-dns.enable¶
Whether to enable the nixops-dns resolution of NixOps virtual machines via dnsmasq and fake domain name.
Type: boolean
Default:
falseDeclared by:
services.nixops-dns.dnsmasq¶
Enable dnsmasq forwarding to nixops-dns. This allows to use nixops-dns for `services.nixops-dns.domain` resolution while forwarding the rest of the queries to original resolvers.
Type: boolean
Default:
trueDeclared by:
services.nixops-dns.domain¶
Fake domain name to resolve to NixOps virtual machines.
For example “ops” will resolve “vm.ops”.
Type: string
Default:
"ops"Example:
"ops"Declared by:
services.nixops-dns.user¶
The user the nixops-dns daemon should run as. This should be the user, which is also used for nixops and have the .nixops directory in its home.
Type: string
Declared by:
services.nixosManual.browser¶
Browser used to show the manual.
Type: path
Default:
"\\${pkgs.w3m-nographics}/bin/w3m"Declared by:
services.nixosManual.showManual¶
Whether to show the NixOS manual on one of the virtual consoles.
Type: boolean
Default:
falseDeclared by:
services.nixosManual.ttyNumber¶
Virtual console on which to show the manual.
Type: signed integer
Default:
8Declared by:
services.nntp-proxy.enable¶
Whether to enable NNTP-Proxy.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nntp-proxy.listenAddress¶
Proxy listen address (IPv6 literal addresses need to be enclosed in “[” and “]” characters)
Type: string
Default:
"127.0.0.1"Example:
"\[::]"Declared by:
services.nntp-proxy.port¶
Proxy listen port
Type: signed integer
Default:
5555Declared by:
services.nntp-proxy.prohibitPosting¶
Whether to prohibit posting to the upstream server
Type: boolean
Default:
trueDeclared by:
services.nntp-proxy.sslCert¶
Proxy ssl certificate path
Type: string
Default:
"cert.pem"Example:
"/path/to/your/cert.file"Declared by:
services.nntp-proxy.sslKey¶
Proxy ssl key path
Type: string
Default:
"key.pem"Example:
"/path/to/your/key.file"Declared by:
services.nntp-proxy.upstreamMaxConnections¶
Upstream server maximum allowed concurrent connections
Type: signed integer
Default:
20Declared by:
services.nntp-proxy.upstreamPassword¶
Upstream server password
Type: string
Default:
""Declared by:
services.nntp-proxy.upstreamPort¶
Upstream server port
Type: signed integer
Default:
563Declared by:
services.nntp-proxy.upstreamServer¶
Upstream server address
Type: string
Default:
""Example:
"ssl-eu.astraweb.com"Declared by:
services.nntp-proxy.upstreamUser¶
Upstream server username
Type: string
Default:
""Declared by:
services.nntp-proxy.users¶
NNTP-Proxy user configuration
Type: attribute set of submodules
Default: ``{
}``
Example:
"user1" = { passwordHash = "$6$1l0t5Kn2Dk$appzivc./9l/kjq57eg5UCsBKlcfyCr0zNWYNerKoPsI1d7eAwiT0SVsOVx/CTgaBNT/u4fi2vN.iGlPfv1ek0"; maxConnections = 5; }; "anotheruser" = { passwordHash = "$6$6lwEsWB.TmsS$W7m1riUx4QrA8pKJz8hvff0dnF1NwtZXgdjmGqA1Dx2MDPj07tI9GNcb0SWlMglE.2/hBgynDdAd/XqqtRqVQ0"; maxConnections = 7; };Declared by:
services.nntp-proxy.users.<name>.maxConnections¶
Maximum number of concurrent connections to the proxy for this user
Type: signed integer
Default:
1Declared by:
services.nntp-proxy.users.<name>.passwordHash¶
SHA-512 password hash (can be generated bymkpasswd -m sha-512 <password>)
Type: string
Default:
nullExample:
"\\$6\\$GtzE7FrpE\\$wwuVgFYU.TZH4Rz.Snjxk9XGua89IeVwPQ/fEUD8eujr40q5Y021yhn0aNcsQ2Ifw.BLclyzvzgegopgKcneL0"Declared by:
services.nntp-proxy.users.<name>.username¶
Username
Type: string
Default:
nullDeclared by:
services.nntp-proxy.verbosity¶
Verbosity level
Type: one of “error”, “warning”, “notice”, “info”, “debug”
Default:
"info"Example:
"error"Declared by:
services.novacomd.enable¶
Whether to enable Novacom service for connecting to WebOS devices.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nscd.enable¶
Whether to enable the Name Service Cache Daemon.
Type: boolean
Default:
trueDeclared by:
services.nscd.config¶
Configuration to use for Name Service Cache Daemon.
Type: strings concatenated with “\n”
Default:
'' # We basically use nscd as a proxy for forwarding nss requests to appropriate # nss modules, as we run nscd with LD_LIBRARY_PATH set to the directory # containing all such modules # Note that we can not use `enable-cache no` As this will actually cause nscd # to just reject the nss requests it receives, which then causes glibc to # fallback to trying to handle the request by itself. Which won't work as glibc # is not aware of the path in which the nss modules live. As a workaround, we # have `enable-cache yes` with an explicit ttl of 0 server-user nscd enable-cache passwd yes positive-time-to-live passwd 0 negative-time-to-live passwd 0 shared passwd yes enable-cache group yes positive-time-to-live group 0 negative-time-to-live group 0 shared group yes enable-cache netgroup yes positive-time-to-live netgroup 0 negative-time-to-live netgroup 0 shared netgroup yes enable-cache hosts yes positive-time-to-live hosts 600 negative-time-to-live hosts 0 shared hosts yes enable-cache services yes positive-time-to-live services 0 negative-time-to-live services 0 shared services yes ''Declared by:
services.nsd.enable¶
Whether to enable NSD authoritative DNS server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nsd.bind8Stats¶
Whether to enable BIND8 like statistics.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nsd.dnssecInterval¶
How often to check whether dnssec key rollover is required
Type: string
Default:
"1h"Declared by:
services.nsd.extraConfig¶
Extra nsd config.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.nsd.hideVersion¶
Whether NSD should answer VERSION.BIND and VERSION.SERVER CHAOS class queries.
Type: boolean
Default:
trueDeclared by:
services.nsd.identity¶
Identify the server (CH TXT ID.SERVER entry).
Type: string
Default:
"unidentified server"Declared by:
services.nsd.interfaces¶
What addresses the server should listen to.
Type: list of strings
Default:
[ "127.0.0.0" "::1" ]Declared by:
services.nsd.ipFreebind¶
Whether to bind to nonlocal addresses and interfaces that are down. Similar to ip-transparent.
Type: boolean
Default:
falseDeclared by:
services.nsd.ipTransparent¶
Allow binding to non local addresses.
Type: boolean
Default:
falseDeclared by:
services.nsd.ipv4¶
Whether to listen on IPv4 connections.
Type: boolean
Default:
trueDeclared by:
services.nsd.ipv4EDNSSize¶
Preferred EDNS buffer size for IPv4.
Type: signed integer
Default:
4096Declared by:
services.nsd.ipv6¶
Whether to listen on IPv6 connections.
Type: boolean
Default:
trueDeclared by:
services.nsd.ipv6EDNSSize¶
Preferred EDNS buffer size for IPv6.
Type: signed integer
Default:
4096Declared by:
services.nsd.keys¶
Define your TSIG keys here.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ "tsig.example.org" = { algorithm = "hmac-md5"; keyFile = "/path/to/my/key"; }; }Declared by:
services.nsd.keys.<name>.algorithm¶
Authentication algorithm for this key.
Type: string
Default:
"hmac-sha256"Declared by:
services.nsd.keys.<name>.keyFile¶
Path to the file which contains the actual base64 encoded key. The key will be copied into “/var/lib/nsd/private” before NSD starts. The copied file is only accessibly by the NSD user.
Type: path
Declared by:
services.nsd.logTimeAscii¶
Log time in ascii, if false then in unix epoch seconds.
Type: boolean
Default:
trueDeclared by:
services.nsd.nsid¶
NSID identity (hex string, or “ascii_somestring”).
Type: null or string
Default:
nullDeclared by:
services.nsd.port¶
Port the service should bind do.
Type: signed integer
Default:
53Declared by:
services.nsd.ratelimit.enable¶
Whether to enable ratelimit capabilities.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nsd.ratelimit.ipv4PrefixLength¶
IPv4 prefix length. Addresses are grouped by netblock.
Type: null or signed integer
Default:
nullDeclared by:
services.nsd.ratelimit.ipv6PrefixLength¶
IPv6 prefix length. Addresses are grouped by netblock.
Type: null or signed integer
Default:
nullDeclared by:
services.nsd.ratelimit.ratelimit¶
Max qps allowed from any query source. 0 means unlimited. With an verbosity of 2 blocked and unblocked subnets will be logged.
Type: signed integer
Default:
200Declared by:
services.nsd.ratelimit.size¶
Size of the hashtable. More buckets use more memory but lower the chance of hash hash collisions.
Type: signed integer
Default:
1000000Declared by:
services.nsd.ratelimit.slip¶
Number of packets that get discarded before replying a SLIP response. 0 disables SLIP responses. 1 will make every response a SLIP response.
Type: null or signed integer
Default:
nullDeclared by:
services.nsd.ratelimit.whitelistRatelimit¶
Max qps allowed from whitelisted sources. 0 means unlimited. Set the rrl-whitelist option for specific queries to apply this limit instead of the default to them.
Type: signed integer
Default:
2000Declared by:
services.nsd.remoteControl.enable¶
Whether to enable remote control via nsd-control.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nsd.remoteControl.controlCertFile¶
Path to the client certificate signed with the server certificate. This file is used by nsd-control and generated by nsd-control-setup.
Type: path
Default:
"/etc/nsd/nsd_control.pem"Declared by:
services.nsd.remoteControl.controlKeyFile¶
Path to the client private key, which is used by nsd-control but not by the server. This file is generated by nsd-control-setup.
Type: path
Default:
"/etc/nsd/nsd_control.key"Declared by:
services.nsd.remoteControl.interfaces¶
Which interfaces NSD should bind to for remote control.
Type: list of strings
Default:
[ "127.0.0.1" "::1" ]Declared by:
services.nsd.remoteControl.port¶
Port number for remote control operations (uses TLS over TCP).
Type: signed integer
Default:
8952Declared by:
services.nsd.remoteControl.serverCertFile¶
Path to the server self signed certificate, which is used by the server but and by nsd-control. This file is generated by nsd-control-setup.
Type: path
Default:
"/etc/nsd/nsd_server.pem"Declared by:
services.nsd.remoteControl.serverKeyFile¶
Path to the server private key, which is used by the server but not by nsd-control. This file is generated by nsd-control-setup.
Type: path
Default:
"/etc/nsd/nsd_server.key"Declared by:
services.nsd.reuseport¶
Whether to enable SO_REUSEPORT on all used sockets. This lets multiple processes bind to the same port. This speeds up operation especially if the server count is greater than one and makes fast restarts less prone to fail
Type: boolean
Default:
trueDeclared by:
services.nsd.rootServer¶
Whether this server will be a root server (a DNS root server, you usually don’t want that).
Type: boolean
Default:
falseDeclared by:
services.nsd.roundRobin¶
Whether to enable round robin rotation of records.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nsd.serverCount¶
Number of NSD servers to fork. Put the number of CPUs to use here.
Type: signed integer
Default:
1Declared by:
services.nsd.statistics¶
Statistics are produced every number of seconds. Prints to log. If null no statistics are logged.
Type: null or signed integer
Default:
nullDeclared by:
services.nsd.tcpCount¶
Maximum number of concurrent TCP connections per server.
Type: signed integer
Default:
100Declared by:
services.nsd.tcpQueryCount¶
Maximum number of queries served on a single TCP connection. 0 means no maximum.
Type: signed integer
Default:
0Declared by:
services.nsd.tcpTimeout¶
TCP timeout in seconds.
Type: signed integer
Default:
120Declared by:
services.nsd.verbosity¶
Verbosity level.
Type: signed integer
Default:
0Declared by:
services.nsd.version¶
The version string replied for CH TXT version.server and version.bind queries. Will use the compiled package version on null. See hideVersion for enabling/disabling this responses.
Type: null or string
Default:
nullDeclared by:
services.nsd.xfrdReloadTimeout¶
Number of seconds between reloads triggered by xfrd.
Type: signed integer
Default:
1Declared by:
services.nsd.zonefilesCheck¶
Whether to check mtime of all zone files on start and sighup.
Type: boolean
Default:
trueDeclared by:
services.nsd.zones¶
Define your zones here. Zones can cascade other zones and therefore inherit settings from parent zones. Look at the definition of children to learn about inheritance and child zones. The given example will define 3 zones (example.(com|org|net).). Both example.com. and example.org. inherit their configuration from serverGroup1.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ "serverGroup1" = { provideXFR = [ "10.1.2.3 NOKEY" ]; children = { "example.com." = { data = '' $ORIGIN example.com. $TTL 86400 @ IN SOA a.ns.example.com. admin.example.com. ( ... ''; }; "example.org." = { data = '' $ORIGIN example.org. $TTL 86400 @ IN SOA a.ns.example.com. admin.example.com. ( ... ''; }; }; }; "example.net." = { provideXFR = [ "10.3.2.1 NOKEY" ]; data = '' ... ''; }; }Declared by:
services.nsd.zones.<name>.allowAXFRFallback¶
If NSD as secondary server should be allowed to AXFR if the primary server does not allow IXFR.
Type: boolean
Default:
trueDeclared by:
services.nsd.zones.<name>.allowNotify¶
Listed primary servers are allowed to notify this secondary server.
Format: <ip> <key-name | NOKEY | BLOCKED> <ip> either a plain IPv4/IPv6 address or range. Valid patters for ranges: * 10.0.0.0/24 # via subnet size * 10.0.0.0&255.255.255.0 # via subnet mask * 10.0.0.1-10.0.0.254 # via range A optional port number could be added with a '@': * 2001:1234::1@1234 <key-name | NOKEY | BLOCKED> * <key-name> will use the specified TSIG key * NOKEY no TSIG signature is required * BLOCKED notifies from non-listed or blocked IPs will be ignored *Type: list of strings
Default: ``[
]``
Example:
[ "192.0.2.0/24 NOKEY" "10.0.0.1-10.0.0.5 my_tsig_key_name" "10.0.3.4&255.255.0.0 BLOCKED" ]Declared by:
services.nsd.zones.<name>.children¶
Children zones inherit all options of their parents. Attributes defined in a child will overwrite the ones of its parent. Only leaf zones will be actually served. This way it’s possible to define maybe zones which share most attributes without duplicating everything. This mechanism replaces nsd’s patterns in a save and functional way.
Type: unspecified
Default: ``{
}``
Declared by:
services.nsd.zones.<name>.data¶
The actual zone data. This is the content of your zone file. Use imports or pkgs.lib.readFile if you don’t want this data in your config file.
Type: strings concatenated with “\n”
Default:
""Example:
""Declared by:
services.nsd.zones.<name>.dnssec¶
Whether to enable DNSSEC.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nsd.zones.<name>.dnssecPolicy.algorithm¶
Which algorithm to use for DNSSEC
Type: string
Default:
"RSASHA256"Declared by:
services.nsd.zones.<name>.dnssecPolicy.coverage¶
The length of time to ensure that keys will be correct; no action will be taken to create new keys to be activated after this time.
Type: string
Default:
"1y"Declared by:
services.nsd.zones.<name>.dnssecPolicy.keyttl¶
TTL for dnssec records
Type: string
Default:
"1h"Declared by:
services.nsd.zones.<name>.dnssecPolicy.ksk¶
Key policy for key signing keys
Type: submodule
Default:
{ keySize = 4096; postPublish = "1mo"; prePublish = "1mo"; rollPeriod = "0"; }Declared by:
services.nsd.zones.<name>.dnssecPolicy.ksk.keySize¶
Key size in bits
Type: signed integer
Declared by:
services.nsd.zones.<name>.dnssecPolicy.ksk.postPublish¶
How long after deactivation to keep a key in the zone
Type: string
Declared by:
services.nsd.zones.<name>.dnssecPolicy.ksk.prePublish¶
How long in advance to publish new keys
Type: string
Declared by:
services.nsd.zones.<name>.dnssecPolicy.ksk.rollPeriod¶
How frequently to change keys
Type: string
Declared by:
services.nsd.zones.<name>.dnssecPolicy.zsk¶
Key policy for zone signing keys
Type: submodule
Default:
{ keySize = 2048; postPublish = "1w"; prePublish = "1w"; rollPeriod = "1mo"; }Declared by:
services.nsd.zones.<name>.dnssecPolicy.zsk.keySize¶
Key size in bits
Type: signed integer
Declared by:
services.nsd.zones.<name>.dnssecPolicy.zsk.postPublish¶
How long after deactivation to keep a key in the zone
Type: string
Declared by:
services.nsd.zones.<name>.dnssecPolicy.zsk.prePublish¶
How long in advance to publish new keys
Type: string
Declared by:
services.nsd.zones.<name>.dnssecPolicy.zsk.rollPeriod¶
How frequently to change keys
Type: string
Declared by:
services.nsd.zones.<name>.maxRefreshSecs¶
Limit refresh time for secondary zones. This is the timer which checks to see if the zone has to be refetched when it expires. Normally the value from the SOA record is used, but this option restricts that value.
Type: null or signed integer
Default:
nullDeclared by:
services.nsd.zones.<name>.maxRetrySecs¶
Limit retry time for secondary zones. This is the timeout after a failed fetch attempt for the zone. Normally the value from the SOA record is used, but this option restricts that value.
Type: null or signed integer
Default:
nullDeclared by:
services.nsd.zones.<name>.minRefreshSecs¶
Limit refresh time for secondary zones.
Type: null or signed integer
Default:
nullDeclared by:
services.nsd.zones.<name>.minRetrySecs¶
Limit retry time for secondary zones.
Type: null or signed integer
Default:
nullDeclared by:
services.nsd.zones.<name>.notify¶
This primary server will notify all given secondary servers about zone changes.
Format: <ip> <key-name | NOKEY> <ip> a plain IPv4/IPv6 address with on optional port number (ip@port) <key-name | NOKEY> * <key-name> sign notifies with the specified key * NOKEY don't sign notifiesType: list of strings
Default: ``[
]``
Example:
[ "10.0.0.1@3721 my_key" "::5 NOKEY" ]Declared by:
services.nsd.zones.<name>.notifyRetry¶
Specifies the number of retries for failed notifies. Set this along with notify.
Type: signed integer
Default:
5Declared by:
services.nsd.zones.<name>.outgoingInterface¶
This address will be used for zone-transfere requests if configured as a secondary server or notifications in case of a primary server. Supply either a plain IPv4 or IPv6 address with an optional port number (ip@port).
Type: null or string
Default:
nullExample:
"2000::1@1234"Declared by:
services.nsd.zones.<name>.provideXFR¶
Allow these IPs and TSIG to transfer zones, addr TSIG|NOKEY|BLOCKED address range 192.0.2.0/24, 1.2.3.4&255.255.0.0, 3.0.2.20-3.0.2.40
Type: list of strings
Default: ``[
]``
Example:
[ "192.0.2.0/24 NOKEY" "192.0.2.0/24 my_tsig_key_name" ]Declared by:
services.nsd.zones.<name>.requestXFR¶
services.nsd.zones.<name>.rrlWhitelist¶
Whitelists the given rrl-types.
Type: list of one of “nxdomain”, “error”, “referral”, “any”, “rrsig”, “wildcard”, “nodata”, “dnskey”, “positive”, “all”s
Default: ``[
]``
Declared by:
services.nsd.zones.<name>.zoneStats¶
When set to something distinct to null NSD is able to collect statistics per zone. All statistics of this zone(s) will be added to the group specified by this given name. Use “%s” to use the zones name as the group. The groups are output from nsd-control stats and stats_noreset.
Type: null or string
Default:
nullExample:
"%s"Declared by:
services.ntopng.enable¶
Enable ntopng, a high-speed web-based traffic analysis and flow collection tool.
With the default configuration, ntopng monitors all network interfaces and displays its findings at http://localhost:3000. Default username and password is admin/admin.
See the ntopng(8) manual page and http://www.ntop.org/products/ntop/ for more info.
Note that enabling ntopng will also enable redis (key-value database server) for persistent data storage.
Type: boolean
Default:
falseDeclared by:
services.ntopng.configText¶
Overridable configuration file contents to use for ntopng. By default, use the contents automatically generated by NixOS.
Type: strings concatenated with “\n”
Default:
""Example:
'' --interface=any --http-port=3000 --disable-login ''Declared by:
services.ntopng.extraConfig¶
Configuration lines that will be appended to the generated ntopng configuration file. Note that this mechanism does not work when the manual option is used.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.ntopng.http-port¶
Sets the HTTP port of the embedded web server.
Type: signed integer
Default:
3000Declared by:
services.ntopng.interfaces¶
List of interfaces to monitor. Use “any” to monitor all interfaces.
Type: list of strings
Default:
[ "any" ]Example:
[ "eth0" "wlan0" ]Declared by:
services.ntp.enable¶
Whether to synchronise your machine’s time using ntpd, as a peer in the NTP network.
Disables
systemd.timesyncdif enabled.Type: unspecified
Default:
falseDeclared by:
services.ntp.extraFlags¶
Extra flags passed to the ntpd command.
Type: list of strings
Default: ``[
]``
Example:
[ "--interface=eth0" ]Declared by:
services.ntp.restrictDefault¶
The restriction flags to be set by default.
The default flags prevent external hosts from using ntpd as a DDoS reflector, setting system time, and querying OS/ntpd version. As recommended in section 6.5.1.1.3, answer “No” of http://support.ntp.org/bin/view/Support/AccessRestrictions
Type: list of strings
Default:
[ "limited" "kod" "nomodify" "notrap" "noquery" "nopeer" ]Declared by:
services.ntp.restrictSource¶
The restriction flags to be set on source.
The default flags allow peers to be added by ntpd from configured pool(s), but not by other means.
Type: list of strings
Default:
[ "limited" "kod" "nomodify" "notrap" "noquery" ]Declared by:
services.ntp.servers¶
The set of NTP servers from which to synchronise.
Type: unspecified
Default:
[ "0.nixos.pool.ntp.org" "1.nixos.pool.ntp.org" "2.nixos.pool.ntp.org" "3.nixos.pool.ntp.org" ]Declared by:
services.nullidentdmod.enable¶
Whether to enable the nullidentdmod identd daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nullidentdmod.userid¶
User ID to return. Set to null to return a random string each time.
Type: null or string
Default:
nullExample:
"alice"Declared by:
services.nullmailer.enable¶
Whether to enable nullmailer daemon.
Type: boolean
Default:
falseDeclared by:
services.nullmailer.config.adminaddr¶
If set, all recipients to users at either “localhost” (the literal string) or the canonical host name (from the me control attribute) are remapped to this address. This is provided to allow local daemons to be able to send email to “somebody@localhost” and have it go somewhere sensible instead of being bounced by your relay host. To send to multiple addresses, put them all on one line separated by a comma.
Type: null or string
Default:
nullDeclared by:
services.nullmailer.config.allmailfrom¶
If set, content will override the envelope sender on all messages.
Type: null or string
Default:
nullDeclared by:
services.nullmailer.config.defaultdomain¶
The content of this attribute is appended to any host name that does not contain a period (except localhost), including defaulthost and idhost. Defaults to the value of the me attribute, if it exists, otherwise the literal name defauldomain.
Type: null or string
Default:
nullDeclared by:
services.nullmailer.config.defaulthost¶
The content of this attribute is appended to any address that is missing a host name. Defaults to the value of the me control attribute, if it exists, otherwise the literal name defaulthost.
Type: null or string
Default:
nullDeclared by:
services.nullmailer.config.doublebounceto¶
If the original sender was empty (the original message was a delivery status or disposition notification), the double bounce is sent to the address in this attribute.
Type: null or string
Default:
nullDeclared by:
services.nullmailer.config.helohost¶
Sets the environment variable $HELOHOST which is used by the SMTP protocol module to set the parameter given to the HELO command. Defaults to the value of the me configuration attribute.
Type: null or string
Default:
nullDeclared by:
services.nullmailer.config.idhost¶
The content of this attribute is used when building the message-id string for the message. Defaults to the canonicalized value of defaulthost.
Type: null or string
Default:
nullDeclared by:
services.nullmailer.config.maxpause¶
The maximum time to pause between successive queue runs, in seconds. Defaults to 24 hours (86400).
Type: null or string
Default:
nullDeclared by:
services.nullmailer.config.me¶
The fully-qualifiled host name of the computer running nullmailer. Defaults to the literal name me.
Type: null or string
Default:
nullDeclared by:
services.nullmailer.config.pausetime¶
The minimum time to pause between successive queue runs when there are messages in the queue, in seconds. Defaults to 1 minute (60). Each time this timeout is reached, the timeout is doubled to a maximum of maxpause. After new messages are injected, the timeout is reset. If this is set to 0, nullmailer-send will exit immediately after going through the queue once (one-shot mode).
Type: null or string
Default:
nullDeclared by:
services.nullmailer.config.remotes¶
A list of remote servers to which to send each message. Each line contains a remote host name or address followed by an optional protocol string, separated by white space.
See man 8 nullmailer-send for syntax and available options.
WARNING: This is stored world-readable in the nix store. If you need to specify any secret credentials here, consider using theremotesFile option instead.
Type: null or string
Default:
nullDeclared by:
services.nullmailer.config.sendtimeout¶
The time to wait for a remote module listed above to complete sending a message before killing it and trying again, in seconds. Defaults to 1 hour (3600). If this is set to 0, nullmailer-send will wait forever for messages to complete sending.
Type: null or string
Default:
nullDeclared by:
services.nullmailer.group¶
Group to use to run nullmailer-send.
Type: string
Default:
"nullmailer"Declared by:
services.nullmailer.remotesFile¶
Path to the remotes control file. This file contains a list of remote servers to which to send each message.
See man 8 nullmailer-send for syntax and available options.
Type: null or string
Default:
nullDeclared by:
services.nullmailer.setSendmail¶
Whether to set the system sendmail to nullmailer’s.
Type: boolean
Default:
trueDeclared by:
services.nullmailer.user¶
User to use to run nullmailer-send.
Type: string
Default:
"nullmailer"Declared by:
services.nylon.<name?>.enable¶
Enables nylon as a running service upon activation.
Type: boolean
Default:
falseDeclared by:
services.nylon.<name?>.acceptInterface¶
Tell nylon which interface to listen for client requests on, default is “lo”.
Type: string
Default:
"lo"Declared by:
services.nylon.<name?>.allowedIPRanges¶
Allowed client IP ranges are evaluated first, defaults to ARIN IPv4 private ranges: [ “192.168.0.0/16” “127.0.0.0/8” “172.16.0.0/12” “10.0.0.0/8” ]
Type: list of strings
Default:
[ "192.168.0.0/16" "127.0.0.1/8" "172.16.0.1/12" "10.0.0.0/8" ]Declared by:
services.nylon.<name?>.bindInterface¶
Tell nylon which interface to use as an uplink, default is “enp3s0f0”.
Type: string
Default:
"enp3s0f0"Declared by:
services.nylon.<name?>.deniedIPRanges¶
Denied client IP ranges, these gets evaluated after the allowed IP ranges, defaults to all IPv4 addresses: [ “0.0.0.0/0” ] To block all other access than the allowed.
Type: list of strings
Default:
[ "0.0.0.0/0" ]Declared by:
services.nylon.<name?>.logging¶
Enable logging, default is no logging.
Type: boolean
Default:
falseDeclared by:
services.nylon.<name?>.name¶
The name of this nylon instance.
Type: string
Default:
""Declared by:
services.nylon.<name?>.nrConnections¶
The number of allowed simultaneous connections to the daemon, default 10.
Type: signed integer
Default:
10Declared by:
services.nylon.<name?>.port¶
What port to listen for client requests, default is 1080.
Type: signed integer
Default:
1080Declared by:
services.nylon.<name?>.verbosity¶
Enable verbose output, default is to not be verbose.
Type: boolean
Default:
falseDeclared by:
services.nzbget.enable¶
Whether to enable NZBGet.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.nzbget.group¶
Group under which NZBGet runs
Type: string
Default:
"nzbget"Declared by:
services.nzbget.user¶
User account under which NZBGet runs
Type: string
Default:
"nzbget"Declared by:
services.oauth2_proxy.enable¶
Whether to enable oauth2_proxy.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.oauth2_proxy.package¶
The package that provides oauth2_proxy.
Type: package
Default:
"pkgs.oauth2_proxy"Declared by:
services.oauth2_proxy.approvalPrompt¶
OAuth approval_prompt.
Type: one of “force”, “auto”
Default:
"force"Declared by:
services.oauth2_proxy.azure.resource¶
The resource that is protected.
Type: string
Declared by:
services.oauth2_proxy.azure.tenant¶
Go to a tenant-specific or common (tenant-independent) endpoint.
Type: string
Default:
"common"Declared by:
services.oauth2_proxy.basicAuthPassword¶
The password to set when passing the HTTP Basic Auth header.
Type: null or string
Default:
nullDeclared by:
services.oauth2_proxy.clientID¶
The OAuth Client ID.
Type: null or string
Example:
"123456.apps.googleusercontent.com"Declared by:
services.oauth2_proxy.clientSecret¶
The OAuth Client Secret.
Type: null or string
Declared by:
services.oauth2_proxy.cookie.domain¶
An optional cookie domain to force cookies to.
Type: null or string
Default:
nullExample:
".yourcompany.com"Declared by:
services.oauth2_proxy.cookie.expire¶
Expire timeframe for cookie.
Type: string
Default:
"168h0m0s"Declared by:
services.oauth2_proxy.cookie.httpOnly¶
Set HttpOnly cookie flag.
Type: boolean
Default:
trueDeclared by:
services.oauth2_proxy.cookie.name¶
The name of the cookie that the oauth_proxy creates.
Type: string
Default:
"_oauth2_proxy"Declared by:
services.oauth2_proxy.cookie.refresh¶
Refresh the cookie after this duration; 0 to disable.
Type: null or string
Default:
nullExample:
"168h0m0s"Declared by:
services.oauth2_proxy.cookie.secret¶
The seed string for secure cookies.
Type: null or string
Declared by:
services.oauth2_proxy.cookie.secure¶
Set secure (HTTPS) cookie flag.
Type: boolean
Default:
trueDeclared by:
services.oauth2_proxy.customTemplatesDir¶
Path to custom HTML templates.
Type: null or path
Default:
nullDeclared by:
services.oauth2_proxy.email.addresses¶
Line-separated email addresses that are allowed to authenticate.
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.oauth2_proxy.email.domains¶
Authenticate emails with the specified domains. Use``*`` to authenticate any email.
Type: list of strings
Default: ``[
]``
Declared by:
services.oauth2_proxy.extraConfig¶
services.oauth2_proxy.github.org¶
Restrict logins to members of this organisation.
Type: null or string
Default:
nullDeclared by:
services.oauth2_proxy.github.team¶
Restrict logins to members of this team.
Type: null or string
Default:
nullDeclared by:
services.oauth2_proxy.google.adminEmail¶
The Google Admin to impersonate for API calls.
Only users with access to the Admin APIs can access the Admin SDK Directory API, thus the service account needs to impersonate one of those users to access the Admin SDK Directory API.
Type: string
Declared by:
services.oauth2_proxy.google.groups¶
Restrict logins to members of these Google groups.
Type: list of strings
Default: ``[
]``
Declared by:
services.oauth2_proxy.google.serviceAccountJSON¶
The path to the service account JSON credentials.
Type: path
Declared by:
services.oauth2_proxy.htpasswd.displayForm¶
Display username / password login form if an htpasswd file is provided.
Type: boolean
Default:
trueDeclared by:
services.oauth2_proxy.htpasswd.file¶
Additionally authenticate against a htpasswd file. Entries must be created with
htpasswd -sfor SHA encryption.Type: null or path
Default:
nullDeclared by:
services.oauth2_proxy.httpAddress¶
HTTPS listening address. This module does not expose the port by default. If you want this URL to be accessible to other machines, please add the port to
networking.firewall.allowedTCPPorts.Type: string
Default:
"http://127.0.0.1:4180"Declared by:
services.oauth2_proxy.keyFile¶
oauth2_proxy allows passing sensitive configuration via environment variables. Make a file that contains lines like OAUTH2_PROXY_CLIENT_SECRET=asdfasdfasdf.apps.googleuserscontent.com and specify the path here.
Type: null or path
Default:
nullExample:
"/run/keys/oauth2_proxy"Declared by:
services.oauth2_proxy.loginURL¶
Authentication endpoint.
You only need to set this if you are using a self-hosted provider (e.g. Github Enterprise). If you’re using a publicly hosted provider (e.g github.com), then the default works.
Type: null or string
Default:
nullExample:
"https://provider.example.com/oauth/authorize"Declared by:
services.oauth2_proxy.nginx.proxy¶
The address of the reverse proxy endpoint for oauth2_proxy
Type: string
Default:
"http://127.0.0.1:4180"Declared by:
services.oauth2_proxy.nginx.virtualHosts¶
A list of nginx virtual hosts to put behind the oauth2 proxy
Type: list of strings
Default: ``[
]``
Declared by:
services.oauth2_proxy.passAccessToken¶
Pass OAuth access_token to upstream via X-Forwarded-Access-Token header.
Type: boolean
Default:
falseDeclared by:
services.oauth2_proxy.passBasicAuth¶
Pass HTTP Basic Auth, X-Forwarded-User and X-Forwarded-Email information to upstream.
Type: boolean
Default:
trueDeclared by:
services.oauth2_proxy.passHostHeader¶
Pass the request Host Header to upstream.
Type: boolean
Default:
trueDeclared by:
services.oauth2_proxy.profileURL¶
Profile access endpoint.
Type: null or string
Default:
nullDeclared by:
services.oauth2_proxy.provider¶
OAuth provider.
Type: one of “google”, “github”, “azure”, “gitlab”, “linkedin”, “myusa”
Default:
"google"Declared by:
services.oauth2_proxy.proxyPrefix¶
The url root path that this proxy should be nested under.
Type: string
Default:
"/oauth2"Declared by:
services.oauth2_proxy.redeemURL¶
Token redemption endpoint.
You only need to set this if you are using a self-hosted provider (e.g. Github Enterprise). If you’re using a publicly hosted provider (e.g github.com), then the default works.
Type: null or string
Default:
nullExample:
"https://provider.example.com/oauth/token"Declared by:
services.oauth2_proxy.redirectURL¶
The OAuth2 redirect URL.
Type: null or string
Default:
nullExample:
"https://internalapp.yourcompany.com/oauth2/callback"Declared by:
services.oauth2_proxy.requestLogging¶
Log requests to stdout.
Type: boolean
Default:
trueDeclared by:
services.oauth2_proxy.scope¶
OAuth scope specification.
Type: null or string
Default:
nullDeclared by:
services.oauth2_proxy.setXauthrequest¶
Set X-Auth-Request-User and X-Auth-Request-Email response headers (useful in Nginx auth_request mode). Setting this to ‘null’ means using the upstream default (false).
Type: null or boolean
Default:
falseDeclared by:
services.oauth2_proxy.signatureKey¶
GAP-Signature request signature key.
Type: null or string
Default:
nullExample:
"sha1:secret0"Declared by:
services.oauth2_proxy.skipAuthRegexes¶
Skip authentication for requests matching any of these regular expressions.
Type: list of strings
Default: ``[
]``
Declared by:
services.oauth2_proxy.tls.enable¶
Whether to serve over TLS.
Type: boolean
Default:
falseDeclared by:
services.oauth2_proxy.tls.certificate¶
Path to certificate file.
Type: path
Declared by:
services.oauth2_proxy.tls.httpsAddress¶
addr:portto listen on for HTTPS clients.Remember to add
portto``allowedTCPPorts`` if you want other machines to be able to connect to it.Type: string
Default:
":443"Declared by:
services.oauth2_proxy.tls.key¶
Path to private key file.
Type: path
Declared by:
services.oauth2_proxy.upstream¶
The http url(s) of the upstream endpoint or
file://paths for static files. Routing is based on the path.Type: list of strings or string convertible to it
Default: ``[
]``
Declared by:
services.oauth2_proxy.validateURL¶
Access token validation endpoint.
You only need to set this if you are using a self-hosted provider (e.g. Github Enterprise). If you’re using a publicly hosted provider (e.g github.com), then the default works.
Type: null or string
Default:
nullExample:
"https://provider.example.com/user/emails"Declared by:
services.ocserv.enable¶
Whether to enable ocserv.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.ocserv.config¶
Configuration content to start an OCServ server.
For a full configuration reference,please refer to the online documentation (https://ocserv.gitlab.io/www/manual.html), the openconnect recipes (https://github.com/openconnect/recipes) or `man ocserv`.
Type: strings concatenated with “\n”
Example:
'' # configuration examples from $out/doc without explanatory comments. # for a full reference please look at the installed man pages. auth = "plain[passwd=./sample.passwd]" tcp-port = 443 udp-port = 443 run-as-user = nobody run-as-group = nogroup socket-file = /run/ocserv-socket server-cert = certs/server-cert.pem server-key = certs/server-key.pem keepalive = 32400 dpd = 90 mobile-dpd = 1800 switch-to-tcp-timeout = 25 try-mtu-discovery = false cert-user-oid = 0.9.2342.19200300.100.1.1 tls-priorities = "NORMAL:%SERVER_PRECEDENCE:%COMPAT:-VERS-SSL3.0" auth-timeout = 240 min-reauth-time = 300 max-ban-score = 80 ban-reset-time = 1200 cookie-timeout = 300 deny-roaming = false rekey-time = 172800 rekey-method = ssl use-occtl = true pid-file = /run/ocserv.pid device = vpns predictable-ips = true default-domain = example.com ipv4-network = 192.168.1.0 ipv4-netmask = 255.255.255.0 dns = 192.168.1.2 ping-leases = false route = 10.10.10.0/255.255.255.0 route = 192.168.0.0/255.255.0.0 no-route = 192.168.5.0/255.255.255.0 cisco-client-compat = true dtls-legacy = true [vhost:www.example.com] auth = "certificate" ca-cert = certs/ca.pem server-cert = certs/server-cert-secp521r1.pem server-key = cersts/certs/server-key-secp521r1.pem ipv4-network = 192.168.2.0 ipv4-netmask = 255.255.255.0 cert-user-oid = 0.9.2342.19200300.100.1.1 ''Declared by:
services.octoprint.enable¶
Whether to enable OctoPrint, web interface for 3D printers.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.octoprint.extraConfig¶
Extra options which are added to OctoPrint’s YAML configuration file.
Type: attribute set
Default: ``{
}``
Declared by:
services.octoprint.group¶
Group for the daemon.
Type: string
Default:
"octoprint"Declared by:
services.octoprint.host¶
Host to bind OctoPrint to.
Type: string
Default:
"0.0.0.0"Declared by:
services.octoprint.plugins¶
Additional plugins.
Type: unspecified
Default:
"plugins: \[]"Example:
plugins: [ m3d-fio ]Declared by:
services.octoprint.port¶
Port to bind OctoPrint to.
Type: signed integer
Default:
5000Declared by:
services.octoprint.stateDir¶
State directory of the daemon.
Type: path
Default:
"/var/lib/octoprint"Declared by:
services.octoprint.user¶
User for the daemon.
Type: string
Default:
"octoprint"Declared by:
services.offlineimap.enable¶
Whether to enable OfflineIMAP, a software to dispose your mailbox(es) as a local Maildir(s).
Type: boolean
Default:
falseExample:
trueDeclared by:
services.offlineimap.package¶
Offlineimap derivation to use.
Type: package
Default:
"pkgs.offlineimap"Declared by:
services.offlineimap.install¶
Whether to install a user service for Offlineimap. Once the service is started, emails will be fetched automatically.
The service must be manually started for each user with “systemctl –user start offlineimap” or globally through``services.offlineimap.enable``.
Type: boolean
Default:
falseDeclared by:
services.offlineimap.onCalendar¶
How often is offlineimap started. Default is ‘*:0/3’ meaning every 3 minutes. See systemd.time(7) for more information about the format.
Type: string
Default:
"\*:0/3"Declared by:
services.offlineimap.path¶
List of derivations to put in Offlineimap’s path.
Type: list of paths
Default: ``[
]``
Example:
[ pkgs.pass pkgs.bash pkgs.notmuch ]Declared by:
services.offlineimap.timeoutStartSec¶
How long waiting for offlineimap before killing it. Default is ‘120sec’ meaning every 2 minutes. See systemd.time(7) for more information about the format.
Type: string
Default:
"120sec"Declared by:
services.ofono.enable¶
Whether to enable Ofono.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.ofono.plugins¶
The list of plugins to install.
Type: list of packages
Default: ``[
]``
Example:
[ pkgs.modem-manager-gui ]Declared by:
services.oidentd.enable¶
Whether to enable ‘oidentd’, an implementation of the Ident protocol (RFC 1413). It allows remote systems to identify the name of the user associated with a TCP connection.
Type: boolean
Default:
falseDeclared by:
services.openafsClient.enable¶
Whether to enable the OpenAFS client.
Type: boolean
Default:
falseDeclared by:
services.openafsClient.packages.module¶
OpenAFS kernel module package. MUST match the userland package!
Type: package
Default:
"config.boot.kernelPackages.openafs"Declared by:
services.openafsClient.packages.programs¶
OpenAFS programs package. MUST match the kernel module package!
Type: package
Default:
"getBin pkgs.openafs"Declared by:
services.openafsClient.afsdb¶
Resolve cells via AFSDB DNS records.
Type: boolean
Default:
trueDeclared by:
services.openafsClient.cache.blocks¶
Cache size in 1KB blocks.
Type: signed integer
Default:
100000Declared by:
services.openafsClient.cache.chunksize¶
Size of each cache chunk given in powers of 2.
0resets the chunk size to its default values (13 (8 KB) for memcache, 18-20 (256 KB to 1 MB) for diskcache). Maximum value is 30. Important performance parameter. Set to higher values when dealing with large files.Type: integer between 0 and 30 (both inclusive)
Default:
0Declared by:
services.openafsClient.cache.directory¶
Cache directory.
Type: string
Default:
"/var/cache/openafs"Declared by:
services.openafsClient.cache.diskless¶
Use in-memory cache for diskless machines. Has no real performance benefit anymore.
Type: boolean
Default:
falseDeclared by:
services.openafsClient.cellName¶
Cell name.
Type: string
Default:
""Example:
"grand.central.org"Declared by:
services.openafsClient.cellServDB¶
This cell’s database server records, added to the global CellServDB. See CellServDB(5) man page for syntax. Ignored when``afsdb`` is set to
true.Type: list of submodules
Default: ``[
]``
Example:
'' [ { ip = "1.2.3.4"; dnsname = "first.afsdb.server.dns.fqdn.org"; } { ip = "2.3.4.5"; dnsname = "second.afsdb.server.dns.fqdn.org"; } ] ''Declared by:
services.openafsClient.cellServDB.*.dnsname¶
DNS full-qualified domain name of a database server
Type: string
Default:
""Example:
"afs.example.org"Declared by:
services.openafsClient.cellServDB.*.ip¶
IP Address of a database server
Type: string
Default:
""Example:
"1.2.3.4"Declared by:
services.openafsClient.crypt¶
Whether to enable (weak) protocol encryption.
Type: boolean
Default:
trueDeclared by:
services.openafsClient.daemons¶
Number of daemons to serve user requests. Numbers higher than 6 usually do no increase performance. Default is sufficient for up to five concurrent users.
Type: signed integer
Default:
2Declared by:
services.openafsClient.fakestat¶
Return fake data on stat() calls. If
true, always do so. Iffalse, only do so for cross-cell mounts (as these are potentially expensive).Type: boolean
Default:
falseDeclared by:
services.openafsClient.inumcalc¶
Inode calculation method.
compatis computationally less expensive, butmd5greatly reduces the likelihood of inode collisions in larger scenarios involving multiple cells mounted into one AFS space.Type: string matching the pattern compat|md5
Default:
"compat"Declared by:
services.openafsClient.mountPoint¶
Mountpoint of the AFS file tree, conventionally``/afs``. When set to a different value, only cross-cells that use the same value can be accessed.
Type: string
Default:
"/afs"Declared by:
services.openafsClient.sparse¶
Minimal cell list in /afs.
Type: boolean
Default:
trueDeclared by:
services.openafsClient.startDisconnected¶
Start up in disconnected mode. You need to execute``fs disco online`` (as root) to switch to connected mode. Useful for roaming devices.
Type: boolean
Default:
falseDeclared by:
services.openafsServer.enable¶
Whether to enable the OpenAFS server. An OpenAFS server needs a complex setup. So, be aware that enabling this service and setting some options does not give you a turn-key-ready solution. You need at least a running Kerberos 5 setup, as OpenAFS relies on it for authentication. See the Guide “QuickStartUnix” coming with``pkgs.openafs.doc`` for complete setup instructions.
Type: boolean
Default:
falseDeclared by:
services.openafsServer.package¶
OpenAFS package for the server binaries
Type: package
Default:
"pkgs.openafs.server or pkgs.openafs"Declared by:
services.openafsServer.advertisedAddresses¶
List of IP addresses this server is advertised under. See NetInfo(5)
Type: unspecified
Default: ``[
]``
Declared by:
services.openafsServer.cellName¶
Cell name, this server will serve.
Type: string
Default:
""Example:
"grand.central.org"Declared by:
services.openafsServer.cellServDB¶
Definition of all cell-local database server machines.
Type: list of submodules
Default: ``[
]``
Declared by:
services.openafsServer.cellServDB.*.dnsname¶
DNS full-qualified domain name of a database server
Type: string
Default:
""Example:
"afs.example.org"Declared by:
services.openafsServer.cellServDB.*.ip¶
IP Address of a database server
Type: string
Default:
""Example:
"1.2.3.4"Declared by:
services.openafsServer.dottedPrincipals¶
If enabled, allow principal names containing (.) dots. Enabling this has security implications!
Type: boolean
Default:
falseDeclared by:
services.openafsServer.roles.backup.enable¶
Backup server role. Use in conjunction with the``database`` role to maintain the Backup Database. Normally only used in conjunction with tape storage or IBM’s Tivoli Storage Manager.
Type: boolean
Default:
falseDeclared by:
services.openafsServer.roles.backup.buserverArgs¶
Arguments to the buserver process. See its man page.
Type: string
Default:
""Example:
"-p 8"Declared by:
services.openafsServer.roles.backup.cellServDB¶
Definition of all cell-local backup database server machines. Use this when your cell uses less backup database servers than other database server machines.
Type: list of submodules
Default: ``[
]``
Declared by:
services.openafsServer.roles.backup.cellServDB.*.dnsname¶
DNS full-qualified domain name of a database server
Type: string
Default:
""Example:
"afs.example.org"Declared by:
services.openafsServer.roles.backup.cellServDB.*.ip¶
IP Address of a database server
Type: string
Default:
""Example:
"1.2.3.4"Declared by:
services.openafsServer.roles.database.enable¶
Database server role, maintains the Volume Location Database, Protection Database (and Backup Database, see``backup`` role). There can be multiple servers in the database role for replication, which then need reliable network connection to each other.
Servers in this role appear in AFSDB DNS records or the CellServDB.
Type: boolean
Default:
trueDeclared by:
services.openafsServer.roles.database.ptserverArgs¶
Arguments to the ptserver process. See its man page.
Type: string
Default:
""Example:
"-restricted -default_access S---- S-M---"Declared by:
services.openafsServer.roles.database.vlserverArgs¶
Arguments to the vlserver process. See its man page.
Type: string
Default:
""Example:
"-rxbind"Declared by:
services.openafsServer.roles.fileserver.enable¶
Fileserver role, serves files and volumes from its local storage.
Type: boolean
Default:
trueDeclared by:
services.openafsServer.roles.fileserver.fileserverArgs¶
Arguments to the dafileserver process. See its man page.
Type: string
Default:
"-vattachpar 128 -vhashsize 11 -L -rxpck 400 -cb 1000000"Declared by:
services.openafsServer.roles.fileserver.salvagerArgs¶
Arguments to the dasalvager process. See its man page.
Type: string
Default:
""Example:
"-showlog -showmounts"Declared by:
services.openafsServer.roles.fileserver.salvageserverArgs¶
Arguments to the salvageserver process. See its man page.
Type: string
Default:
""Example:
"-showlog"Declared by:
services.openafsServer.roles.fileserver.volserverArgs¶
Arguments to the davolserver process. See its man page.
Type: string
Default:
""Example:
"-sync never"Declared by:
services.openafsServer.udpPacketSize¶
UDP packet size to use in Bytes. Higher values can speed up communications. The default of 1 MB is a sufficient in most cases. Make sure to increase the kernel’s UDP buffer size accordingly via
net.core(w|r|opt)mem_maxsysctl.Type: signed integer
Default:
1310720Declared by:
services.openarena.enable¶
Whether to enable OpenArena.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.openarena.extraFlags¶
Extra flags to pass to oa_ded
Type: list of strings
Default: ``[
]``
Example:
[ "+set dedicated 2" "+set sv_hostname 'My NixOS OpenArena Server'" "+map oa_dm1" ]Declared by:
services.openarena.openPorts¶
Whether to open firewall ports for OpenArena
Type: boolean
Default:
falseDeclared by:
services.opendkim.enable¶
Whether to enable the OpenDKIM sender authentication system.
Type: boolean
Default:
falseDeclared by:
services.opendkim.configFile¶
Additional opendkim configuration.
Type: null or path
Default:
nullDeclared by:
services.opendkim.domains¶
Local domains set (see
opendkim(8)for more information on datasets). Messages from them are signed, not verified.Type: string
Default:
"csl:nixos"Example:
"csl:example.com,mydomain.net"Declared by:
services.opendkim.group¶
Group for the daemon.
Type: string
Default:
"opendkim"Declared by:
services.opendkim.keyPath¶
The path that opendkim should put its generated private keys into. The DNS settings will be found in this directory with the name selector.txt.
Type: path
Default:
"/var/lib/opendkim/keys"Declared by:
services.opendkim.selector¶
Selector to use when signing.
Type: string
Declared by:
services.opendkim.socket¶
Socket which is used for communication with OpenDKIM.
Type: string
Default:
"local:/run/opendkim/opendkim.sock"Declared by:
services.opendkim.user¶
User for the daemon.
Type: string
Default:
"opendkim"Declared by:
services.openfire.enable¶
Whether to enable OpenFire XMPP server.
Type: unspecified
Default:
falseDeclared by:
services.openfire.usePostgreSQL¶
Whether you use PostgreSQL service for your storage back-end.
Type: unspecified
Default:
trueDeclared by:
services.openldap.enable¶
Whether to enable the ldap server.
Type: boolean
Default:
falseDeclared by:
services.openldap.configDir¶
Use this optional config directory instead of using slapd.conf
Type: null or path
Default:
nullExample:
"/var/db/slapd.d"Declared by:
services.openldap.dataDir¶
The database directory.
Type: path
Default:
"/var/db/openldap"Declared by:
services.openldap.database¶
Database type to use for the LDAP. This setting will be ignored if configDir is set.
Type: string
Default:
"mdb"Declared by:
services.openldap.declarativeContents¶
Declarative contents for the LDAP database, in LDIF format.
Note a few facts when using it. First, the database*must* be stored in the directory defined bydataDir. Second, all dataDir will be erased when starting the LDAP server. Third, modifications to the database are not prevented, they are just dropped on the next reboot of the server. Finally, performance-wise the database and indexes are rebuilt on each server startup, so this will slow down server startup, especially with large databases.
Type: null or strings concatenated with “\n”
Default:
nullExample:
'' dn: dc=example,dc=org objectClass: domain dc: example dn: ou=users,dc=example,dc=org objectClass = organizationalUnit ou: users # ... ''Declared by:
services.openldap.defaultSchemas¶
Include the default schemas core, cosine, inetorgperson and nis. This setting will be ignored if configDir is set.
Type: boolean
Default:
trueDeclared by:
services.openldap.extraConfig¶
slapd.conf configuration
Type: strings concatenated with “\n”
Default:
""Example:
'' include ${pkgs.openldap.out}/etc/schema/core.schema include ${pkgs.openldap.out}/etc/schema/cosine.schema include ${pkgs.openldap.out}/etc/schema/inetorgperson.schema include ${pkgs.openldap.out}/etc/schema/nis.schema database bdb suffix dc=example,dc=org rootdn cn=admin,dc=example,dc=org # NOTE: change after first start rootpw secret directory /var/db/openldap ''Declared by:
services.openldap.extraDatabaseConfig¶
slapd.conf configuration after the database option. This setting will be ignored if configDir is set.
Type: strings concatenated with “\n”
Default:
""Example:
'' # Indices to maintain for this directory # unique id so equality match only index uid eq # allows general searching on commonname, givenname and email index cn,gn,mail eq,sub # allows multiple variants on surname searching index sn eq,sub # sub above includes subintial,subany,subfinal # optimise department searches index ou eq # if searches will include objectClass uncomment following # index objectClass eq # shows use of default index parameter index default eq,sub # indices missing - uses default eq,sub index telephonenumber # other database parameters # read more in slapd.conf reference section cachesize 10000 checkpoint 128 15 ''Declared by:
services.openldap.group¶
Group account under which slapd runs.
Type: string
Default:
"openldap"Declared by:
services.openldap.logLevel¶
The log level selector of slapd.
Type: string
Default:
"0"Example:
"acl trace"Declared by:
services.openldap.rootdn¶
Specify the distinguished name that is not subject to access control or administrative limit restrictions for operations on this database. This setting will be ignored if configDir is set.
Type: string
Example:
"cn=admin,dc=example,dc=org"Declared by:
services.openldap.rootpw¶
Password for the root user. This setting will be ignored if configDir is set. Using this option will store the root password in plain text in the world-readable nix store. To avoid this the
rootpwFilecan be used.Type: null or string
Default:
nullDeclared by:
services.openldap.rootpwFile¶
Password file for the root user. The file should contain the string
rootpwfollowed by the password. e.g.:rootpw mysecurepasswordType: null or string
Default:
nullDeclared by:
services.openldap.suffix¶
Specify the DN suffix of queries that will be passed to this backend database. This setting will be ignored if configDir is set.
Type: string
Example:
"dc=example,dc=org"Declared by:
services.openldap.urlList¶
URL list slapd should listen on.
Type: list of strings
Default:
[ "ldap:///" ]Example:
[ "ldaps:///" ]Declared by:
services.openldap.user¶
User account under which slapd runs.
Type: string
Default:
"openldap"Declared by:
services.openntpd.enable¶
Whether to enable OpenNTP time synchronization server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.openntpd.extraConfig¶
Additional text appended to
openntpd.conf.Type: strings concatenated with “\n”
Default:
""Example:
'' listen on 127.0.0.1 listen on ::1 ''Declared by:
services.openntpd.extraOptions¶
Extra options used when launching openntpd.
Type: strings concatenated with ” “
Default:
""Example:
"-s"Declared by:
services.openntpd.servers¶
The set of NTP servers from which to synchronise.
Type: list of strings
Default:
[ "0.nixos.pool.ntp.org" "1.nixos.pool.ntp.org" "2.nixos.pool.ntp.org" "3.nixos.pool.ntp.org" ]Declared by:
services.opensmtpd.enable¶
Whether to enable the OpenSMTPD server.
Type: boolean
Default:
falseDeclared by:
services.opensmtpd.package¶
The OpenSMTPD package to use.
Type: package
Default:
"pkgs.opensmtpd"Declared by:
services.opensmtpd.addSendmailToSystemPath¶
Whether to add OpenSMTPD’s sendmail binary to the system path or not.
Type: boolean
Default:
trueDeclared by:
services.opensmtpd.extraServerArgs¶
Extra command line arguments provided when the smtpd process is started.
Type: list of strings
Default: ``[
]``
Example:
[ "-v" "-P mta" ]Declared by:
services.opensmtpd.procPackages¶
Packages to search for filters, tables, queues, and schedulers.
Add OpenSMTPD-extras here if you want to use the filters, etc. from that package.
Type: list of packages
Default: ``[
]``
Declared by:
services.opensmtpd.serverConfiguration¶
The contents of the smtpd.conf configuration file. See the OpenSMTPD documentation for syntax information.
Type: strings concatenated with “\n”
Example:
'' listen on lo accept for any deliver to lmtp localhost:24 ''Declared by:
services.openssh.enable¶
Whether to enable the OpenSSH secure shell daemon, which allows secure remote logins.
Type: boolean
Default:
falseDeclared by:
services.openssh.allowSFTP¶
Whether to enable the SFTP subsystem in the SSH daemon. This enables the use of commands such as sftp and:command:sshfs.
Type: boolean
Default:
trueDeclared by:
services.openssh.authorizedKeysFiles¶
services.openssh.challengeResponseAuthentication¶
Specifies whether challenge/response authentication is allowed.
Type: boolean
Default:
trueDeclared by:
services.openssh.ciphers¶
Allowed ciphers
Defaults to recommended settings from both` <https://stribika.github.io/2015/01/04/secure-secure-shell.html>`_ and` <https://wiki.mozilla.org/Security/Guidelines/OpenSSH#Modern_.28OpenSSH_6.7.2B.29>`_
Type: list of strings
Default:
[ "chacha20-poly1305@openssh.com" "aes256-gcm@openssh.com" "aes128-gcm@openssh.com" "aes256-ctr" "aes192-ctr" "aes128-ctr" ]Declared by:
services.openssh.extraConfig¶
Verbatim contents of
sshd_config.Type: strings concatenated with “\n”
Default:
""Declared by:
services.openssh.forwardX11¶
Whether to allow X11 connections to be forwarded.
Type: boolean
Default:
falseDeclared by:
services.openssh.gatewayPorts¶
Specifies whether remote hosts are allowed to connect to ports forwarded for the client. Seesshd_config5.
Type: string
Default:
"no"Declared by:
services.openssh.hostKeys¶
NixOS can automatically generate SSH host keys. This option specifies the path, type and size of each key. Seessh-keygen1 for supported types and sizes.
Type: list of attribute sets
Default: ``[
{ bits = 4096; path = “/etc/ssh/ssh_host_rsa_key”; type = “rsa”; }
{ path = “/etc/ssh/ssh_host_ed25519_key”; type = “ed25519”; }
]``
Example: ``[
{ bits = 4096; openSSHFormat = true; path = “/etc/ssh/ssh_host_rsa_key”; rounds = 100; type = “rsa”; }
{ comment = “key comment”; path = “/etc/ssh/ssh_host_ed25519_key”; rounds = 100; type = “ed25519”; }
]``
Declared by:
services.openssh.kexAlgorithms¶
Allowed key exchange algorithms
Defaults to recommended settings from both` <https://stribika.github.io/2015/01/04/secure-secure-shell.html>`_ and` <https://wiki.mozilla.org/Security/Guidelines/OpenSSH#Modern_.28OpenSSH_6.7.2B.29>`_
Type: list of strings
Default:
[ "curve25519-sha256@libssh.org" "diffie-hellman-group-exchange-sha256" ]Declared by:
services.openssh.knownHosts¶
Alias of .
Type: list or attribute set of submodules
Declared by:
services.openssh.knownHosts.<name?>.certAuthority¶
This public key is an SSH certificate authority, rather than an individual host’s key.
Type: boolean
Default:
falseDeclared by:
services.openssh.knownHosts.<name?>.hostNames¶
A list of host names and/or IP numbers used for accessing the host’s ssh service.
Type: list of strings
Default: ``[
]``
Declared by:
services.openssh.knownHosts.<name?>.publicKey¶
The public key data for the host. You can fetch a public key from a running SSH server with the ssh-keyscan command. The public key should not include any host names, only the key type and the key itself.
Type: null or string
Default:
nullExample:
"ecdsa-sha2-nistp521 AAAAE2VjZHN...UEPg=="Declared by:
services.openssh.knownHosts.<name?>.publicKeyFile¶
The path to the public key file for the host. The public key file is read at build time and saved in the Nix store. You can fetch a public key file from a running SSH server with the ssh-keyscan command. The content of the file should follow the same format as described for the
publicKeyoption.Type: null or path
Default:
nullDeclared by:
services.openssh.listenAddresses¶
List of addresses and ports to listen on (ListenAddress directive in config). If port is not specified for address sshd will listen on all ports specified by
portsoption. NOTE: this will override default listening on all local addresses and port 22. NOTE: setting this option won’t automatically enable given ports in firewall configuration.Type: list of submodules
Default: ``[
]``
Example: ``[
{ addr = “192.168.3.1”; port = 22; }
{ addr = “0.0.0.0”; port = 64022; }
]``
Declared by:
services.openssh.listenAddresses.*.addr¶
Host, IPv4 or IPv6 address to listen to.
Type: null or string
Default:
nullDeclared by:
services.openssh.listenAddresses.*.port¶
Port to listen to.
Type: null or signed integer
Default:
nullDeclared by:
services.openssh.logLevel¶
Gives the verbosity level that is used when logging messages from sshd(8). The possible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is VERBOSE. DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify higher levels of debugging output. Logging with a DEBUG level violates the privacy of users and is not recommended.
LogLevel VERBOSE logs user’s key fingerprint on login. Needed to have a clear audit track of which key was used to log in.
Type: one of “QUIET”, “FATAL”, “ERROR”, “INFO”, “VERBOSE”, “DEBUG”, “DEBUG1”, “DEBUG2”, “DEBUG3”
Default:
"VERBOSE"Declared by:
services.openssh.macs¶
Allowed MACs
Defaults to recommended settings from both` <https://stribika.github.io/2015/01/04/secure-secure-shell.html>`_ and` <https://wiki.mozilla.org/Security/Guidelines/OpenSSH#Modern_.28OpenSSH_6.7.2B.29>`_
Type: list of strings
Default:
[ "hmac-sha2-512-etm@openssh.com" "hmac-sha2-256-etm@openssh.com" "umac-128-etm@openssh.com" "hmac-sha2-512" "hmac-sha2-256" "umac-128@openssh.com" ]Declared by:
services.openssh.moduliFile¶
Path to
modulifile to install in``/etc/ssh/moduli``. If this option is unset, then themodulifile shipped with OpenSSH will be used.Type: path
Example:
"/etc/my-local-ssh-moduli;"Declared by:
services.openssh.openFirewall¶
Whether to automatically open the specified ports in the firewall.
Type: boolean
Default:
trueDeclared by:
services.openssh.passwordAuthentication¶
Specifies whether password authentication is allowed.
Type: boolean
Default:
trueDeclared by:
services.openssh.permitRootLogin¶
Whether the root user can login using ssh.
Type: one of “yes”, “without-password”, “prohibit-password”, “forced-commands-only”, “no”
Default:
"prohibit-password"Declared by:
services.openssh.ports¶
Specifies on which ports the SSH daemon listens.
Type: list of 16 bit unsigned integer; between 0 and 65535 (both inclusive)s
Default:
[ 22 ]Declared by:
services.openssh.sftpFlags¶
Commandline flags to add to sftp-server.
Type: list of strings
Default: ``[
]``
Example:
[ "-f AUTHPRIV" "-l INFO" ]Declared by:
services.openssh.startWhenNeeded¶
If set, sshd is socket-activated; that is, instead of having it permanently running as a daemon, systemd will start an instance for each incoming connection.
Type: boolean
Default:
falseDeclared by:
services.openssh.useDns¶
Specifies whether sshd(8) should look up the remote host name, and to check that the resolved host name for the remote IP address maps back to the very same IP address. If this option is set to no (the default) then only addresses and not host names may be used in ~/.ssh/authorized_keys from and sshd_config Match Host directives.
Type: boolean
Default:
falseDeclared by:
services.opentracker.enable¶
Whether to enable opentracker.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.opentracker.package¶
opentracker package to use
Type: package
Default:
"pkgs.opentracker"Declared by:
services.opentracker.extraOptions¶
Configuration Arguments for opentracker See https://erdgeist.org/arts/software/opentracker/ for all params
Type: strings concatenated with ” “
Default:
""Declared by:
services.opentsdb.enable¶
Whether to run OpenTSDB.
Type: boolean
Default:
falseDeclared by:
services.opentsdb.package¶
OpenTSDB package to use.
Type: package
Default:
"pkgs.opentsdb"Example:
pkgs.opentsdbDeclared by:
services.opentsdb.config¶
The contents of OpenTSDB’s configuration file
Type: strings concatenated with “\n”
Default:
'' tsd.core.auto_create_metrics = true tsd.http.request.enable_chunked = true ''Declared by:
services.opentsdb.group¶
Group account under which OpenTSDB runs.
Type: string
Default:
"opentsdb"Declared by:
services.opentsdb.port¶
Which port OpenTSDB listens on.
Type: signed integer
Default:
4242Declared by:
services.opentsdb.user¶
User account under which OpenTSDB runs.
Type: string
Default:
"opentsdb"Declared by:
services.openvpn.servers¶
Each attribute of this option defines a systemd service that runs an OpenVPN instance. These can be OpenVPN servers or clients. The name of each systemd service is``openvpn-name.service``, where name is the corresponding attribute name.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ server = { config = '' # Simplest server configuration: https://community.openvpn.net/openvpn/wiki/StaticKeyMiniHowto # server : dev tun ifconfig 10.8.0.1 10.8.0.2 secret /root/static.key ''; up = "ip route add ..."; down = "ip route del ..."; }; client = { config = '' client remote vpn.example.org dev tun proto tcp-client port 8080 ca /root/.vpn/ca.crt cert /root/.vpn/alice.crt key /root/.vpn/alice.key ''; up = "echo nameserver $nameserver | ${pkgs.openresolv}/sbin/resolvconf -m 0 -a $dev"; down = "${pkgs.openresolv}/sbin/resolvconf -d $dev"; }; }Declared by:
services.openvpn.servers.<name>.authUserPass¶
This option can be used to store the username / password credentials with the “auth-user-pass” authentication method.
WARNING: Using this option will put the credentials WORLD-READABLE in the Nix store!
Type: null or submodule
Default:
nullDeclared by:
services.openvpn.servers.<name>.authUserPass.password¶
The password to store inside the credentials file.
Type: string
Declared by:
services.openvpn.servers.<name>.authUserPass.username¶
The username to store inside the credentials file.
Type: string
Declared by:
services.openvpn.servers.<name>.autoStart¶
Whether this OpenVPN instance should be started automatically.
Type: boolean
Default:
trueDeclared by:
services.openvpn.servers.<name>.config¶
Configuration of this OpenVPN instance. Seeopenvpn8 for details.
To import an external config file, use the following definition:
config = "config /path/to/config.ovpn"Type: strings concatenated with “\n”
Declared by:
services.openvpn.servers.<name>.down¶
Shell commands executed when the instance is shutting down.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.openvpn.servers.<name>.up¶
Shell commands executed when the instance is starting.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.openvpn.servers.<name>.updateResolvConf¶
Use the script from the update-resolv-conf package to automatically update resolv.conf with the DNS information provided by openvpn. The script will be run after the “up” commands and before the “down” commands.
Type: boolean
Default:
falseDeclared by:
services.orangefs.client.enable¶
Whether to enable OrangeFS client daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.orangefs.client.extraOptions¶
services.orangefs.client.fileSystems¶
The orangefs file systems to be mounted. This option is prefered over using directly since the pvfs client service needs to be running for it to be mounted.
Type: list of submodules
Example: ``[
{ mountPoint = “/orangefs”; target = “tcp://server:3334/orangefs”; }
]``
Declared by:
services.orangefs.client.fileSystems.*.mountPoint¶
Mount point.
Type: string
Default:
"/orangefs"Declared by:
services.orangefs.client.fileSystems.*.options¶
services.orangefs.client.fileSystems.*.target¶
Target URL
Type: string
Default:
nullExample:
"tcp://server:3334/orangefs"Declared by:
services.orangefs.server.enable¶
Whether to enable OrangeFS server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.orangefs.server.BMIModules¶
List of BMI modules to load.
Type: list of strings
Default:
[ "bmi_tcp" ]Example:
[ "bmi_tcp" "bmi_ib" ]Declared by:
services.orangefs.server.dataStorageSpace¶
Directory for data storage.
Type: string
Default:
nullExample:
"/data/storage"Declared by:
services.orangefs.server.extraConfig¶
Extra config for the global section.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.orangefs.server.extraDefaults¶
Extra config for
<Defaults>section.Type: strings concatenated with “\n”
Default:
""Declared by:
services.orangefs.server.fileSystems¶
These options will create the
<FileSystem>sections of config file.Type: attribute set of submodules
Default:
{ orangefs = {}; }Example:
{ fs1 = { id = 101; }; fs2 = { id = 102; }; }Declared by:
services.orangefs.server.fileSystems.<name>.extraConfig¶
Extra config for
<FileSystem>section.Type: strings concatenated with “\n”
Default:
""Declared by:
services.orangefs.server.fileSystems.<name>.extraStorageHints¶
Extra config for
<StorageHints>section.Type: strings concatenated with “\n”
Default:
""Declared by:
services.orangefs.server.fileSystems.<name>.id¶
File system ID (must be unique within configuration).
Type: signed integer
Default:
1Declared by:
services.orangefs.server.fileSystems.<name>.rootHandle¶
File system root ID.
Type: signed integer
Default:
3Declared by:
services.orangefs.server.fileSystems.<name>.troveSyncData¶
Sync data.
Type: boolean
Default:
falseDeclared by:
services.orangefs.server.fileSystems.<name>.troveSyncMeta¶
Sync meta data.
Type: boolean
Default:
trueDeclared by:
services.orangefs.server.logType¶
Destination for log messages.
Type: one of “file”, “syslog”
Default:
"syslog"Declared by:
services.orangefs.server.metadataStorageSpace¶
Directory for meta data storage.
Type: string
Default:
nullExample:
"/data/meta"Declared by:
services.orangefs.server.servers¶
URLs for storage server including port. The attribute names define the server alias.
Type: attribute set of strings
Default: ``{
}``
Example:
'' { node1="tcp://node1:3334"; node2="tcp://node2:3334"; } ''Declared by:
services.osrm.enable¶
Enable the OSRM service.
Type: boolean
Default:
falseDeclared by:
services.osrm.address¶
IP address on which the web server will listen.
Type: string
Default:
"0.0.0.0"Declared by:
services.osrm.algorithm¶
Algorithm to use for the data. Must be one of CH, CoreCH, MLD
Type: one of “CH”, “CoreCH”, “MLD”
Default:
"MLD"Declared by:
services.osrm.dataFile¶
Data file location
Type: path
Example:
"/var/lib/osrm/berlin-latest.osrm"Declared by:
services.osrm.extraFlags¶
Extra command line arguments passed to osrm-routed
Type: list of strings
Default: ``[
]``
Example:
[ "--max-table-size 1000" "--max-matching-size 1000" ]Declared by:
services.osrm.port¶
Port on which the web server will run.
Type: signed integer
Default:
5000Declared by:
services.osrm.threads¶
Number of threads to use.
Type: signed integer
Default:
4Declared by:
services.ostinato.enable¶
Whether to enable Ostinato agent-controller (Drone).
Type: boolean
Default:
falseExample:
trueDeclared by:
services.ostinato.port¶
Port to listen on.
Type: signed integer
Default:
7878Declared by:
services.ostinato.portList.exclude¶
A list of ports does not appear on the port list managed by drone.
Type: list of strings
Default: ``[
]``
Example:
''[ "usbmon*" "eth0" ]''Declared by:
services.ostinato.portList.include¶
For a port to pass the filter and appear on the port list managed by drone, it be allowed by this include list.
Type: list of strings
Default: ``[
]``
Example:
''[ "eth*" "lo*" ]''Declared by:
services.ostinato.rateAccuracy¶
To ensure that the actual transmit rate is as close as possible to the configured transmit rate, Drone runs a busy-wait loop. While this provides the maximum accuracy possible, the CPU utilization is 100% while the transmit is on. You can however, sacrifice the accuracy to reduce the CPU load.
Type: one of “High”, “Low”
Default:
"High"Declared by:
services.ostinato.rpcServer.address¶
By default, the Drone RPC server will listen on all interfaces and local IPv4 adresses for incoming connections from clients. Specify a single IPv4 or IPv6 address if you want to restrict that. To listen on any IPv6 address, use
*Type:* stringDefault:
"0.0.0.0"Declared by:
services.owamp.enable¶
Whether to enable Enable OWAMP server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.oxidized.enable¶
Whether to enable the oxidized configuration backup service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.oxidized.configFile¶
Path to the oxidized configuration file.
Type: path
Example:
pkgs.writeText "oxidized-config.yml" '' --- debug: true use_syslog: true input: default: ssh ssh: secure: true interval: 3600 model_map: dell: powerconnect hp: procurve source: default: csv csv: delimiter: !ruby/regexp /:/ file: "/var/lib/oxidized/.config/oxidized/router.db" map: name: 0 model: 1 username: 2 password: 3 pid: "/var/lib/oxidized/.config/oxidized/pid" rest: 127.0.0.1:8888 retries: 3 # ... additional config '';Declared by:
services.oxidized.dataDir¶
State directory for the oxidized service.
Type: path
Default:
"/var/lib/oxidized"Declared by:
services.oxidized.group¶
Group under which the oxidized service runs.
Type: string
Default:
"oxidized"Declared by:
services.oxidized.routerDB¶
Path to the file/database which contains the targets for oxidized.
Type: path
Example:
pkgs.writeText "oxidized-router.db" '' hostname-sw1:powerconnect:username1:password2 hostname-sw2:procurve:username2:password2 # ... additional hosts ''Declared by:
services.oxidized.user¶
User under which the oxidized service runs.
Type: string
Default:
"oxidized"Declared by:
services.pantheon.apps.enable¶
Whether to enable Pantheon default applications.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.pantheon.contractor.enable¶
Whether to enable contractor, a desktop-wide extension service used by Pantheon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.paperless.enable¶
Enable Paperless.
When started, the Paperless database is automatically created if it doesn’t exist and updated if the Paperless package has changed. Both tasks are achieved by running a Django migration.
Type: boolean
Default:
falseDeclared by:
services.paperless.package¶
The Paperless package to use.
Type: package
Default:
"pkgs.paperless"Declared by:
services.paperless.address¶
Server listening address.
Type: string
Default:
"localhost"Declared by:
services.paperless.consumptionDir¶
Directory from which new documents are imported.
Type: string
Default:
"\\${dataDir}/consume"Declared by:
services.paperless.consumptionDirIsPublic¶
Whether all users can write to the consumption dir.
Type: boolean
Default:
falseDeclared by:
services.paperless.dataDir¶
Directory to store the Paperless data.
Type: string
Default:
"/var/lib/paperless"Declared by:
services.paperless.extraConfig¶
Extra paperless config options.
The config values are evaluated as double-quoted Bash string literals.
See
paperless-src/paperless.conf.examplefor available options.To enable user authentication, set
PAPERLESS_DISABLE_LOGIN = "false"and run the shell command$dataDir/paperless-manage createsuperuser.To define secret options without storing them in /nix/store, use the following pattern:
PAPERLESS_PASSPHRASE = "$(< /etc/my_passphrase_file)"Type: attribute set
Default: ``{
}``
Example:
{ PAPERLESS_OCR_LANGUAGE = "deu"; }Declared by:
services.paperless.manage¶
A script to manage the Paperless instance. It wraps Django’s manage.py and is also available at``$dataDir/manage-paperless``
Type: package (read only)
Default:
*(build of paperless)*Declared by:
services.paperless.ocrLanguages¶
Languages available for OCR via Tesseract, specified as``ISO 639-2/T`` language codes. If unset, defaults to all available languages.
Type: null or list of strings
Default:
nullExample:
[ "eng" "spa" "jpn" ]Declared by:
services.paperless.port¶
Server port to listen on.
Type: signed integer
Default:
28981Declared by:
services.paperless.user¶
User under which Paperless runs.
Type: string
Default:
"paperless"Declared by:
services.parsoid.enable¶
Whether to enable Parsoid – bidirectional wikitext parser.
Type: boolean
Default:
falseDeclared by:
services.parsoid.extraConfig¶
Extra configuration to add to parsoid configuration.
Type: attribute set
Default: ``{
}``
Declared by:
services.parsoid.interface¶
Interface to listen on.
Type: string
Default:
"127.0.0.1"Declared by:
services.parsoid.port¶
Port to listen on.
Type: signed integer
Default:
8000Declared by:
services.parsoid.wikis¶
Used MediaWiki API endpoints.
Type: list of string or attribute sets
Example:
[ "http://localhost/api.php" ]Declared by:
services.parsoid.workers¶
Number of Parsoid workers.
Type: signed integer
Default:
2Declared by:
services.pcscd.enable¶
Whether to enable PCSC-Lite daemon.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.pcscd.plugins¶
Plugin packages to be used for PCSC-Lite.
Type: list of packages
Default:
"[ pkgs.ccid ]"Example:
[ pkgs.pcsc-cyberjack ]Declared by:
services.pcscd.readerConfig¶
Configuration for devices that aren’t hotpluggable.
See reader.conf5 for valid options.
Type: strings concatenated with “\n”
Default:
""Example:
'' FRIENDLYNAME "Some serial reader" DEVICENAME /dev/ttyS0 LIBPATH /path/to/serial_reader.so CHANNELID 1 ''Declared by:
services.pdns-recursor.enable¶
Whether to enable PowerDNS Recursor, a recursive DNS server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.pdns-recursor.api.address¶
IP address Recursor REST API server will bind to.
Type: string
Default:
"0.0.0.0"Declared by:
services.pdns-recursor.api.allowFrom¶
IP address ranges of clients allowed to make API requests.
Type: list of strings
Default:
[ "0.0.0.0/0" ]Declared by:
services.pdns-recursor.api.port¶
Port number Recursor REST API server will bind to.
Type: signed integer
Default:
8082Declared by:
services.pdns-recursor.dns.address¶
IP address Recursor DNS server will bind to.
Type: string
Default:
"0.0.0.0"Declared by:
services.pdns-recursor.dns.allowFrom¶
IP address ranges of clients allowed to make DNS queries.
Type: list of strings
Default:
[ "10.0.0.0/8" "172.16.0.0/12" "192.168.0.0/16" ]Example:
[ "0.0.0.0/0" ]Declared by:
services.pdns-recursor.dns.port¶
Port number Recursor DNS server will bind to.
Type: signed integer
Default:
53Declared by:
services.pdns-recursor.dnssecValidation¶
Controls the level of DNSSEC processing done by the PowerDNS Recursor. See https://doc.powerdns.com/md/recursor/dnssec/ for a detailed explanation.
Type: one of “off”, “process-no-validate”, “process”, “log-fail”, “validate”
Default:
"validate"Declared by:
services.pdns-recursor.exportHosts¶
Whether to export names and IP addresses defined in /etc/hosts.
Type: boolean
Default:
falseDeclared by:
services.pdns-recursor.forwardZones¶
DNS zones to be forwarded to other authoritative servers.
Type: attribute set
Default: ``{
}``
Declared by:
services.pdns-recursor.forwardZonesRecurse¶
DNS zones to be forwarded to other recursive servers.
Type: attribute set
Default: ``{
}``
Example:
{ eth = "127.0.0.1:5353"; }Declared by:
services.pdns-recursor.luaConfig¶
The content Lua configuration file for PowerDNS Recursor. See` <https://doc.powerdns.com/recursor/lua-config/index.html>`_.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.pdns-recursor.resolveDNSChainQueries¶
Resolve
.bittop-level domains using DNSChain and namecoin.Type: boolean
Default:
falseDeclared by:
services.pdns-recursor.serveRFC1918¶
Whether to directly resolve the RFC1918 reverse-mapping domains:
10.in-addr.arpa,``168.192.in-addr.arpa``,``16-31.172.in-addr.arpa`` This saves load on the AS112 servers.Type: boolean
Default:
trueDeclared by:
services.pdns-recursor.settings¶
PowerDNS Recursor settings. Use this option to configure Recursor settings not exposed in a NixOS option or to bypass one. See the full documentation at` <https://doc.powerdns.com/recursor/settings.html>`_ for the available options.
Type: attribute set of null or signed integer or string or boolean or path or list of signed integer or string or boolean or pathss
Default: ``{
}``
Example:
{ loglevel = 8; log-common-errors = true; }Declared by:
services.pdnsd.enable¶
Whether to enable pdnsd.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.pdnsd.cacheDir¶
Directory holding the pdnsd cache
Type: string
Default:
"/var/cache/pdnsd"Declared by:
services.pdnsd.extraConfig¶
Extra configuration directives that should be added to``pdnsd.conf``.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.pdnsd.globalConfig¶
Global configuration that should be added to the global directory of
pdnsd.conf.Type: strings concatenated with “\n”
Default:
""Declared by:
services.pdnsd.serverConfig¶
Server configuration that should be added to the server directory of
pdnsd.conf.Type: strings concatenated with “\n”
Default:
""Declared by:
services.peerflix.enable¶
Whether to enable peerflix service.
Type: boolean
Default:
falseDeclared by:
services.peerflix.downloadDir¶
Peerflix temporary download directory.
Type: path
Default:
"/var/lib/peerflix/torrents"Declared by:
services.peerflix.stateDir¶
Peerflix state directory.
Type: path
Default:
"/var/lib/peerflix"Declared by:
services.pfix-srsd.enable¶
Whether to run the postfix sender rewriting scheme daemon.
Type: boolean
Default:
falseDeclared by:
services.pfix-srsd.domain¶
The domain for which to enable srs
Type: string
Example:
"example.com"Declared by:
services.pfix-srsd.secretsFile¶
The secret data used to encode the SRS address. to generate, use a command like:
for n in $(seq 5); do dd if=/dev/urandom count=1 bs=1024 status=none | sha256sum | sed 's/ -$//' | sed 's/^/ /'; doneType: path
Default:
"/var/lib/pfix-srsd/secrets"Declared by:
services.pgmanage.enable¶
Whether to enable PostgreSQL Administration for the web.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.pgmanage.package¶
The pgmanage package to use.
Type: package
Default:
"pkgs.pgmanage"Declared by:
services.pgmanage.allowCustomConnections¶
This tells pgmanage whether or not to allow anyone to use a custom connection from the login screen.
Type: boolean
Default:
falseDeclared by:
services.pgmanage.connections¶
pgmanage requires at least one PostgreSQL server be defined.
Detailed information about PostgreSQL connection strings is available at:` <http://www.postgresql.org/docs/current/static/libpq-connect.html>`_
Note that you should not specify your user name or password. That information will be entered on the login screen. If you specify a username or password, it will be removed by pgmanage before attempting to connect to a database.
Type: attribute set of strings
Default: ``{
}``
Example:
{ mini-server = "hostaddr=127.0.0.1 port=5432 dbname=postgres sslmode=require"; nuc-server = "hostaddr=192.168.0.100 port=5432 dbname=postgres"; }Declared by:
services.pgmanage.localOnly¶
This tells pgmanage whether or not to set the listening socket to local addresses only.
Type: boolean
Default:
trueDeclared by:
services.pgmanage.logLevel¶
Verbosity of logs
Type: one of “error”, “warn”, “notice”, “info”
Default:
"error"Declared by:
services.pgmanage.loginGroup¶
This tells pgmanage to only allow users in a certain PostgreSQL group to login to pgmanage. Note that a connection will be made to PostgreSQL in order to test if the user is a member of the login group.
Type: null or string
Default:
nullDeclared by:
services.pgmanage.loginTimeout¶
Number of seconds of inactivity before user is automatically logged out.
Type: signed integer
Default:
3600Declared by:
services.pgmanage.port¶
This tells pgmanage what port to listen on for browser requests.
Type: signed integer
Default:
8080Declared by:
services.pgmanage.sqlRoot¶
This tells pgmanage where to put the SQL file history. All tabs are saved to this location so that if you get disconnected from pgmanage you don’t lose your work.
Type: string
Default:
"/var/lib/pgmanage"Declared by:
services.pgmanage.superOnly¶
This tells pgmanage whether or not to only allow super users to login. The recommended value is true and will restrict users who are not super users from logging in to any PostgreSQL instance through pgmanage. Note that a connection will be made to PostgreSQL in order to test if the user is a superuser.
Type: boolean
Default:
trueDeclared by:
services.pgmanage.tls¶
These options tell pgmanage where the TLS Certificate and Key files reside. If you use these options then you’ll only be able to access pgmanage through a secure TLS connection. These options are only necessary if you wish to connect directly to pgmanage using a secure TLS connection. As an alternative, you can set up pgmanage in a reverse proxy configuration. This allows your web server to terminate the secure connection and pass on the request to pgmanage. You can find help to set up this configuration in:` <https://github.com/pgManage/pgManage/blob/master/INSTALL_NGINX.md>`_
Type: null or submodule
Default:
nullDeclared by:
services.pgmanage.tls.cert¶
services.pgmanage.tls.key¶
services.pgpkeyserver-lite.enable¶
Whether to enable pgpkeyserver-lite on a nginx vHost proxying to a gpg keyserver.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.pgpkeyserver-lite.package¶
Which webgui derivation to use.
Type: package
Default:
"pkgs.pgpkeyserver-lite"Declared by:
services.pgpkeyserver-lite.hkpAddress¶
Wich ip address the sks-keyserver is listening on.
Type: string
Default:
"127.0.0.1"Declared by:
services.pgpkeyserver-lite.hkpPort¶
Which port the sks-keyserver is listening on.
Type: signed integer
Default:
11371Declared by:
services.pgpkeyserver-lite.hostname¶
Which hostname to set the vHost to that is proxying to sks.
Type: string
Declared by:
services.phpfpm.extraConfig¶
Extra configuration that should be put in the global section of the PHP-FPM configuration file. Do not specify the options``error_log`` or``daemonize`` here, since they are generated by NixOS.
Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.phpfpm.phpOptions¶
Options appended to the PHP configuration file
php.ini.Type: strings concatenated with “\n”
Default:
""Example:
'' date.timezone = "CET" ''Declared by:
services.phpfpm.phpPackage¶
The PHP package to use for running the PHP-FPM service.
Type: package
Default:
"pkgs.php"Declared by:
services.phpfpm.pools¶
PHP-FPM pools. If no pools are defined, the PHP-FPM service is disabled.
Type: attribute set of submodules
Default: ``{
}``
Example:
{ mypool = { user = "php"; group = "php"; phpPackage = pkgs.php; settings = '' "pm" = "dynamic"; "pm.max_children" = 75; "pm.start_servers" = 10; "pm.min_spare_servers" = 5; "pm.max_spare_servers" = 20; "pm.max_requests" = 500; ''; } }Declared by:
services.phpfpm.pools.<name>.extraConfig¶
Extra lines that go into the pool configuration. See the documentation on
php-fpm.conffor details on configuration directives.Type: null or strings concatenated with “\n”
Default:
nullDeclared by:
services.phpfpm.pools.<name>.group¶
Group account under which this pool runs.
Type: string
Declared by:
services.phpfpm.pools.<name>.listen¶
The address on which to accept FastCGI requests.
Type: string
Default:
""Example:
"/path/to/unix/socket"Declared by:
services.phpfpm.pools.<name>.phpEnv¶
Environment variables used for this PHP-FPM pool.
Type: attribute set of strings
Default: ``{
}``
Example:
{ HOSTNAME = "$HOSTNAME"; TMP = "/tmp"; TMPDIR = "/tmp"; TEMP = "/tmp"; }Declared by:
services.phpfpm.pools.<name>.phpOptions¶
“Options appended to the PHP configuration file
php.iniused for this PHP-FPM pool.”Type: strings concatenated with “\n”
Declared by:
services.phpfpm.pools.<name>.phpPackage¶
The PHP package to use for running this PHP-FPM pool.
Type: package
Default:
"config.services.phpfpm.phpPackage"Declared by:
services.phpfpm.pools.<name>.settings¶
PHP-FPM pool directives. Refer to the “List of pool directives” section of` <https://www.php.net/manual/en/install.fpm.configuration.php>`_ for details. Note that settings names must be enclosed in quotes (e.g.``”pm.max_children”`` instead of
pm.max_children).Type: attribute set of string or signed integer or booleans
Default: ``{
}``
Example:
{ "pm" = "dynamic"; "pm.max_children" = 75; "pm.start_servers" = 10; "pm.min_spare_servers" = 5; "pm.max_spare_servers" = 20; "pm.max_requests" = 500; }Declared by:
services.phpfpm.pools.<name>.socket¶
Path to the unix socket file on which to accept FastCGI requests.
Note
This option is read-only and managed by NixOS.
Type: string (read only)
Declared by:
services.phpfpm.pools.<name>.user¶
User account under which this pool runs.
Type: string
Declared by:
services.phpfpm.settings¶
PHP-FPM global directives. Refer to the “List of global php-fpm.conf directives” section of` <https://www.php.net/manual/en/install.fpm.configuration.php>`_ for details. Note that settings names must be enclosed in quotes (e.g.``”pm.max_children”`` instead of
pm.max_children). You need not specify the optionserror_logor``daemonize`` here, since they are generated by NixOS.Type: attribute set of string or signed integer or booleans
Default: ``{
}``
Declared by:
services.physlock.enable¶
Whether to enable the physlock screen locking mechanism.
Enable this and then run systemctl start physlock to securely lock the screen.
This will switch to a new virtual terminal, turn off console switching and disable SysRq mechanism (when is set) until the root or user password is given.
Type: boolean
Default:
falseDeclared by:
services.physlock.allowAnyUser¶
Whether to allow any user to lock the screen. This will install a setuid wrapper to allow any user to start physlock as root, which is a minor security risk. Call the physlock binary to use this instead of using the systemd service.
Note that you might need to relog to have the correct binary in your PATH upon changing this option.
Type: boolean
Default:
falseDeclared by:
services.physlock.disableSysRq¶
Whether to disable SysRq when locked with physlock.
Type: boolean
Default:
trueDeclared by:
services.physlock.lockOn.extraTargets¶
Other targets to lock the screen just before.
Useful if you want to e.g. both autologin to X11 so that your
~/.xsessiongets executed and still to have the screen locked so that the system can be booted relatively unattended.Type: list of strings
Default: ``[
]``
Example:
[ "display-manager.service" ]Declared by:
services.physlock.lockOn.hibernate¶
Whether to lock screen with physlock just before hibernate.
Type: boolean
Default:
trueDeclared by:
services.physlock.lockOn.suspend¶
Whether to lock screen with physlock just before suspend.
Type: boolean
Default:
trueDeclared by:
services.picom.enable¶
Whether of not to enable Picom as the X.org composite manager.
Type: boolean
Default:
falseDeclared by:
services.picom.activeOpacity¶
Opacity of active windows (number in range 0.0 - 1.0).
Type: string
Default:
"1.0"Example:
"0.8"Declared by:
services.picom.backend¶
Backend to use:
glx,xrenderorxr_glx_hybrid.Type: one of “glx”, “xrender”, “xr_glx_hybrid”
Default:
"xrender"Declared by:
services.picom.fade¶
Fade windows in and out.
Type: boolean
Default:
falseDeclared by:
services.picom.fadeDelta¶
Time between fade animation step (in ms).
Type: signed integer
Default:
10Example:
5Declared by:
services.picom.fadeExclude¶
List of conditions of windows that should not be faded. See
picom(1)man page for more examples.Type: list of strings
Default: ``[
]``
Example:
[ "window_type \*= 'menu'" "name ~= 'Firefox\\$'" "focused = 1" ]Declared by:
services.picom.fadeSteps¶
Opacity change between fade steps (in and out). (numbers in range 0.01 - 1.0)
Type: list of strings
Default:
[ "0.028" "0.03" ]Example:
[ "0.04" "0.04" ]Declared by:
services.picom.inactiveOpacity¶
Opacity of inactive windows (number in range 0.1 - 1.0).
Type: string
Default:
"1.0"Example:
"0.8"Declared by:
services.picom.opacityRules¶
Rules that control the opacity of windows, in format PERCENT:PATTERN.
Type: list of strings
Default: ``[
]``
Example:
[ "95:class_g = 'URxvt' && !_NET_WM_STATE@:32a" "0:_NET_WM_STATE@:32a \*= '_NET_WM_STATE_HIDDEN'" ]Declared by:
services.picom.refreshRate¶
Screen refresh rate (0 = automatically detect).
Type: signed integer
Default:
0Example:
60Declared by:
services.picom.settings¶
Additional Picom configuration.
Type: list of boolean or signed integer or floating point number or string or list of boolean or signed integer or floating point number or string or list of boolean or signed integer or floating point number or strings or attribute set of boolean or signed integer or floating point number or stringss or attribute set of boolean or signed integer or floating point number or string or list of boolean or signed integer or floating point number or strings or attribute set of boolean or signed integer or floating point number or stringsss or attribute set of boolean or signed integer or floating point number or string or list of boolean or signed integer or floating point number or string or list of boolean or signed integer or floating point number or strings or attribute set of boolean or signed integer or floating point number or stringss or attribute set of boolean or signed integer or floating point number or string or list of boolean or signed integer or floating point number or strings or attribute set of boolean or signed integer or floating point number or stringsss
Default: ``{
}``
Declared by:
services.picom.shadow¶
Draw window shadows.
Type: boolean
Default:
falseDeclared by:
services.picom.shadowExclude¶
List of conditions of windows that should have no shadow. See
picom(1)man page for more examples.Type: list of strings
Default: ``[
]``
Example:
[ "window_type \*= 'menu'" "name ~= 'Firefox\\$'" "focused = 1" ]Declared by:
services.picom.shadowOffsets¶
Left and right offset for shadows (in pixels).
Type: list of signed integers
Default:
[ -15 -15 ]Example:
[ -10 -15 ]Declared by:
services.picom.shadowOpacity¶
Window shadows opacity (number in range 0.0 - 1.0).
Type: string
Default:
"0.75"Example:
"0.8"Declared by:
services.picom.vSync¶
Enable vertical synchronization. Chooses the best method (drm, opengl, opengl-oml, opengl-swc, opengl-mswc) automatically. The bool value should be used, the others are just for backwards compatibility.
Type: boolean or one of “none”, “drm”, “opengl”, “opengl-oml”, “opengl-swc”, “opengl-mswc”
Default:
falseDeclared by:
services.picom.wintypes¶
Rules for specific window types.
Type: attribute set
Default:
{ dropdown_menu = { opacity = "1.0"; } ; popup_menu = { opacity = "1.0"; } ; }Example: ``{
}``
Declared by:
services.pipewire.enable¶
Whether to enable pipewire service.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.pipewire.socketActivation¶
Automatically run pipewire when connections are made to the pipewire socket.
Type: boolean
Default:
trueDeclared by:
services.piwik.nginx.enableACME¶
Whether to ask Let’s Encrypt to sign a certificate for this vhost. Alternately, you can use an existing certificate through .
Type: boolean
Default:
trueDeclared by:
services.piwik.nginx.acmeFallbackHost¶
Host which to proxy requests to if acme challenge is not found. Useful if you want multiple hosts to be able to verify the same domain name.
Type: null or string
Default:
nullDeclared by:
services.piwik.nginx.acmeRoot¶
Directory for the acme challenge which is PUBLIC, don’t put certs or keys in here
Type: string
Default:
"/var/lib/acme/acme-challenge"Declared by:
services.piwik.nginx.addSSL¶
Whether to enable HTTPS in addition to plain HTTP. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443).
Type: boolean
Default:
falseDeclared by:
services.piwik.nginx.basicAuth¶
Basic Auth protection for a vhost.
WARNING: This is implemented to store the password in plain text in the nix store.
Type: attribute set of strings
Default: ``{
}``
Example:
{ user = "password"; };Declared by:
services.piwik.nginx.basicAuthFile¶
Basic Auth password file for a vhost. Can be created via: htpasswd -c <filename> <username>
Type: null or path
Default:
nullDeclared by:
services.piwik.nginx.default¶
Makes this vhost the default.
Type: boolean
Default:
falseDeclared by:
services.piwik.nginx.extraConfig¶
These lines go to the end of the vhost verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.piwik.nginx.forceSSL¶
Whether to add a separate nginx server block that permanently redirects (301) all plain HTTP traffic to HTTPS. This will set defaults for``listen`` to listen on all interfaces on the respective default ports (80, 443), where the non-SSL listens are used for the redirect vhosts.
Type: boolean
Default:
trueDeclared by:
services.piwik.nginx.globalRedirect¶
If set, all requests for this host are redirected permanently to the given hostname.
Type: null or string
Default:
nullExample:
"newserver.example.org"Declared by:
services.piwik.nginx.http2¶
Whether to enable HTTP 2. Note that (as of writing) due to nginx’s implementation, to disable HTTP 2 you have to disable it on all vhosts that use a given IP address / port. If there is one server block configured to enable http2,then it is enabled for all server blocks on this IP. See https://stackoverflow.com/a/39466948/263061.
Type: boolean
Default:
trueDeclared by:
services.piwik.nginx.listen¶
Listen addresses and ports for this virtual host. IPv6 addresses must be enclosed in square brackets. Note: this option overrides
addSSLandonlySSL.Type: list of submodules
Default: ``[
]``
Example: ``[
{ addr = “195.154.1.1”; port = 443; ssl = true; }
{ addr = “192.154.1.1”; port = 80; }
]``
Declared by:
services.piwik.nginx.listen.*.addr¶
services.piwik.nginx.listen.*.extraParameters¶
Extra parameters of this listen directive.
Type: list of strings
Default: ``[
]``
Example:
[ "reuseport" "deferred" ]Declared by:
services.piwik.nginx.listen.*.port¶
Port number.
Type: signed integer
Default:
80Declared by:
services.piwik.nginx.listen.*.ssl¶
Enable SSL.
Type: boolean
Default:
falseDeclared by:
services.piwik.nginx.locations¶
Declarative location config
Type: attribute set of submodules
Default: ``{
}``
Example:
{ "/" = { proxyPass = "http://localhost:3000"; }; };Declared by:
services.piwik.nginx.locations.<name>.alias¶
Alias directory for requests.
Type: null or path
Default:
nullExample:
"/your/alias/directory"Declared by:
services.piwik.nginx.locations.<name>.extraConfig¶
These lines go to the end of the location verbatim.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.piwik.nginx.locations.<name>.index¶
Adds index directive.
Type: null or string
Default:
nullExample:
"index.php index.html"Declared by:
services.piwik.nginx.locations.<name>.priority¶
Order of this location block in relation to the others in the vhost. The semantics are the same as with `lib.mkOrder`. Smaller values have a greater priority.
Type: signed integer
Default:
1000Declared by:
services.piwik.nginx.locations.<name>.proxyPass¶
Adds proxy_pass directive and sets recommended proxy headers if recommendedProxySettings is enabled.
Type: null or string
Default:
nullExample:
"http://www.example.org/"Declared by:
services.piwik.nginx.locations.<name>.proxyWebsockets¶
Whether to supporty proxying websocket connections with HTTP/1.1.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.piwik.nginx.locations.<name>.return¶
Adds a return directive, for e.g. redirections.
Type: null or string
Default:
nullExample:
"301 http://example.com\\$request_uri"Declared by:
services.piwik.nginx.locations.<name>.root¶
Root directory for requests.
Type: null or path
Default:
nullExample:
"/your/root/directory"Declared by:
services.piwik.nginx.locations.<name>.tryFiles¶
Adds try_files directive.
Type: null or string
Default:
nullExample:
"\\$uri =404"Declared by:
services.piwik.nginx.onlySSL¶
Whether to enable HTTPS and reject plain HTTP connections. This will set defaults for
listento listen on all interfaces on port 443.Type: boolean
Default:
falseDeclared by:
services.piwik.nginx.root¶
The path of the web root directory.
Type: null or path
Default:
nullExample:
"/data/webserver/docs"Declared by:
services.piwik.nginx.serverAliases¶
Additional names of virtual hosts served by this virtual host configuration.
Type: list of strings
Default: ``[
]``
Example:
[ "www.example.org" "example.org" ]Declared by:
services.piwik.nginx.serverName¶
Name of this virtual host. Defaults to attribute name in virtualHosts.
Type: null or string
Default:
nullExample:
"example.org"Declared by:
services.piwik.nginx.sslCertificate¶
Path to server SSL certificate.
Type: path
Example:
"/var/host.cert"Declared by:
services.piwik.nginx.sslCertificateKey¶
Path to server SSL certificate key.
Type: path
Example:
"/var/host.key"Declared by:
services.piwik.nginx.sslTrustedCertificate¶
Path to root SSL certificate for stapling and client certificates.
Type: null or path
Default:
nullExample:
"/var/root.cert"Declared by:
services.piwik.nginx.useACMEHost¶
A host of an existing Let’s Encrypt certificate to use. This is useful if you have many subdomains and want to avoid hitting the`rate limit <https://letsencrypt.org/docs/rate-limits/>`_. Alternately, you can generate a certificate through .*Note that this option does not create any certificates, nor it does add subdomains to existing ones – you will need to create them manually using security.acme.certs.*
Type: null or string
Default:
nullDeclared by:
services.plex.enable¶
Whether to enable Plex Media Server.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.plex.package¶
The Plex package to use. Plex subscribers may wish to use their own package here, pointing to subscriber-only server versions.
Type: package
Default:
"pkgs.plex"Declared by:
services.plex.dataDir¶
The directory where Plex stores its data files.
Type: string
Default:
"/var/lib/plex"Declared by:
services.plex.extraPlugins¶
A list of paths to extra plugin bundles to install in Plex’s plugin directory. Every time the systemd unit for Plex starts up, all of the symlinks in Plex’s plugin directory will be cleared and this module will symlink all of the paths specified here to that directory. If this behavior is undesired, set to false.
Type: list of paths
Default: ``[
]``
Declared by:
services.plex.group¶
Group under which Plex runs.
Type: string
Default:
"plex"Declared by:
services.plex.managePlugins¶
If set to true, this option will cause all of the symlinks in Plex’s plugin directory to be removed and symlinks for paths specified in to be added.
Type: boolean
Default:
trueDeclared by:
services.plex.openFirewall¶
Open ports in the firewall for the media server.
Type: boolean
Default:
falseDeclared by:
services.plex.user¶
User account under which Plex runs.
Type: string
Default:
"plex"Declared by:
services.polipo.enable¶
Whether to run the polipo caching web proxy.
Type: boolean
Default:
falseDeclared by:
services.polipo.allowedClients¶
List of IP addresses or network addresses that may connect to Polipo.
Type: list of strings
Default:
[ "127.0.0.1" "::1" ]Example:
[ "127.0.0.1" "::1" "134.157.168.0/24" "2001:660:116::/48" ]Declared by:
services.polipo.extraConfig¶
Polio configuration. Contents will be added verbatim to the configuration file.
Type: strings concatenated with “\n”
Default:
""Declared by:
services.polipo.parentProxy¶
Hostname and port number of an HTTP parent proxy; it should have the form ‘host:port’.
Type: string
Default:
""Example:
"localhost:8124"Declared by:
services.polipo.proxyAddress¶
IP address on which Polipo will listen.
Type: string
Default:
"127.0.0.1"Declared by:
services.polipo.proxyPort¶
TCP port on which Polipo will listen.
Type: signed integer
Default:
8123Declared by:
services.polipo.socksParentProxy¶
Hostname and port number of an SOCKS parent proxy; it should have the form ‘host:port’.
Type: string
Default:
""Example:
"localhost:9050"Declared by:
services.postfix.enable¶
Whether to run the Postfix mail server.
Type: boolean
Default:
falseDeclared by:
services.postfix.enableHeaderChecks¶
Whether to enable postfix header checks
Type: boolean
Default:
falseExample:
trueDeclared by:
services.postfix.enableSmtp¶
Whether to enable smtp in master.cf.
Type: unspecified
Default:
trueDeclared by:
services.postfix.enableSubmission¶
Whether to enable smtp submission.
Type: boolean
Default:
falseDeclared by: