Commit Graph

71 Commits

Author SHA1 Message Date
Kiskae
9c24e11f3a nvidiaPackages.(settings|persistened): add fallback cdn 2023-11-28 15:42:39 +01:00
Kiskae
3281455a26 nvidiaPackages: format generic.nix 2023-11-28 15:17:12 +01:00
Edward Tjörnhammar
9b95f21cdb nvidia,nixos/nvidia: add datacenter drivers compatible with default cudaPkgs
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-12 07:17:33 +02:00
Gerg-L
4ca2a16390 nixos/nvidia: add Dynamic Boost support 2023-08-03 09:32:14 -04:00
Kiskae
10d634b384 linuxPackages.nvidia_x11_beta: add new dependency
new `libnvidia-pkcs11*` libraries depend on openssl, used by cuda
2023-05-30 20:14:57 +02:00
Kiskae
89f389dd94 nvidia_x11: replace pre/postPatch with patchFlags 2023-05-13 20:16:00 +02:00
Mika Tammi
2a6b15d371
linuxPackages.nvidia_x11: aarch64-linux support
* Add aarch64-linux binary packages
* add cross-compilation support to open-package

Signed-off-by: Mika Tammi <mika.tammi@unikie.com>
2023-04-14 17:36:16 +03:00
Kiskae
4f8300ad9a linuxPackages.nvidia_x11: add kiskae as maintainer 2023-04-14 12:45:19 +02:00
Kiskae
ea126529eb nixos/nvidia: allow package to override IBT support 2023-04-01 14:44:43 +02:00
Kiskae
91f99f14ff linuxPackages.nvidia_x11: add support for zstd compression 2023-03-24 11:35:55 +01:00
Kiskae
1e33804975 linuxPackages_6_2.nvidia_x11_legacy470: add patch
fixes #219907
2023-03-14 21:08:05 +01:00
Kiskae
d120c53077 linuxPackages_6_2.nvidia_x11: disable ibt 2023-02-22 18:08:41 +01:00
Kiskae
8d77f85546 linuxPackages.nvidia_x11: mark as broken on 6.2 2022-11-12 15:33:11 +01:00
Artturin
7e49471316 treewide: optional -> optionals where the argument is a list
the argument to optional should not be list
2022-10-10 15:40:21 +03:00
Nick Cao
5862dabeed linuxPackages.nvidia_x11: mark firmware as not compressible 2022-10-07 19:40:58 +00:00
PedroHLC ☭
27d72f5abb
nvidia_x11: mark broken 2022-08-25 09:01:29 -03:00
Kiskae
45e6c607d6 nvidia_x11: add conditional overrides
nvidia_x11_open: unbreak 5.19

common kernel code is shared, if the closed build is broken, so is the open one.

nvidia_x11_production: add alias, sort names

nvidia_x11: reintroduce stable as a pure alias

nvidia_x11: don't use alias in override
2022-08-17 15:49:51 +02:00
Nick Cao
94f5bd2051
nvidia_x11: init opensource kernel driver 2022-06-03 10:50:33 +08:00
Anders Kaseorg
6920d8ca42 treewide: Simplify negated uses of versionAtLeast, versionOlder
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-04-25 13:35:24 -07:00
Jonathan Ringer
82b2a833d8
linuxPackages.nvidia_x11: add jonringer as maintainer 2022-02-05 14:01:11 -08:00
Binary-Eater
ebc3be413c
nvidia-x11: add GNU which to buildInputs (#156203)
This enables the runfile to successfully uncompress and extract without
having to fallback to "unpackManually" in "builder.sh"
2022-01-26 04:23:20 -05:00
Cole Mickens
4f0c8d0512
nvidia_x11: libPath: add libgbm/libGL libraries (#145439) 2021-11-14 23:43:35 +01:00
Cole Mickens
7761e23785
nvidia: add wayland to nvidia-egl-wayland libpath 2021-10-20 15:19:07 -07:00
Herman Fries
eaaf989c1c nvidia_x11: Remove maintainer baracoder 2021-09-19 22:53:16 +02:00
Bernardo Meurer
19e4afc912
linuxPackages.nvidia-x11: use makeFlags in builder.sh 2021-08-30 17:06:12 -07:00
Bernardo Meurer
636e17aab5
linuxPackages.nvidia_x11: apply kernel module makeFlags 2021-08-30 17:06:08 -07:00
Julius de Bruijn
952d9a35d3 The driver download url has changed 2021-04-16 11:48:20 +02:00
Dmitry Kalinkin
161b9b2436
Merge pull request #99323 from eadwu/nvidia/hardware.nvidia.package
nixos: hardware.nvidia.package option for selecting nvidia package
2021-01-30 22:08:37 -05:00
Ben Siraphob
16d91ee628 pkgs/os-specific: stdenv.lib -> lib 2021-01-17 23:26:08 +07:00
Frederik Rietdijk
450cb04f16
nixos: hardware.nvidia.package option for selecting nvidia package
Make it possible to select a derivation to use. This also moves some
logic that belongs to the derivation back into it.
2021-01-11 13:01:48 -05:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Joe Hermaszewski
99d2db8dce
nvidia-x11.vulkan_beta: init at 450.56.11 (#97882)
- This is fetched from a different URL, so allow passing that explicitly.

- There also isn't an nvidia-persistenced or nvidia-settings release for
  this version, so use 450.57 instead. Also implement passing
  persistenced and settings version explicitly.

Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
2020-09-24 10:53:05 -04:00
Matthew Bauer
31d8669a72 nvidia-x11: add disable32Bit arg to not include 32-bit nvidia
In some contexts, we don’t want to have to build the whole i686 stdenv
just to use the x86_64 nvidia driver. It’s hard to know ahead of time
what we want, so it’s best to leave this as an overridable option.
2020-08-20 10:29:28 -05:00
Edmund Wu
7d3150fe8f
nvidia_x11: disable i686-linux on unsupported versions 2020-06-24 19:54:19 -04:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Edmund Wu
3b3876649d
nvidia_x11: include libdrm in rpath
Needed for PRIME render offload specifically
2019-12-10 11:35:30 -05:00
Ambroz Bizjak
d1226bff8e nvidia-x11: Set 32-bit library paths for 32-bit libraries.
Patchelf was being called to point RUNPATH to 64-bit library paths even for 32-bit libraries.
2019-06-15 10:54:50 +02:00
Edmund Wu
f81836cc30
nvidia_x11: 418.56 -> 418.74 2019-05-08 18:25:16 -04:00
Edmund Wu
0f9672d28d
nvidia_x11_beta: stable -> 430.09 2019-04-23 17:10:06 -04:00
Matthew Bauer
290a5d916e treewide: update homepages to https where available
Based on "problems" from repology:

https://repology.org/repository/nix_unstable/problems

Mostly simple changes to reflect redirects.
2019-04-15 10:10:05 -04:00
Herman Fries
ca1f092fe9 linuxPackages.nvidia_x11*: Add maintainer: baracoder
I bought some recent nVidia hardware, so I am stuck with it for a couple
of years and because of this, I have an interest in a working nVidia driver.
2019-01-11 11:36:34 +01:00
Vladimír Čunát
9ee8cf5177
linuxPackages.nvidia_x11*: unmaintain
I now no longer use an nvidia card commonly, so it would be harder for
me to test at least a bit.  And I'm overcommited anyway.
Hopefully someone else can be found.
2019-01-06 14:59:03 +01:00
Jörg Thalheim
3775f1e53e
linuxPackages_4_18.nvidia_x11_legacy304: mark as broken on 4.18 and newer 2018-12-02 10:46:11 +00:00
Edmund Wu
21bb1fa004
nvidia_x11_beta: reinit at 410.57 2018-10-17 19:30:44 -04:00
danme
44fba6df79 nvidia-x11: Fix vulkan VK_KHR_xcb_surface
Fixes the issue: https://github.com/NixOS/nixpkgs/issues/39149

Problem was that the Nvidia driver did not find the libxcb-glx at runtime.

(cherry picked from commit bda072cafcef4cf5ff99828852ddc8e06ce1fdbf)
2018-09-23 22:19:21 +02:00
John Ericson
2c2f1e37d4 reewide: Purge all uses stdenv.system and top-level system
It is deprecated and will be removed after 18.09.
2018-08-30 17:20:32 -04:00
Edmund Wu
77d49ae9a3
Revert "Merge #45509: nvidia_x11*: mark broken on 4.18"
This reverts commit d5e2f91ec8, reversing
changes made to a850a140fb.
2018-08-23 18:27:10 -04:00
Yardanico
c2e583fc75
Mark nvidia driver as broken on 4.18
Addition to https://github.com/NixOS/nixpkgs/pull/45410
2018-08-23 20:58:09 +03:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Matthew Bauer
c491a99362 treewide: remove callPackage_i686
This has been replaced with pkgsi686Linux.callPackage
2018-07-05 14:04:52 -04:00