From bf95efcbea8b5112df480e7f20b8fd8b9dee6bc5 Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:15:55 -0600 Subject: [PATCH 01/26] lenovo-ideapad-15ach6: Add nvidia architecture --- lenovo/ideapad/15ach6/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lenovo/ideapad/15ach6/default.nix b/lenovo/ideapad/15ach6/default.nix index c771f1b..e86fee9 100644 --- a/lenovo/ideapad/15ach6/default.nix +++ b/lenovo/ideapad/15ach6/default.nix @@ -6,6 +6,7 @@ ../../../common/cpu/amd/pstate.nix ../../../common/gpu/amd ../../../common/gpu/nvidia/prime.nix + ../../../common/gpu/nvidia/turing ../../../common/pc/laptop ../../../common/pc/laptop/ssd ]; From b890093a86aeec6f0d503d798fd5ebd7902196b2 Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:16:07 -0600 Subject: [PATCH 02/26] lenovo-ideapad-15arh05: Add nvidia architecture --- lenovo/ideapad/15arh05/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lenovo/ideapad/15arh05/default.nix b/lenovo/ideapad/15arh05/default.nix index 46dfd24..87229c5 100644 --- a/lenovo/ideapad/15arh05/default.nix +++ b/lenovo/ideapad/15arh05/default.nix @@ -4,6 +4,7 @@ imports = [ ../../../common/cpu/amd ../../../common/gpu/nvidia/prime.nix + ../../../common/gpu/nvidia/turing ../../../common/pc/laptop ../../../common/pc/laptop/acpi_call.nix ../../../common/pc/laptop/ssd From d4c8e7fc42426ec04d1ea398f100a32b93c751bb Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:16:45 -0600 Subject: [PATCH 03/26] lenovo-ideapad-16ach6: Add nvidia architecture --- lenovo/ideapad/16ach6/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lenovo/ideapad/16ach6/default.nix b/lenovo/ideapad/16ach6/default.nix index 3f9beb1..aeec329 100644 --- a/lenovo/ideapad/16ach6/default.nix +++ b/lenovo/ideapad/16ach6/default.nix @@ -6,6 +6,7 @@ ../../../common/cpu/amd/pstate.nix ../../../common/gpu/amd ../../../common/gpu/nvidia/prime.nix + ../../../common/gpu/nvidia/turing ../../../common/pc/laptop ../../../common/pc/laptop/ssd ]; From feb83f6cd269fdee6b29dfe63716ebd37b9c807f Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:16:57 -0600 Subject: [PATCH 04/26] lenovo-legion-15ach6: Add nvidia architecture --- lenovo/legion/15ach6/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lenovo/legion/15ach6/default.nix b/lenovo/legion/15ach6/default.nix index a3c00fd..0166a5f 100644 --- a/lenovo/legion/15ach6/default.nix +++ b/lenovo/legion/15ach6/default.nix @@ -4,6 +4,7 @@ ../../../common/cpu/amd ../../../common/gpu/amd ../../../common/gpu/nvidia/prime.nix + ../../../common/gpu/nvidia/ampere ../../../common/hidpi.nix ../../../common/pc/laptop ../../../common/pc/laptop/ssd From ec5e8f29ff4ac4a20809cc662c8e75799958dadf Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:17:09 -0600 Subject: [PATCH 05/26] lenovo-legion-15ach6h: Add nvidia architecture --- lenovo/legion/15ach6h/hybrid/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lenovo/legion/15ach6h/hybrid/default.nix b/lenovo/legion/15ach6h/hybrid/default.nix index 2f12f7e..044d088 100644 --- a/lenovo/legion/15ach6h/hybrid/default.nix +++ b/lenovo/legion/15ach6h/hybrid/default.nix @@ -6,6 +6,7 @@ ../../../../common/cpu/amd/pstate.nix ../../../../common/gpu/amd ../../../../common/gpu/nvidia/prime.nix + ../../../../common/gpu/nvidia/ampere ../../../../common/pc/laptop ../../../../common/pc/laptop/ssd ]; From 06355153e53d0dd728986f6f0a048b58c0fdd391 Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:20:04 -0600 Subject: [PATCH 06/26] lenovo-legion-15ich: Add nvidia architecture --- lenovo/legion/15ich/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lenovo/legion/15ich/default.nix b/lenovo/legion/15ich/default.nix index 9fa70b7..8aaffff 100644 --- a/lenovo/legion/15ich/default.nix +++ b/lenovo/legion/15ich/default.nix @@ -4,6 +4,7 @@ imports = [ ../../../common/cpu/intel ../../../common/gpu/nvidia/prime.nix + ../../../common/gpu/nvidia/pascal ../../../common/pc/laptop ../../../common/pc/laptop/ssd ../../../common/pc/laptop/hdd From ab4beae1748358dfd7ba1ece826055e7d163d30f Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:20:18 -0600 Subject: [PATCH 07/26] lenovo-legion-16irx8h: Add nvidia architecture --- lenovo/legion/16irx8h/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lenovo/legion/16irx8h/default.nix b/lenovo/legion/16irx8h/default.nix index cfbcb8a..6d9c772 100644 --- a/lenovo/legion/16irx8h/default.nix +++ b/lenovo/legion/16irx8h/default.nix @@ -6,6 +6,7 @@ imports = [ ../../../common/cpu/intel ../../../common/gpu/nvidia/prime.nix + ../../../common/gpu/nvidia/ada-lovelace ../../../common/pc/laptop ../../../common/pc/laptop/ssd ../../../common/hidpi.nix From 3cb0b3a708280b30155835ba013e0b1defd52987 Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:20:35 -0600 Subject: [PATCH 08/26] lenovo-legion-16ithg6: Add nvidia architecture --- lenovo/legion/16ithg6/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lenovo/legion/16ithg6/default.nix b/lenovo/legion/16ithg6/default.nix index e26461d..9d6c292 100644 --- a/lenovo/legion/16ithg6/default.nix +++ b/lenovo/legion/16ithg6/default.nix @@ -4,6 +4,7 @@ imports = [ ../../../common/cpu/intel ../../../common/gpu/nvidia/prime.nix + ../../../common/gpu/nvidia/ampere ../../../common/pc/laptop ../../../common/pc/laptop/ssd ../../../common/hidpi.nix From efc4789f6647e4da927b8b700bf9443259bda2f0 Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:21:01 -0600 Subject: [PATCH 09/26] lenovo-legion-t526amr5: Use nvidia open --- lenovo/legion/t526amr5/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lenovo/legion/t526amr5/default.nix b/lenovo/legion/t526amr5/default.nix index ba1d623..4131445 100644 --- a/lenovo/legion/t526amr5/default.nix +++ b/lenovo/legion/t526amr5/default.nix @@ -9,4 +9,7 @@ # TPM2 module security.tpm2.enable = true; + + # Device could have multiple architectures, but they all support open + hardware.nvidia.open = true; } From 80598d9043adbfb11658d2eda63b354cd7938b1f Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:21:16 -0600 Subject: [PATCH 10/26] lenovo-thinkpad-e470: Add nvidia architecture --- lenovo/thinkpad/e470/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lenovo/thinkpad/e470/default.nix b/lenovo/thinkpad/e470/default.nix index 55aa595..e963e12 100644 --- a/lenovo/thinkpad/e470/default.nix +++ b/lenovo/thinkpad/e470/default.nix @@ -5,6 +5,7 @@ ../. ../../../common/gpu/intel/kaby-lake ../../../common/gpu/nvidia/prime.nix + ../../../common/gpu/nvidia/maxwell ]; hardware.nvidia.prime = { From 3ffa6a4dea790b88b0f8d6951748489f29a70e96 Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:21:34 -0600 Subject: [PATCH 11/26] lenovo-thinkpad-p14s-intel-gen3: Add nvidia architecture --- lenovo/thinkpad/p14s/intel/gen3/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lenovo/thinkpad/p14s/intel/gen3/default.nix b/lenovo/thinkpad/p14s/intel/gen3/default.nix index 4c73611..427d56c 100644 --- a/lenovo/thinkpad/p14s/intel/gen3/default.nix +++ b/lenovo/thinkpad/p14s/intel/gen3/default.nix @@ -4,6 +4,7 @@ imports = [ ../. ../../../../../common/gpu/nvidia/prime.nix + ../../../../../common/gpu/nvidia/turing ]; hardware = { From 595a4a84a11c7911fb9d025c108751c29034fd54 Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:21:44 -0600 Subject: [PATCH 12/26] lenovo-thinkpad-p50: Add nvidia architecture --- lenovo/thinkpad/p50/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lenovo/thinkpad/p50/default.nix b/lenovo/thinkpad/p50/default.nix index ef2cbd5..625d7cb 100644 --- a/lenovo/thinkpad/p50/default.nix +++ b/lenovo/thinkpad/p50/default.nix @@ -1,6 +1,7 @@ { lib, config, ... }: { imports = [ ../../../common/gpu/nvidia/prime.nix + ../../../common/gpu/nvidia/maxwell ../../../common/cpu/intel ../../../common/pc/laptop/acpi_call.nix ../. From 2fc1e10076a377718bcfe8b24bc57da7fc211df1 Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:21:52 -0600 Subject: [PATCH 13/26] lenovo-thinkpad-p51: Add nvidia architecture --- lenovo/thinkpad/p51/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lenovo/thinkpad/p51/default.nix b/lenovo/thinkpad/p51/default.nix index 6bd162d..12de3ca 100644 --- a/lenovo/thinkpad/p51/default.nix +++ b/lenovo/thinkpad/p51/default.nix @@ -2,6 +2,7 @@ imports = [ ../../../common/gpu/24.05-compat.nix ../../../common/gpu/nvidia/prime.nix + ../../../common/gpu/nvidia/maxwell ../../../common/cpu/intel ../../../common/gpu/intel/kaby-lake ../../../common/pc/laptop/acpi_call.nix From ab6053dff37ea208df045a7c604cab3a37ae2976 Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:22:00 -0600 Subject: [PATCH 14/26] lenovo-thinkpad-p52: Add nvidia architecture --- lenovo/thinkpad/p52/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lenovo/thinkpad/p52/default.nix b/lenovo/thinkpad/p52/default.nix index 2f6676a..2ca38ae 100644 --- a/lenovo/thinkpad/p52/default.nix +++ b/lenovo/thinkpad/p52/default.nix @@ -2,6 +2,7 @@ imports = [ ../../../common/gpu/24.05-compat.nix ../../../common/gpu/nvidia/prime.nix + ../../../common/gpu/nvidia/pascal ../../../common/cpu/intel ../../../common/pc/laptop/acpi_call.nix ../. From 5fdecbf814a0a9f75edd1a1bfbae5b8a50e507c0 Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:22:06 -0600 Subject: [PATCH 15/26] lenovo-yoga-7-14ARH7: Add nvidia architecture --- lenovo/yoga/7/14ARH7/nvidia/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lenovo/yoga/7/14ARH7/nvidia/default.nix b/lenovo/yoga/7/14ARH7/nvidia/default.nix index 0ca5afd..cf7aedc 100644 --- a/lenovo/yoga/7/14ARH7/nvidia/default.nix +++ b/lenovo/yoga/7/14ARH7/nvidia/default.nix @@ -11,6 +11,7 @@ in { ## "prime.nix" loads this, aleady: # ../../../../common/gpu/nvidia ../../../../../common/gpu/nvidia/prime.nix + ../../../../../common/gpu/nvidia/ampere ]; # NVIDIA GeForce RTX 3050 Mobile (Ampere) From 7ea5daa492c082e27483854fae6aad600559702b Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:27:08 -0600 Subject: [PATCH 16/26] common-gpu-nvidia: Add kepler --- common/gpu/nvidia/kepler/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 common/gpu/nvidia/kepler/default.nix diff --git a/common/gpu/nvidia/kepler/default.nix b/common/gpu/nvidia/kepler/default.nix new file mode 100644 index 0000000..f8d89a1 --- /dev/null +++ b/common/gpu/nvidia/kepler/default.nix @@ -0,0 +1,7 @@ +{lib, ...}: +{ + imports = [ ../. ]; + + # The open source driver does not support Kepler GPUs. + hardware.nvidia.open = false; +} From 2aa46f02e2d1bcb9507ffc1385bb055d393c613a Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:37:51 -0600 Subject: [PATCH 17/26] apple-imac-14-2: Add nvidia architecture --- apple/imac/14-2/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/apple/imac/14-2/default.nix b/apple/imac/14-2/default.nix index e85e172..c64f967 100644 --- a/apple/imac/14-2/default.nix +++ b/apple/imac/14-2/default.nix @@ -9,6 +9,7 @@ ../. ../../../common/gpu/intel ../../../common/gpu/nvidia + ../../../common/gpu/nvidia/kepler ../../../common/hidpi.nix ]; From 561fe843e1254ed96d8ecc39f6216c80e5513b02 Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:38:04 -0600 Subject: [PATCH 18/26] apple-macbook-pro-10-1: Add nvidia architecture --- apple/macbook-pro/10-1/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/apple/macbook-pro/10-1/default.nix b/apple/macbook-pro/10-1/default.nix index 2a2c624..0830228 100644 --- a/apple/macbook-pro/10-1/default.nix +++ b/apple/macbook-pro/10-1/default.nix @@ -5,6 +5,7 @@ ../. ../../../common/pc/laptop/ssd ../../../common/gpu/24.05-compat.nix + ../../../common/gpu/nvidia/kepler ]; # TODO: reverse compat From ded3bdaa58d4419bd01259120bcc43765bc4385c Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:38:19 -0600 Subject: [PATCH 19/26] focus-m2-gen1: Add nvidia architecture --- focus/m2/gen1/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/focus/m2/gen1/default.nix b/focus/m2/gen1/default.nix index 27ee1f3..b6a2c78 100644 --- a/focus/m2/gen1/default.nix +++ b/focus/m2/gen1/default.nix @@ -4,6 +4,7 @@ imports = [ ../../../common/cpu/intel ../../../common/gpu/nvidia/prime.nix + ../../../common/gpu/nvidia/turing ../../../common/pc/laptop ../../../common/pc/laptop/acpi_call.nix ../../../common/pc/laptop/ssd From 4588e111d1d2982f49d174ca618821599722f3e8 Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:38:36 -0600 Subject: [PATCH 20/26] msi-gl62: Add nvidia architecture --- msi/gl62/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/msi/gl62/default.nix b/msi/gl62/default.nix index 049ffcf..977af65 100644 --- a/msi/gl62/default.nix +++ b/msi/gl62/default.nix @@ -5,6 +5,7 @@ ../../common/pc/laptop/ssd ../../common/cpu/intel ../../common/gpu/nvidia/prime.nix + ../../common/gpu/nvidia/pascal ../../common/pc/laptop ]; From a68390425cc9224ad32ee23781335ad9ea4b8f5f Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:38:55 -0600 Subject: [PATCH 21/26] omen-14-fb0798ng: Add nvidia architecture --- omen/14-fb0798ng/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/omen/14-fb0798ng/default.nix b/omen/14-fb0798ng/default.nix index 20ce9a3..b138245 100644 --- a/omen/14-fb0798ng/default.nix +++ b/omen/14-fb0798ng/default.nix @@ -4,6 +4,7 @@ imports = [ ../../common/cpu/intel ../../common/gpu/nvidia/prime.nix + ../../common/gpu/nvidia/ada-lovelace ../../common/pc/laptop ../../common/pc/ssd ]; From 2a638da50f8598283ae5e1012d283104269a8dfc Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:39:05 -0600 Subject: [PATCH 22/26] omen-15-en0002np: Add nvidia architecture --- omen/15-en0002np/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/omen/15-en0002np/default.nix b/omen/15-en0002np/default.nix index 77f943f..00606cc 100644 --- a/omen/15-en0002np/default.nix +++ b/omen/15-en0002np/default.nix @@ -5,6 +5,7 @@ ../../common/cpu/amd ../../common/cpu/amd/pstate.nix ../../common/gpu/nvidia/prime.nix + ../../common/gpu/nvidia/turing ../../common/pc/laptop ../../common/pc/ssd ]; From b00ea30831b2e7ea8e5ee8d0a4efb2ac0a0c9dec Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:39:18 -0600 Subject: [PATCH 23/26] omen-15-en0010ca: Add nvidia architecture --- omen/15-en0010ca/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/omen/15-en0010ca/default.nix b/omen/15-en0010ca/default.nix index ff94913..da3c85e 100644 --- a/omen/15-en0010ca/default.nix +++ b/omen/15-en0010ca/default.nix @@ -6,6 +6,7 @@ ../../common/cpu/amd/pstate.nix ../../common/gpu/amd ../../common/gpu/nvidia/prime.nix + ../../common/gpu/nvidia/turing ../../common/pc/laptop ../../common/pc/ssd ]; From d6e07be2cd9e8fcbb47499475ed11cbe19645464 Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:39:33 -0600 Subject: [PATCH 24/26] omen-15-en1007sa: Add nvidia architecture --- omen/15-en1007sa/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/omen/15-en1007sa/default.nix b/omen/15-en1007sa/default.nix index 3929c66..704e4d8 100644 --- a/omen/15-en1007sa/default.nix +++ b/omen/15-en1007sa/default.nix @@ -5,6 +5,7 @@ ../../common/cpu/amd ../../common/cpu/amd/pstate.nix ../../common/gpu/nvidia/prime.nix + ../../common/gpu/nvidia/ampere ../../common/pc/laptop ../../common/pc/ssd ]; From 75ac0969d8207867df3f541bf64133dd91e4a213 Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:39:48 -0600 Subject: [PATCH 25/26] omen-16-n0280nd: Add nvidia architecture --- omen/16-n0280nd/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/omen/16-n0280nd/default.nix b/omen/16-n0280nd/default.nix index 3929c66..704e4d8 100644 --- a/omen/16-n0280nd/default.nix +++ b/omen/16-n0280nd/default.nix @@ -5,6 +5,7 @@ ../../common/cpu/amd ../../common/cpu/amd/pstate.nix ../../common/gpu/nvidia/prime.nix + ../../common/gpu/nvidia/ampere ../../common/pc/laptop ../../common/pc/ssd ]; From c50dd00a787ad747c65153a24a3dbd1e638f7e26 Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Wed, 4 Sep 2024 11:40:04 -0600 Subject: [PATCH 26/26] system76-gaze18: Add nvidia architecture --- system76/gaze18/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/system76/gaze18/default.nix b/system76/gaze18/default.nix index 0485e16..dd4302b 100644 --- a/system76/gaze18/default.nix +++ b/system76/gaze18/default.nix @@ -3,6 +3,7 @@ imports = [ ../. ../../common/gpu/nvidia/prime.nix + ../../common/gpu/nvidia/ampere ]; boot.initrd.kernelModules = [ "nvidia" ];