about summary refs log tree commit diff
path: root/nixos/modules/hardware
AgeCommit message (Collapse)AuthorFilesLines
2024-03-19nixos/nvidia: Set SidebandSocketPath to a user-writable path in `/run`Philip Taron1-2/+11
The NVIDIA X driver uses a UNIX domain socket to pass information to other driver components. If unable to connect to this socket, some driver features, such as G-Sync, may not work correctly. The socket will be bound to a file with a name unique to the X server instance created in the directory specified by this option. Note that on Linux, an additional abstract socket (not associated with a file) will also be created, with this pathname socket serving as a fallback if connecting to the abstract socket fails. The default, which was in effect prior to this change, was `/var/run`. The effect of not setting this option was that GDM X sessions (and other non-root sessions) would see this warning in the log files: ``` (WW) NVIDIA: Failed to bind sideband socket to (WW) NVIDIA: '/var/run/nvidia-xdriver-b4f69129' Permission denied ``` I don't see any security implications of turning this on universally, since there already was an abstract socket created according to the docs. Documentation: 1. [NVIDIA X Config Options](https://download.nvidia.com/XFree86/Linux-x86_64/440.82/README/xconfigoptions.html#SidebandSocketPath) Diagnosis: 1. [Arch Linux BBS post](https://bbs.archlinux.org/viewtopic.php?pid=1909115#p1909115)
2024-03-15Add ivsc-firmware to ipu6 optionJulio Gutierrez1-1/+4
2024-02-26Merge pull request #291464 from Gerg-L/switcheroo2Weijia Wang1-8/+9
nixos/switcherooControl: add package option
2024-02-25nixos/switcherooControl: add package optionGerg-L1-8/+9
clean up
2024-02-25nixos/hardware/printers: fix empty ppdOptionsRyan Horiguchi1-11/+16
2024-01-23nixos/corectrl: add package optionNanotwerp1-2/+6
Co-authored-by: Emily <git@emilylange.de>
2024-01-09Merge remote-tracking branch 'origin/master' into staging-nextK9001-1/+1
2024-01-08Merge pull request #265030 from bb2020/usbstorWill Fancher1-1/+1
nixos/usbStorage: update device flag
2023-12-29Merge master into staging-nextgithub-actions[bot]1-3/+4
2023-12-29nixos/amdgpu-pro: replacce activationScript via tmpfilesnikstur1-3/+4
2023-12-19Merge staging-next into staginggithub-actions[bot]1-4/+1
2023-12-18nixos/firmware: Omit removed rtl8723-bs packageJonathan Ringer1-4/+1
2023-12-18Merge staging-next into staginggithub-actions[bot]1-22/+50
2023-12-18Merge pull request #273876 from timothyklim/masterNick Cao1-22/+50
nvidia_x11.dc_535: 535.129.03
2023-12-15nvidia_x11.dc_535: 535.129.03timothy1-22/+50
2023-12-14Merge staging-next into staginggithub-actions[bot]1-0/+1
2023-12-14nixos/qmk: ensure plugdev groups existstv1-0/+1
QMK's udev rules are setting hidraw devices's group to plugdev.
2023-12-11nixos/ipu6: add support for ipu6epmtlAndré Silva1-6/+6
2023-12-11ipu6-camera-bins: rename from ipu6-camera-binAndré Silva1-3/+1
2023-11-27treewide: use `mkPackageOption`h7x43-21/+6
This commit replaces a lot of usages of `mkOption` with the package type, to be `mkPackageOption`, in order to reduce the amount of code.
2023-11-23nixos/nvidia: load `nvidia-uvm` kernel module via `softdep` (#267335)Yang, Bo1-1/+10
2023-11-07Merge pull request #262565 from Atemu/nixos/firmware-mkEnableOptionAtemu1-19/+5
nixos/hardware: use mkEnableOption
2023-11-02nixos/usbStorage: update device flagbb20201-1/+1
2023-10-24Merge pull request #262135 from Kiskae/nvidia-udev-fixTimothy DeHerrera1-3/+3
nixos/nvidia: partially revert #181674
2023-10-22nixos/hardware/cpu/intel/msr: initLorenz Leutgeb1-0/+91
2023-10-21nixos/hardware: use mkEnableOptionAtemu1-19/+5
Also made the default of hardware.wirelessRegulatoryDatabase part of the option declaration, not the implementation.
2023-10-20nixos: fix bad mkEnableOption descriptionsBjørn Forsman8-21/+21
Fix descriptions that don't account for (1) the "Whether to enable" prefix or (2) the automatically added trailing dot.
2023-10-19nixos/nvidia: partially revert #181674Kiskae1-3/+3
nvidia has changed the name of the chardev in the latest beta driver. Match the behavior of `nvidia-modprobe` and hardcode the major number.
2023-10-07Merge pull request #251898 from ktrinh-anduril/ktrinh/improve-devicetree-infraRyan Lahfa1-19/+47
2023-10-01treewide: use `pkgs.config` instead of `config.nixpkgs.config`K9001-1/+1
`pkgs` may be passed in externally, in which case `config.nixpkgs.config` will not be set. Follow-up to #257458.
2023-09-26nixos/amdgpu-pro: remove `nixpkgs.config` usageK9001-3/+0
A new X.org ABI is exceptionally unlikely at this point, and we can add an assertion if it ever happens.
2023-09-25Merge pull request #248372 from yaxitech/amd-sev-guestRyan Lahfa1-30/+59
2023-09-24nixos/device-tree: Allow custom dtbSource and expose compileDtsktrinh1-19/+47
2023-09-21nixos/glasgow: init hardware moduleRobert Gerus1-0/+23
2023-09-15nixos/amd.sev: add `hardware.cpu.amd.sevGuest` optionVincent Haupert1-30/+59
Allow setting the owner, group and mode of the `/dev/sev-guest` device, similar to what is already possible for `/dev/sev` through the `hardware.cpu.amd.sev` options. The `/dev/sev` device is available to AMD SEV hosts, e.g., to start an AMD SEV-SNP guest. In contrast, the `/dev/sev-guest` device is only available within SEV-SNP guests. The guest uses the device, for example, to request an attestation report. Linux has in-tree support for SEV-SNP guests since 5.19.
2023-09-14nixos/nvidia: don't assume x11 is used..Edward Tjörnhammar1-5/+4
2023-09-12nvidia,nixos/nvidia: add datacenter drivers compatible with default cudaPkgsEdward Tjörnhammar1-222/+328
For NVLink topology systems we need fabricmanager. Fabricmanager itself is dependent on the datacenter driver set and not the regular x11 ones, it is also tightly tied to the driver version. Furhtermore the current cudaPackages defaults to version 11.8, which corresponds to the 520 datacenter drivers. Future improvement should be to switch the main nvidia datacenter driver version on the `config.cudaVersion` since these are well known from: > https://docs.nvidia.com/deploy/cuda-compatibility/index.html#use-the-right-compat-package This adds nixos configuration options `hardware.nvidia.datacenter.enable` and `hardware.nvidia.datacenter.settings` (the settings configure fabricmanager) Other interesting external links related to this commit are: * Fabricmanager download site: - https://developer.download.nvidia.com/compute/cuda/redist/fabricmanager/linux-x86_64/ * Data Center drivers: - https://www.nvidia.com/Download/driverResults.aspx/193711/en-us/ Implementation specific details: * Fabricmanager is added as a passthru package, similar to settings and presistenced. * Adds `use{Settings,Persistenced,Fabricmanager}` with defaults to preserve x11 expressions. * Utilizes mkMerge to split the `hardware.nvidia` module into three comment delimited sections: 1. Common 2. X11/xorg 3. Data Center * Uses asserts to make the configurations mutualy exclusive. Notes: * Data Center Drivers are `x86_64` only. * Reuses the `nvidia_x11` attribute in nixpkgs on enable, e.g. doesn't change it to `nvidia_driver` and sets that to either `nvidia_x11` or `nvidia_dc`. * Should have a helper function which is switched on `config.cudaVersion` like `selectHighestVersion` but rather `selectCudaCompatibleVersion`.
2023-09-09nixos/decklink: inithexchen1-0/+16
2023-09-07nixos/infiniband: add support for configurable guidsEdward Tjörnhammar1-0/+58
2023-08-10Merge pull request #244060 from Gerg-L/nvidiaDynamicBoostFranz Pletz1-398/+384
nixos/nvidia: clean up and add dynamic boost
2023-08-03nixos/nvidia: add Dynamic Boost supportGerg-L1-0/+27
2023-07-25Merge pull request #244572 from MinerSebas/usb-modeswitch-module-renameNick Cao1-3/+10
nixos/usb-modeswitch: Rename module from usbWwan
2023-07-25nixos/usb-modeswitch: Rename module from usbWwanMinerSebas1-3/+10
2023-07-24Merge pull request #225055 from jtrees/update-wooting-udev-rulesSandro1-2/+2
wooting: update udev rules
2023-07-24wooting: clarify requirements for hardware option to workJoshua Trees1-2/+2
2023-07-18nixos/nvidia: cleaned up reorganized and reformattedGerg-L1-398/+357
2023-07-03rtl8723bs-firmware: cleanupLein Matsumaru1-1/+0
2023-06-28Merge pull request #232415 from jensbin/displaylink57Pol Dellaiera1-0/+1
displaylink: 5.6.1-59.184 -> 5.7.0-61.129
2023-06-26displaylink: 5.6.1-59.184 -> 5.7.0-61.129Jens Binkert1-0/+1
2023-06-21nixos/nvidia: fix typo in PRIME/nvidiaBusID assertionseth1-1/+1