Skip to content

Hardware

Hardware

hardware.acpilight.enable

Enable acpilight. This will allow brightness control via xbacklight from users in the video group

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/acpilight.nix

hardware.alsa.enablePersistence

Whether to enable ALSA sound card state saving on shutdown. This is generally not necessary if you're using an external sound server.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/audio/alsa.nix

hardware.amdgpu.amdvlk.enable

Whether to enable AMDVLK Vulkan driver. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/amdvlk.nix

hardware.amdgpu.amdvlk.package

The amdvlk package to use. Type: package

Default

pkgs.amdvlk

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/amdvlk.nix

hardware.amdgpu.amdvlk.settings

Runtime settings for AMDVLK to be configured {file}/etc/amd/amdVulkanSettings.cfg. See AMDVLK GitHub page.

Type: attribute set of (string or signed integer)

Default

{ }

Example

{AllowVkPipelineCachingToDisk = 1;EnableVmAlwaysValid = 1;IFH = 0;IdleAfterSubmitGpuMask = 1;ShaderCacheMode = 1;}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/amdvlk.nix

hardware.amdgpu.amdvlk.support32Bit.enable

Whether to enable 32-bit driver support. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/amdvlk.nix

hardware.amdgpu.amdvlk.support32Bit.package

The amdvlk package to use. Type: package

Default

pkgs.driversi686Linux.amdvlk

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/amdvlk.nix

hardware.amdgpu.amdvlk.supportExperimental.enable

Whether to enable Experimental features support. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/amdvlk.nix

hardware.amdgpu.initrd.enable

Whether to enable loading amdgpu kernelModule in stage 1. Can fix lower resolution in boot screen during initramfs phase . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/amdgpu.nix

hardware.amdgpu.legacySupport.enable

Whether to enable using amdgpu kernel driver instead of radeon for Southern Islands (Radeon HD 7000) series and Sea Islands (Radeon HD 8000) series cards. Note: this removes support for analog video outputs, which is only available in the radeon driver . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/amdgpu.nix

hardware.amdgpu.opencl.enable

Whether to enable OpenCL support using ROCM runtime library. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/amdgpu.nix

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

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/bladeRF.nix

hardware.bluetooth.disabledPlugins

Built-in plugins to disable Type: list of string

Default

[ ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/bluetooth.nix

hardware.bluetooth.enable

Whether to enable support for Bluetooth. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/bluetooth.nix

hardware.bluetooth.hsphfpd.enable

Whether to enable support for hsphfpd[-prototype] implementation. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/bluetooth.nix

hardware.bluetooth.input

Set configuration for the input service (/etc/bluetooth/input.conf). Type: attribute set of section of an INI file (attrs of INI atom (null, bool, int, float or string))

Default

{ }

Example

{General = {ClassicBondedOnly = true;IdleTimeout = 30;};}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/bluetooth.nix

hardware.bluetooth.network

Set configuration for the network service (/etc/bluetooth/network.conf). Type: attribute set of section of an INI file (attrs of INI atom (null, bool, int, float or string))

Default

{ }

Example

{General = {DisableSecurity = true;};}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/bluetooth.nix

hardware.bluetooth.package

The bluez package to use. Type: package

Default

pkgs.bluez

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/bluetooth.nix

hardware.bluetooth.powerOnBoot

Whether to power up the default Bluetooth controller on boot. Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/bluetooth.nix

hardware.bluetooth.settings

Set configuration for system-wide bluetooth (/etc/bluetooth/main.conf). Type: attribute set of section of an INI file (attrs of INI atom (null, bool, int, float or string))

Default

{ }

Example

{General = {ControllerMode = "bredr";};}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/bluetooth.nix

hardware.brillo.enable

Whether to enable brillo in userspace. This will allow brightness control from users in the video group . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/brillo.nix

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

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/bumblebee.nix

hardware.bumblebee.driver

Set driver used by bumblebeed. Supported are nouveau and nvidia.

Type: one of "nvidia", "nouveau"

Default

"nvidia"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/bumblebee.nix

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

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/bumblebee.nix

hardware.bumblebee.group

Group for bumblebee socket Type: string

Default

"wheel"

Example

"video"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/bumblebee.nix

hardware.bumblebee.pmMethod

Set preferred power management method for unused card.

Type: one of "auto", "bbswitch", "switcheroo", "none"

Default

"auto"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/bumblebee.nix

hardware.ckb-next.enable

Whether to enable the Corsair keyboard/mouse driver. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/ckb-next.nix

hardware.ckb-next.gid

Limit access to the ckb daemon to a particular group.

Type: null or signed integer

Default

null

Example

100

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/ckb-next.nix

hardware.ckb-next.package

The ckb-next package to use. Type: package

Default

pkgs.ckb-next

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/ckb-next.nix

hardware.cpu.amd.ryzen-smu.enable

Whether to enable ryzen_smu, a linux kernel driver that exposes access to the SMU (System Management Unit) for certain AMD Ryzen Processors.

WARNING: Damage cause by use of your AMD processor outside of official AMD specifications or outside of factory settings are not covered under any AMD product warranty and may not be covered by your board or system manufacturer's warranty . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/amd-ryzen-smu.nix

hardware.cpu.amd.sev.enable

Whether to enable access to the AMD SEV device. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/amd-sev.nix

hardware.cpu.amd.sev.group

Group to assign to the SEV device. Type: string

Default

"sev"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/amd-sev.nix

hardware.cpu.amd.sev.mode

Mode to set for the SEV device. Type: string

Default

"0660"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/amd-sev.nix

hardware.cpu.amd.sev.user

Owner to assign to the SEV device. Type: string

Default

"root"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/amd-sev.nix

hardware.cpu.amd.sevGuest.enable

Whether to enable access to the AMD SEV guest device. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/amd-sev.nix

hardware.cpu.amd.sevGuest.group

Group to assign to the SEV guest device. Type: string

Default

"sev-guest"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/amd-sev.nix

hardware.cpu.amd.sevGuest.mode

Mode to set for the SEV guest device. Type: string

Default

"0660"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/amd-sev.nix

hardware.cpu.amd.sevGuest.user

Owner to assign to the SEV guest device. Type: string

Default

"root"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/amd-sev.nix

hardware.cpu.amd.updateMicrocode

Update the CPU microcode for AMD processors.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/amd-microcode.nix

hardware.cpu.intel.sgx.enableDcapCompat

Whether to enable backward compatibility for SGX software build for the out-of-tree Intel SGX DCAP driver.

Creates symbolic links for the SGX devices /dev/sgx_enclave and /dev/sgx_provision to make them available as /dev/sgx/enclave and /dev/sgx/provision, respectively.

Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/intel-sgx.nix

hardware.cpu.intel.sgx.provision.enable

Whether to enable access to the Intel SGX provisioning device. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/intel-sgx.nix

hardware.cpu.intel.sgx.provision.group

Group to assign to the SGX provisioning device. Type: string

Default

"sgx_prv"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/intel-sgx.nix

hardware.cpu.intel.sgx.provision.mode

Mode to set for the SGX provisioning device. Type: string

Default

"0660"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/intel-sgx.nix

hardware.cpu.intel.sgx.provision.user

Owner to assign to the SGX provisioning device. Type: string

Default

"root"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/intel-sgx.nix

hardware.cpu.intel.updateMicrocode

Update the CPU microcode for Intel processors.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/intel-microcode.nix

hardware.cpu.x86.msr.enable

Whether to enable the msr (Model-Specific Registers) kernel module and configure udev rules for its devices (usually /dev/cpu/*/msr). Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/x86-msr.nix

hardware.cpu.x86.msr.group

Group to set for devices of the msr kernel subsystem. Type: string

Default

"msr"

Example

"nobody"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/x86-msr.nix

hardware.cpu.x86.msr.mode

Mode to set for devices of the msr kernel subsystem. Type: string

Default

"0640"

Example

"0660"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/x86-msr.nix

hardware.cpu.x86.msr.owner

Owner to set for devices of the msr kernel subsystem. Type: string

Default

"root"

Example

"nobody"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/x86-msr.nix

hardware.cpu.x86.msr.settings

Parameters for the msr kernel module. Type: attribute set of (boolean or signed integer or string)

Default

{ }

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/x86-msr.nix

hardware.cpu.x86.msr.settings.allow-writes

Whether to allow writes to MSRs ("on") or not ("off"). Type: null or one of "on", "off"

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/cpu/x86-msr.nix

hardware.decklink.enable

Whether to enable hardware support for the Blackmagic Design Decklink audio/video interfaces. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/decklink.nix

hardware.deviceTree.dtbSource

Path to dtb directory that overlays and other processing will be applied to. Uses device trees bundled with the Linux kernel by default.

Type: path

Default

${cfg.kernelPackage}/dtbs

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/device-tree.nix

hardware.deviceTree.dtboBuildExtraIncludePaths

Additional include paths that will be passed to the preprocessor when creating the final .dts to compile into .dtbo

Type: list of path

Default

[ ]

Example

[./my_custom_include_dir_1./custom_include_dir_2]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/device-tree.nix

hardware.deviceTree.dtboBuildExtraPreprocessorFlags

Additional flags to pass to the preprocessor during dtbo compilations

Type: list of string

Default

[ ]

Example

[ "-DMY_DTB_DEFINE" ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/device-tree.nix

hardware.deviceTree.enable

Build device tree files. These are used to describe the non-discoverable hardware of a system.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/device-tree.nix

hardware.deviceTree.filter

Only include .dtb files matching glob expression.

Type: null or string

Default

null

Example

"*rpi*.dtb"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/device-tree.nix

hardware.deviceTree.kernelPackage

Kernel package where device tree include directory is from. Also used as default source of dtb package to apply overlays to

Type: path

Default

config.boot.kernelPackages.kernel

Example

pkgs.linux_latest

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/device-tree.nix

hardware.deviceTree.name

The name of an explicit dtb to be loaded, relative to the dtb base. Useful in extlinux scenarios if the bootloader doesn't pick the right .dtb file from FDTDIR.

Type: null or string

Default

null

Example

"some-dtb.dtb"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/device-tree.nix

hardware.deviceTree.overlays

List of overlays to apply to base device-tree (.dtb) files.

Type: list of ((submodule) or path convertible to it)

Default

[ ]

Example

[{ name = "pps"; dtsFile = ./dts/pps.dts; }{ name = "spi";dtsText = "...";}{ name = "precompiled"; dtboFile = ./dtbos/example.dtbo; }]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/device-tree.nix

hardware.deviceTree.overlays.*.dtboFile

Path to .dtbo compiled overlay file.

Type: null or path

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/device-tree.nix

hardware.deviceTree.overlays.*.dtsFile

Path to .dts overlay file, overlay is applied to each .dtb file matching "compatible" of the overlay.

Type: null or path

Default

null

Example

./dts/overlays.dts

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/device-tree.nix

hardware.deviceTree.overlays.*.dtsText

Literal DTS contents, overlay is applied to each .dtb file matching "compatible" of the overlay.

Type: null or string

Default

null

Example

'' /dts-v1/; /plugin/; / { compatible = "raspberrypi"; }; &{/soc} { pps { compatible = "pps-gpio"; status = "okay"; }; };''

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/device-tree.nix

hardware.deviceTree.overlays.*.filter

Only apply to .dtb files matching glob expression.

Type: null or string

Default

null

Example

"*rpi*.dtb"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/device-tree.nix

hardware.deviceTree.overlays.*.name

Name of this overlay

Type: string

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/device-tree.nix

hardware.digitalbitbox.enable

Enables udev rules for Digital Bitbox devices.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/digitalbitbox.nix

hardware.digitalbitbox.package

The digitalbitbox 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: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/digitalbitbox.nix

hardware.display.edid.enable

Enables handling of EDID files

Type: boolean

Default

config.hardware.display.edid.packages != null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/display.nix

hardware.display.edid.linuxhw

Exposes EDID files from users-sourced database at https://github.com/linuxhw/EDID

Attribute names will be mapped to EDID filenames <NAME>.bin.

Attribute values are lists of awk regexp patterns that (together) must match exactly one line in either of: - AnalogDisplay.md - DigitalDisplay.md

There is no universal way of locating your device config, but here are some practical tips: 1. locate your device: - find your model number (second column) - locate manufacturer (first column) and go through the list manually 2. narrow down results using other columns until there is only one left: - Name column - production date (Made column) - resolution Res - screen diagonal (Inch column) - as a last resort use ID from the last column

Type: attribute set of list of string

Default

{ }

Example

{PG278Q_2014 = [ "PG278Q" "2014" ];}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/display.nix

hardware.display.edid.modelines

Attribute set of XFree86 Modelines automatically converted and exposed as edid/<name>.bin files in initrd. See for more information: - https://en.wikipedia.org/wiki/XFree86_Modeline

Type: attribute set of string

Default

{ }

Example

{"PG278Q_60" = " 241.50 2560 2608 2640 2720 1440 1443 1448 1481 -hsync +vsync";"PG278Q_120" = " 497.75 2560 2608 2640 2720 1440 1443 1448 1525 +hsync -vsync";"U2711_60" = " 241.50 2560 2600 2632 2720 1440 1443 1448 1481 -hsync +vsync";}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/display.nix

hardware.display.edid.packages

List of packages containing EDID binary files at $out/lib/firmware/edid. Such files will be available for use in drm.edid_firmware kernel parameter as edid/<filename>.

You can craft one directly here or use sibling options linuxhw and modelines.

Type: list of package

Default

[ ]

Example

[(pkgs.runCommand "edid-custom" {} '' mkdir -p "$out/lib/firmware/edid" base64 -d > "$out/lib/firmware/edid/custom1.bin" <<'EOF' <insert your base64 encoded EDID file herebase64 < /sys/class/drm/card0-.../edid> EOF '') ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/display.nix

hardware.display.outputs

Hardware/kernel-level configuration of specific outputs.

Type: attribute set of (submodule)

Default

{ }

Example

{edid.modelines."PG278Q_60" = "241.50 2560 2608 2640 2720 1440 1443 1448 1481 -hsync +vsync";outputs."DP-1".edid = "PG278Q_60.bin";outputs."DP-1".mode = "e";}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/display.nix

hardware.display.outputs.<name>.edid

An EDID filename to be used for configured display, as in edid/<filename>. See for more information: - hardware.display.edid.packages - https://wiki.archlinux.org/title/Kernel_mode_setting#Forcing_modes_and_EDID

Type: null or string

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/display.nix

hardware.display.outputs.<name>.mode

A video kernel parameter (framebuffer mode) configuration for the specific output:

<xres>x<yres>[M][R][-<bpp>][@<refresh>][i][m][eDd]

See for more information: - https://docs.kernel.org/fb/modedb.html - https://wiki.archlinux.org/title/Kernel_mode_setting#Forcing_modes

Type: null or string

Default

null

Example

"e"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/display.nix

hardware.enableAllFirmware

Whether to enable all firmware regardless of license. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/all-firmware.nix

hardware.enableRedistributableFirmware

Whether to enable firmware with a license allowing redistribution. Type: boolean

Default

config.hardware.enableAllFirmware

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/all-firmware.nix

hardware.facetimehd.enable

Whether to enable the facetimehd kernel module. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/webcam/facetimehd.nix

hardware.facetimehd.withCalibration

Whether to include sensor calibration files for facetimehd. This makes colors look much better but is experimental, see https://github.com/patjak/facetimehd/wiki/Extracting-the-sensor-calibration-files for details.

Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/webcam/facetimehd.nix

hardware.fancontrol.config

Required fancontrol configuration file content. See {manpage}pwmconfig(8) from the lm_sensors package. Type: strings concatenated with "\n"

Example

'' # 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: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/fancontrol.nix

hardware.fancontrol.enable

Whether to enable software fan control (requires fancontrol.config). Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/fancontrol.nix

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 package

Default

[ ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/udev.nix

hardware.flipperzero.enable

Whether to enable udev rules and software for Flipper Zero devices. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/flipperzero.nix

hardware.flirc.enable

Whether to enable software to configure a Flirc USB device. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/flirc.nix

hardware.gkraken.enable

Whether to enable gkraken's udev rules for NZXT AIO liquid coolers. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/gkraken.nix

hardware.glasgow.enable

Enables Glasgow udev rules and ensures 'plugdev' group exists. This is a prerequisite to using Glasgow without being root.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/glasgow.nix

hardware.gpgSmartcards.enable

Whether to enable udev rules for gnupg smart cards. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/gpgsmartcards.nix

hardware.graphics.enable

Whether to enable hardware accelerated graphics drivers.

This is required to allow most graphical applications and environments to use hardware rendering, video encode/decode acceleration, etc.

This option should be enabled by default by the corresponding modules, so you do not usually have to set it yourself.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/graphics.nix

hardware.graphics.enable32Bit

On 64-bit systems, whether to also install 32-bit drivers for 32-bit applications (such as Wine).

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/graphics.nix

hardware.graphics.extraPackages

Additional packages to add to the default graphics driver lookup path. This can be used to add OpenCL drivers, VA-API/VDPAU drivers, etc.

::: {.note} intel-media-driver supports hardware Broadwell (2014) or newer. Older hardware should use the mostly unmaintained intel-vaapi-driver driver. :::

Type: list of package

Default

[ ]

Example

with pkgs; [ intel-media-driver intel-ocl intel-vaapi-driver ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/graphics.nix

hardware.graphics.extraPackages32

Additional packages to add to 32-bit graphics driver lookup path on 64-bit systems. Used when {option}enable32Bit is set. This can be used to add OpenCL drivers, VA-API/VDPAU drivers, etc.

::: {.note} intel-media-driver supports hardware Broadwell (2014) or newer. Older hardware should use the mostly unmaintained intel-vaapi-driver driver. :::

Type: list of package

Default

[ ]

Example

with pkgs.pkgsi686Linux; [ intel-media-driver intel-vaapi-driver ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/graphics.nix

hardware.hackrf.enable

Enables hackrf udev rules and ensures 'plugdev' group exists. This is a prerequisite to using HackRF devices without being root, since HackRF USB descriptors will be owned by plugdev through udev.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/hackrf.nix

hardware.i2c.enable

Whether to enable i2c devices support. By default access is granted to users in the "i2c" group (will be created if non-existent) and any user with a seat, meaning logged on the computer locally . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/i2c.nix

hardware.i2c.group

Grant access to i2c devices (/dev/i2c-*) to users in this group.

Type: string

Default

"i2c"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/i2c.nix

hardware.infiniband.enable

Whether to enable Infiniband support. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/infiniband.nix

hardware.infiniband.guids

A list of infiniband port guids on the system. This is discoverable using ibstat -p

Type: list of string

Default

[ ]

Example

["0xe8ebd30000eee2e1"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/infiniband.nix

hardware.intel-gpu-tools.enable

Whether to enable a setcap wrapper for intel-gpu-tools. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/intel-gpu-tools.nix

hardware.ipu6.enable

Whether to enable support for Intel IPU6/MIPI cameras. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/webcam/ipu6.nix

hardware.ipu6.platform

Choose the version for your hardware platform.

Use ipu6 for Tiger Lake, ipu6ep for Alder Lake or Raptor Lake, and ipu6epmtl for Meteor Lake.

Type: one of "ipu6", "ipu6ep", "ipu6epmtl"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/webcam/ipu6.nix

hardware.keyboard.qmk.enable

Whether to enable non-root access to the firmware of QMK keyboards. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/keyboard/qmk.nix

hardware.keyboard.teck.enable

Whether to enable non-root access to the firmware of TECK keyboards. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/keyboard/teck.nix

hardware.keyboard.uhk.enable

Whether to enable non-root access to the firmware of UHK keyboards. You need it when you want to flash a new firmware on the keyboard. Access to the keyboard is granted to users in the "input" group. You may want to install the uhk-agent package . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/keyboard/uhk.nix

hardware.keyboard.zsa.enable

Whether to enable udev rules for keyboards from ZSA like the ErgoDox EZ, Planck EZ and Moonlander Mark I. You need it when you want to flash a new configuration on the keyboard or use their live training in the browser. You may want to install the wally-cli package . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/keyboard/zsa.nix

hardware.ksm.enable

Whether to enable Linux kernel Same-Page Merging. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/ksm.nix

hardware.ksm.sleep

How many milliseconds ksmd should sleep between scans. Setting it to null uses the kernel's default time.

Type: null or signed integer

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/ksm.nix

hardware.ledger.enable

Whether to enable udev rules for Ledger devices. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/ledger.nix

hardware.logitech.lcd.devices

List of USB device ids supported by g15daemon.

You most likely do not need to change this.

Type: list of string

Default

["0a07""c222""c225""c227""c251"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/logitech.nix

hardware.logitech.lcd.enable

Whether to enable support for Logitech LCD Devices. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/logitech.nix

hardware.logitech.lcd.startWhenNeeded

Only run the service when an actual supported device is plugged.

Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/logitech.nix

hardware.logitech.wireless.enable

Whether to enable support for Logitech Wireless Devices. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/logitech.nix

hardware.logitech.wireless.enableGraphical

Enable graphical support applications. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/logitech.nix

hardware.mcelog.enable

Enable the Machine Check Exception logger.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/mcelog.nix

hardware.mwProCapture.enable

Whether to enable the Magewell Pro Capture family kernel module. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/capture/mwprocapture.nix

hardware.new-lg4ff.enable

Enables improved Linux module drivers for Logitech driving wheels. This will replace the existing in-kernel hid-logitech modules. Works most notably on the Logitech G25, G27, G29 and Driving Force (GT).

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/new-lg4ff.nix

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

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/nitrokey.nix

hardware.nvidia-container-toolkit.enable

Enable dynamic CDI configuration for NVidia devices by running nvidia-container-toolkit on boot.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/nvidia-container-toolkit

hardware.nvidia-container-toolkit.mount-nvidia-docker-1-directories

Mount nvidia-docker-1 directories on containers: /usr/local/nvidia/lib and /usr/local/nvidia/lib64.

Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/nvidia-container-toolkit

hardware.nvidia-container-toolkit.mount-nvidia-executables

Mount executables nvidia-smi, nvidia-cuda-mps-control, nvidia-cuda-mps-server, nvidia-debugdump, nvidia-powerd and nvidia-ctk on containers.

Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/nvidia-container-toolkit

hardware.nvidia-container-toolkit.mounts

Mounts to be added to every container under the Nvidia CDI profile. Type: list of (submodule)

Default

[ ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/nvidia-container-toolkit

hardware.nvidia-container-toolkit.mounts.*.containerPath

Container path. Type: string

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/nvidia-container-toolkit

hardware.nvidia-container-toolkit.mounts.*.hostPath

Host path. Type: string

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/nvidia-container-toolkit

hardware.nvidia-container-toolkit.mounts.*.mountOptions

Mount options. Type: list of string

Default

["ro""nosuid""nodev""bind"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/nvidia-container-toolkit

hardware.nvidia.datacenter.enable

Whether to enable Data Center drivers for NVIDIA cards on a NVLink topology . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.datacenter.settings

Additional configuration options for fabricmanager.

Type: attribute set of (atom (null, bool, int, float or string))

Default

{LOG_LEVEL=4;LOG_FILE_NAME="/var/log/fabricmanager.log";LOG_APPEND_TO_LOG=1;LOG_FILE_MAX_SIZE=1024;LOG_USE_SYSLOG=0;DAEMONIZE=1;BIND_INTERFACE_IP="127.0.0.1";STARTING_TCP_PORT=16000;FABRIC_MODE=0;FABRIC_MODE_RESTART=0;STATE_FILE_NAME="/var/tmp/fabricmanager.state";FM_CMD_BIND_INTERFACE="127.0.0.1";FM_CMD_PORT_NUMBER=6666;FM_STAY_RESIDENT_ON_FAILURES=0;ACCESS_LINK_FAILURE_MODE=0;TRUNK_LINK_FAILURE_MODE=0;NVSWITCH_FAILURE_MODE=0;ABORT_CUDA_JOBS_ON_FM_EXIT=1;}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.dynamicBoost.enable

Whether to enable dynamic Boost balances power between the CPU and the GPU for improved performance on supported laptops using the nvidia-powerd daemon. For more information, see the NVIDIA docs, on Chapter 23. Dynamic Boost on Linux . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.forceFullCompositionPipeline

Whether to enable forcefully the full composition pipeline. This sometimes fixes screen tearing issues. This has been reported to reduce the performance of some OpenGL applications and may produce issues in WebGL. It also drastically increases the time the driver needs to clock down after load . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.modesetting.enable

Whether to enable kernel modesetting when using the NVIDIA proprietary driver.

Enabling this fixes screen tearing when using Optimus via PRIME (see {option}hardware.nvidia.prime.sync.enable. This is not enabled by default because it is not officially supported by NVIDIA and would not work with SLI.

Enabling this and using version 545 or newer of the proprietary NVIDIA driver causes it to provide its own framebuffer device, which can cause Wayland compositors to work when they otherwise wouldn't. . Type: boolean

Default

lib.versionAtLeast nvidia_x11.version "535"

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.nvidiaPersistenced

Whether to enable nvidia-persistenced a update for NVIDIA GPU headless mode, i.e. It ensures all GPUs stay awake even during headless mode . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.nvidiaSettings

Whether to enable nvidia-settings, NVIDIA's GUI configuration tool . Type: boolean

Default

true

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.open

Whether to enable the open source NVIDIA kernel module . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.package

The NVIDIA driver package to use.

Type: unspecified value

Default

config.boot.kernelPackages.nvidiaPackages."\$\{if cfg.datacenter.enable then "dc" else "stable"}"

Example

"config.boot.kernelPackages.nvidiaPackages.legacy_470"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.powerManagement.enable

Whether to enable experimental power management through systemd. For more information, see the NVIDIA docs, on Chapter 21. Configuring Power Management Support . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.powerManagement.finegrained

Whether to enable experimental power management of PRIME offload. For more information, see the NVIDIA docs, on Chapter 22. PCI-Express Runtime D3 (RTD3) Power Management . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.prime.allowExternalGpu

Whether to enable configuring X to allow external NVIDIA GPUs when using Prime [Reverse] sync optimus . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.prime.amdgpuBusId

Bus ID of the AMD APU. You can find it using lspci; for example if lspci shows the AMD APU at "04:00.0", set this option to "PCI:4:0:0".

Type: string matching the pattern ([[:print:]]+[:@][0-9]{1,3}:[0-9]{1,2}:[0-9])?

Default

""

Example

"PCI:4:0:0"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.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 matching the pattern ([[:print:]]+[:@][0-9]{1,3}:[0-9]{1,2}:[0-9])?

Default

""

Example

"PCI:0:2:0"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.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 matching the pattern ([[:print:]]+[:@][0-9]{1,3}:[0-9]{1,2}:[0-9])?

Default

""

Example

"PCI:1:0:0"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.prime.offload.enable

Whether to enable render offload support using the NVIDIA proprietary driver via PRIME.

If this is enabled, then the bus IDs of the NVIDIA and Intel/AMD GPUs have to be specified ({option}hardware.nvidia.prime.nvidiaBusId and {option}hardware.nvidia.prime.intelBusId or {option}hardware.nvidia.prime.amdgpuBusId) . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.prime.offload.enableOffloadCmd

Whether to enable adding a nvidia-offload convenience script to {option}environment.systemPackages for offloading programs to an nvidia device. To work, should have also enabled {option}hardware.nvidia.prime.offload.enable or {option}hardware.nvidia.prime.reverseSync.enable.

Example usage nvidia-offload sauerbraten_client . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.prime.reverseSync.enable

Whether to enable NVIDIA Optimus support using the NVIDIA proprietary driver via reverse PRIME. If enabled, the Intel/AMD GPU will be used for all rendering, while enabling output to displays attached only to the NVIDIA GPU without a multiplexer.

Warning: This feature is relatively new, depending on your system this might work poorly. AMD support, especially so. See: https://forums.developer.nvidia.com/t/the-all-new-outputsink-feature-aka-reverse-prime/129828

Note that this option only has any effect if the "nvidia" driver is specified in {option}services.xserver.videoDrivers, and it should preferably be the only driver there.

If this is enabled, then the bus IDs of the NVIDIA and Intel/AMD GPUs have to be specified ({option}hardware.nvidia.prime.nvidiaBusId and {option}hardware.nvidia.prime.intelBusId or {option}hardware.nvidia.prime.amdgpuBusId).

If you enable this, you may want to also enable kernel modesetting for the NVIDIA driver ({option}hardware.nvidia.modesetting.enable) in order to prevent tearing.

Note that this configuration will only be successful when a display manager for which the {option}services.xserver.displayManager.setupCommands option is supported is used . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.prime.reverseSync.setupCommands.enable

Whether to enable configure the display manager to be able to use the outputs attached to the NVIDIA GPU. Disable in order to configure the NVIDIA GPU outputs manually using xrandr. Note that this configuration will only be successful when a display manager for which the {option}services.xserver.displayManager.setupCommands option is supported is used . Type: boolean

Default

true

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidia.prime.sync.enable

Whether to 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/AMD GPU without a multiplexer.

Note that this option only has any effect if the "nvidia" driver is specified in {option}services.xserver.videoDrivers, and it should preferably be the only driver there.

If this is enabled, then the bus IDs of the NVIDIA and Intel/AMD GPUs have to be specified ({option}hardware.nvidia.prime.nvidiaBusId and {option}hardware.nvidia.prime.intelBusId or {option}hardware.nvidia.prime.amdgpuBusId).

If you enable this, you may want to also enable kernel modesetting for the NVIDIA driver ({option}hardware.nvidia.modesetting.enable) in order to prevent tearing.

Note that this configuration will only be successful when a display manager for which the {option}services.xserver.displayManager.setupCommands option is supported is used . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/video/nvidia.nix

hardware.nvidiaOptimus.disable

Completely disable the NVIDIA graphics card and use the integrated graphics processor instead.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/nvidia-optimus.nix

hardware.onlykey.enable

Enable OnlyKey device (https://crp.to/p/) support.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/onlykey/default.nix

hardware.openrazer.batteryNotifier

Settings for device battery notifications.

Type: submodule

Default

{ }

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/openrazer.nix

hardware.openrazer.batteryNotifier.enable

Mouse battery notifier.

Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/openrazer.nix

hardware.openrazer.batteryNotifier.frequency

How often battery notifications should be shown (in seconds). A value of 0 disables notifications.

Type: signed integer

Default

600

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/openrazer.nix

hardware.openrazer.batteryNotifier.percentage

At what battery percentage the device should reach before sending notifications.

Type: signed integer

Default

33

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/openrazer.nix

hardware.openrazer.devicesOffOnScreensaver

Turn off the devices when the systems screensaver kicks in.

Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/openrazer.nix

hardware.openrazer.enable

Whether to enable OpenRazer drivers and userspace daemon . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/openrazer.nix

hardware.openrazer.keyStatistics

Collects number of keypresses per hour per key used to generate a heatmap.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/openrazer.nix

hardware.openrazer.syncEffectsEnabled

Set the sync effects flag to true so any assignment of effects will work across devices.

Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/openrazer.nix

hardware.openrazer.users

Usernames to be added to the "openrazer" group, so that they can start and interact with the OpenRazer userspace daemon.

Type: list of string

Default

[ ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/openrazer.nix

hardware.openrazer.verboseLogging

Whether to enable verbose logging. Logs debug messages.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/openrazer.nix

hardware.opentabletdriver.blacklistedKernelModules

Blacklist of kernel modules known to conflict with OpenTabletDriver.

Type: list of string

Default

["hid-uclogic""wacom"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/opentabletdriver.nix

hardware.opentabletdriver.daemon.enable

Whether to start OpenTabletDriver daemon as a systemd user service.

Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/opentabletdriver.nix

hardware.opentabletdriver.enable

Enable OpenTabletDriver udev rules, user service and blacklist kernel modules known to conflict with OpenTabletDriver.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/opentabletdriver.nix

hardware.opentabletdriver.package

The opentabletdriver package to use. Type: package

Default

pkgs.opentabletdriver

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/opentabletdriver.nix

hardware.parallels.autoMountShares

Control prlfsmountd service. When this service is running, shares can not be manually mounted through mount -t prl_fs ... as this service will remount and trample any set options. Recommended to enable for simple file sharing, but extended share use such as for code should disable this to manually mount shares.

Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/parallels-guest.nix

hardware.parallels.enable

This enables Parallels Tools for Linux guests, along with provided video, mouse and other hardware drivers.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/parallels-guest.nix

hardware.parallels.package

Defines which package to use for prl-tools. Override to change the version.

Type: null or package

Default

"config.boot.kernelPackages.prl-tools"

Example

config.boot.kernelPackages.prl-tools

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/parallels-guest.nix

hardware.pcmcia.config

Path to the configuration file which maps the memory, IRQs and ports used by the PCMCIA hardware.

Type: null or path

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/pcmcia.nix

hardware.pcmcia.enable

Enable this option to support PCMCIA card.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/pcmcia.nix

hardware.pcmcia.firmware

List of firmware used to handle specific PCMCIA card.

Type: list of path

Default

[ ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/pcmcia.nix

hardware.printers.ensureDefaultPrinter

Ensures the named printer is the default CUPS printer / printer queue.

Type: null or printable string without spaces, # and /

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/printers.nix

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 {command}lpstat -s and remove printers with {command}lpadmin -x <printer-name>. Printers not listed here can still be manually configured.

Type: list of (submodule)

Default

[ ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/printers.nix

hardware.printers.ensurePrinters.*.description

Optional human-readable description.

Type: null or string

Default

null

Example

"Brother HL-5140"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/printers.nix

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: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/printers.nix

hardware.printers.ensurePrinters.*.location

Optional human-readable location.

Type: null or string

Default

null

Example

"Workroom"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/printers.nix

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.versions.majorMinor (lib.getVersion pkgs.gutenprint)}://brother-hl-5140/expert"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/printers.nix

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: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/printers.nix

hardware.printers.ensurePrinters.*.ppdOptions

Sets PPD options for the printer. {command}lpoptions [-p printername] -l shows supported PPD options for the given printer.

Type: attribute set of string

Default

{ }

Example

{Duplex = "DuplexNoTumble";PageSize = "A4";}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/printers.nix

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: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/pulseaudio.nix

hardware.pulseaudio.daemon.config

Config of the pulse daemon. See man pulse-daemon.conf. Type: attribute set of unspecified value

Default

{ }

Example

{ realtime-scheduling = "yes"; }

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/pulseaudio.nix

hardware.pulseaudio.daemon.logLevel

The log level that the system-wide pulseaudio daemon should use, if activated.

Type: string

Default

"notice"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/pulseaudio.nix

hardware.pulseaudio.enable

Whether to enable the PulseAudio sound server.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/pulseaudio.nix

hardware.pulseaudio.extraClientConf

Extra configuration appended to pulse/client.conf file.

Type: strings concatenated with "\n"

Default

""

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/pulseaudio.nix

hardware.pulseaudio.extraConfig

Literal string to append to configFile and the config file generated by the pulseaudio module.

Type: strings concatenated with "\n"

Default

""

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/pulseaudio.nix

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 package

Default

[ ]

Example

[ pkgs.pulseaudio-modules-bt ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/pulseaudio.nix

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.pulseaudioFull

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/pulseaudio.nix

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

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/pulseaudio.nix

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 "pulse-access" 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

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/pulseaudio.nix

hardware.pulseaudio.tcp.anonymousClients.allowAll

Whether to enable all anonymous clients to stream to the server. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/pulseaudio.nix

hardware.pulseaudio.tcp.anonymousClients.allowedIpRanges

A list of IP subnets that are allowed to stream to the server.

Type: list of string

Default

[ ]

Example

[ "127.0.0.1" "192.168.1.0/24" ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/pulseaudio.nix

hardware.pulseaudio.tcp.enable

Whether to enable tcp streaming support. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/pulseaudio.nix

hardware.pulseaudio.zeroconf.discovery.enable

Whether to enable discovery of pulseaudio sinks in the local network. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/pulseaudio.nix

hardware.pulseaudio.zeroconf.publish.enable

Whether to enable publishing the pulseaudio sink in the local network. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/config/pulseaudio.nix

hardware.raid.HPSmartArray.enable

Whether to enable HP Smart Array kernel modules and CLI utility. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/raid/hpsa.nix

hardware.rasdaemon.config

rasdaemon configuration, currently only used for CE PFA for details, read rasdaemon.outPath/etc/sysconfig/rasdaemon's comments

Type: strings concatenated with "\n"

Default

""

Example

'' # defaults from included config PAGE_CE_REFRESH_CYCLE="24h" PAGE_CE_THRESHOLD="50" PAGE_CE_ACTION="soft"''

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/rasdaemon.nix

hardware.rasdaemon.enable

Whether to enable RAS logging daemon. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/rasdaemon.nix

hardware.rasdaemon.extraModules

extra kernel modules to load Type: list of string

Default

[ ]

Example

["i7core_edac"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/rasdaemon.nix

hardware.rasdaemon.labels

Additional memory module label descriptions to be placed in /etc/ras/dimm_labels.d/labels Type: strings concatenated with "\n"

Default

""

Example

'' # vendor and model may be shown by 'ras-mc-ctl --mainboard' vendor: ASRock product: To Be Filled By O.E.M. model: B450M Pro4 # these labels are names for the motherboard slots # the numbers may be shown byras-mc-ctl --error-count# they are mc:csrow:channel DDR4_A1: 0.2.0; DDR4_B1: 0.2.1; DDR4_A2: 0.3.0; DDR4_B2: 0.3.1; ''

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/rasdaemon.nix

hardware.rasdaemon.mainboard

Custom mainboard description, see {manpage}ras-mc-ctl(8) for more details. Type: strings concatenated with "\n"

Default

""

Example

`#!nix '' vendor = ASRock model = B450M Pro4

# it should default to such values from # /sys/class/dmi/id/board_[vendor|name] # alternatively one can supply a script # that returns the same format as above

script = ''`

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/rasdaemon.nix

hardware.rasdaemon.record

record events via sqlite3, required for ras-mc-ctl Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/rasdaemon.nix

hardware.rasdaemon.testing

Whether to enable error injection infrastructure. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/rasdaemon.nix

hardware.rtl-sdr.enable

Enables rtl-sdr udev rules, ensures 'plugdev' group exists, and blacklists DVB kernel modules. This is a prerequisite to using devices supported by rtl-sdr without being root, since rtl-sdr USB descriptors will be owned by plugdev through udev.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/rtl-sdr.nix

hardware.saleae-logic.enable

Whether to enable udev rules for Saleae Logic devices. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/saleae-logic.nix

hardware.saleae-logic.package

Saleae Logic package to use.

Type: package

Default

pkgs.saleae-logic-2

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/saleae-logic.nix

hardware.sane.backends-package

Backends driver package to use. Type: package

Default

pkgs.sane-backends

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane.nix

hardware.sane.brscan4.enable

When enabled, will automatically register the "brscan4" sane backend and bring configuration files to their expected location.

Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane_extra_backends/brscan4.nix

hardware.sane.brscan4.netDevices

The list of network devices that will be registered against the brscan4 sane backend.

Type: attribute set of (submodule)

Default

{ }

Example

{office1 = {ip = "192.168.1.2";model = "MFC-7860DW";};office2 = {model = "MFC-7860DW";nodename = "BRW0080927AFBCE";};}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane_extra_backends/brscan4.nix

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

null

Example

"192.168.1.2"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane_extra_backends/brscan4.nix

hardware.sane.brscan4.netDevices.<name>.model

The model of the network device.

Type: string

Example

"MFC-7860DW"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane_extra_backends/brscan4.nix

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

"office1"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane_extra_backends/brscan4.nix

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

null

Example

"BRW0080927AFBCE"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane_extra_backends/brscan4.nix

hardware.sane.brscan5.enable

Whether to enable the Brother brscan5 sane backend. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane_extra_backends/brscan5.nix

hardware.sane.brscan5.netDevices

The list of network devices that will be registered against the brscan5 sane backend.

Type: attribute set of (submodule)

Default

{ }

Example

{office1 = {ip = "192.168.1.2";model = "MFC-7860DW";};office2 = {model = "MFC-7860DW";nodename = "BRW0080927AFBCE";};}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane_extra_backends/brscan5.nix

hardware.sane.brscan5.netDevices.<name>.ip

The ip address of the device. If undefined, you will have to provide a nodename.

Type: null or string

Default

null

Example

"192.168.1.2"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane_extra_backends/brscan5.nix

hardware.sane.brscan5.netDevices.<name>.model

The model of the network device.

Type: string

Example

"ADS-1200"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane_extra_backends/brscan5.nix

hardware.sane.brscan5.netDevices.<name>.name

The friendly name you give to the network device. If undefined, the name of attribute will be used.

Type: string

Example

"office1"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane_extra_backends/brscan5.nix

hardware.sane.brscan5.netDevices.<name>.nodename

The node name of the device. If undefined, you will have to provide an ip.

Type: null or string

Default

null

Example

"BRW0080927AFBCE"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane_extra_backends/brscan5.nix

hardware.sane.disabledDefaultBackends

Names of backends which are enabled by default but should be disabled. See $SANE_CONFIG_DIR/dll.conf for the list of possible names.

Type: list of string

Default

[ ]

Example

["v4l"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane.nix

hardware.sane.drivers.scanSnap.enable

Whether to enable drivers for the Fujitsu ScanSnap scanners.

The driver files are unfree and extracted from the Windows driver image.

Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane.nix

hardware.sane.drivers.scanSnap.package

The epjitsu package to use. Useful if you want to extract the driver files yourself.

The process is described in the {file}/etc/sane.d/epjitsu.conf file in the sane-backends package.

Type: package

Default

pkgs.sane-drivers.epjitsu

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane.nix

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

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane_extra_backends/dsseries.nix

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

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane.nix

hardware.sane.extraBackends

Packages providing extra SANE backends to enable.

::: {.note} The example contains the package for HP scanners, and the package for Apple AirScan and Microsoft WSD support (supports many vendors/devices). :::

Type: list of path

Default

[ ]

Example

[ pkgs.hplipWithPlugin pkgs.sane-airscan ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane.nix

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: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane.nix

hardware.sane.openFirewall

Open ports needed for discovery of scanners on the local network, e.g. needed for Canon scanners (BJNP protocol).

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane.nix

hardware.sane.snapshot

Use a development snapshot of SANE scanner drivers. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/sane.nix

hardware.sata.timeout.deciSeconds

Set SCT Error Recovery Control timeout in deciseconds for use in RAID configurations.

Values are as follows: 0 = disable SCT ERT 70 = default in consumer drives (7 seconds)

Maximum is disk dependant but probably 60 seconds.

Type: signed integer

Example

70

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/sata.nix

hardware.sata.timeout.drives

List of drives for which to configure the timeout. Type: list of (submodule)

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/sata.nix

hardware.sata.timeout.drives.*.idBy

The method to identify the drive. Type: one of "path", "wwn"

Default

"path"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/sata.nix

hardware.sata.timeout.drives.*.name

Drive name without the full path. Type: string

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/sata.nix

hardware.sata.timeout.enable

Whether to enable SATA drive timeouts. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/sata.nix

hardware.sensor.hddtemp.dbEntries

Additional DB entries Type: list of string

Default

[ ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/sensor/hddtemp.nix

hardware.sensor.hddtemp.drives

List of drives to monitor. If you pass /dev/disk/by-path/* entries the symlinks will be resolved as hddtemp doesn't like names with colons. Type: list of string

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/sensor/hddtemp.nix

hardware.sensor.hddtemp.enable

Enable this option to support HDD/SSD temperature sensors.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/sensor/hddtemp.nix

hardware.sensor.hddtemp.extraArgs

Additional arguments passed to the daemon. Type: list of string

Default

[ ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/sensor/hddtemp.nix

hardware.sensor.hddtemp.unit

Celsius or Fahrenheit Type: one of "C", "F"

Default

"C"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/sensor/hddtemp.nix

hardware.sensor.iio.enable

Enable this option to support IIO sensors with iio-sensor-proxy.

IIO sensors are used for orientation and ambient light sensors on some mobile devices.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/sensor/iio.nix

hardware.spacenavd.enable

Whether to enable spacenavd to support 3DConnexion devices. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/spacenavd.nix

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

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/steam-hardware.nix

hardware.system76.enableAll

Whether to enable all recommended configuration for system76 systems. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/system-76.nix

hardware.system76.firmware-daemon.enable

Whether to enable the system76 firmware daemon Type: boolean

Default

config.hardware.system76.enableAll

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/system-76.nix

hardware.system76.kernel-modules.enable

Whether to make the system76 out-of-tree kernel modules available Type: boolean

Default

config.hardware.system76.enableAll

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/system-76.nix

hardware.system76.power-daemon.enable

Whether to enable the system76 power daemon Type: boolean

Default

config.hardware.system76.enableAll

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/system-76.nix

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: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/tasks/trackpoint.nix

hardware.trackpoint.emulateWheel

Enable scrolling while holding the middle mouse button.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/tasks/trackpoint.nix

hardware.trackpoint.enable

Enable sensitivity and speed configuration for trackpoints.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/tasks/trackpoint.nix

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

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/tasks/trackpoint.nix

hardware.trackpoint.sensitivity

Configure the trackpoint sensitivity. By default, the kernel configures 128.

Type: signed integer

Default

128

Example

255

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/tasks/trackpoint.nix

hardware.trackpoint.speed

Configure the trackpoint speed. By default, the kernel configures 97.

Type: signed integer

Default

97

Example

255

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/tasks/trackpoint.nix

hardware.tuxedo-keyboard.enable

Whether to enable the tuxedo-keyboard driver.

To configure the driver, pass the options to the {option}boot.kernelParams 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 custom lighting with the maximumg brightness and a color of 0xff0a0a one would put pass {option}boot.kernelParams like this:

boot.kernelParams = [
 "tuxedo_keyboard.mode=0"
 "tuxedo_keyboard.brightness=255"
 "tuxedo_keyboard.color_left=0xff0a0a"
];
. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/tuxedo-keyboard.nix

hardware.tuxedo-rs.enable

Whether to enable Rust utilities for interacting with hardware from TUXEDO Computers. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/tuxedo-rs.nix

hardware.tuxedo-rs.tailor-gui.enable

Whether to enable tailor-gui, an alternative to TUXEDO Control Center, written in Rust. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/tuxedo-rs.nix

hardware.ubertooth.enable

Whether to enable Ubertooth software and its udev rules. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/ubertooth.nix

hardware.ubertooth.group

Group for Ubertooth's udev rules. Type: string

Default

"ubertooth"

Example

"wheel"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/ubertooth.nix

hardware.uinput.enable

Whether to enable uinput support. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/uinput.nix

hardware.uni-sync.devices

List of controllers with their configurations. Type: list of (submodule)

Default

[ ]

Example

[{device_id = "VID:1111/PID:11111/SN:1111111111";sync_rgb = true;channels = [{mode = "PWM";}{mode = "Manual";speed = 100;}{mode = "Manual";speed = 54;}{mode = "Manual";speed = 0;}];}{device_id = "VID:1010/PID:10101/SN:1010101010";sync_rgb = false;channels = [{mode = "Manual";speed = 0;}];}]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/uni-sync.nix

hardware.uni-sync.devices.*.channels

List of channels connected to the controller. Type: list of (submodule)

Default

[ ]

Example

[{mode = "PWM";}{mode = "Manual";speed = 100;}{mode = "Manual";speed = 54;}{mode = "Manual";speed = 0;}]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/uni-sync.nix

hardware.uni-sync.devices.*.channels.*.mode {hardware-uni-sync-devices--channels--mode}

"PWM" to enable PWM sync. "Manual" to set speed. Type: one of "Manual", "PWM"

Default {hardware-uni-sync-devices--channels--mode-default}

"Manual"

Example {hardware-uni-sync-devices--channels--mode-example}

"PWM"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/uni-sync.nix

hardware.uni-sync.devices.*.channels.*.speed {hardware-uni-sync-devices--channels--speed}

Fan speed as percentage (clamped between 0 and 100). Type: signed integer

Default {hardware-uni-sync-devices--channels--speed-default}

"50"

Example {hardware-uni-sync-devices--channels--speed-example}

"100"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/uni-sync.nix

hardware.uni-sync.devices.*.device_id

Unique device ID displayed at each startup. Type: string

Example

"VID:1111/PID:11111/SN:1111111111"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/uni-sync.nix

hardware.uni-sync.devices.*.sync_rgb

Enable ARGB header sync. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/uni-sync.nix

hardware.uni-sync.enable

Whether to enable udev rules and software for Lian Li Uni Controllers. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/uni-sync.nix

hardware.uni-sync.package

The uni-sync package to use. Type: package

Default

pkgs.uni-sync

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/uni-sync.nix

hardware.usb-modeswitch.enable

Enable this option to support certain USB WLAN and WWAN adapters.

These network adapters initial present themselves as Flash Drives containing their drivers. This option enables automatic switching to the networking mode.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/usb-modeswitch.nix

hardware.usbStorage.manageStartStop

Enable this option to gracefully spin-down external storage during shutdown. If you suspect improper head parking after poweroff, install smartmontools and check for the Power-Off_Retract_Count field for an increment.

Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/usb-storage.nix

hardware.wirelessRegulatoryDatabase

Whether to enable loading the wireless regulatory database at boot. Type: boolean

Default

Enabled if proprietary firmware is allowed via {option}enableRedistributableFirmware or {option}enableAllFirmware.

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/all-firmware.nix

hardware.wooting.enable

Whether to enable support for Wooting keyboards. Note that users must be in the "input" group for udev rules to apply. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/wooting.nix

hardware.xone.enable

Whether to enable the xone driver for Xbox One and Xbox Series X|S accessories. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/xone.nix

hardware.xpadneo.enable

Whether to enable the xpadneo driver for Xbox One wireless controllers. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/hardware/xpadneo.nix