Fix nvidia

This commit is contained in:
2026-07-07 18:42:38 +01:00
parent c7a28de886
commit 2fb5860706
2 changed files with 2 additions and 12 deletions
+1
View File
@@ -4,6 +4,7 @@
imports = imports =
[ [
./hardware-configuration.nix ./hardware-configuration.nix
./nvidia.nix
]; ];
boot.blacklistedKernelModules = [ boot.blacklistedKernelModules = [
+1 -12
View File
@@ -1,18 +1,7 @@
{ config, ... }: { config, ... }:
{ {
nix.settings = { hardware.graphics.enable = true;
substituters = [ "https://cache.nixos-cuda.org" ];
trusted-public-keys = [
"cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M="
];
};
hardware.graphics = {
enable = true;
};
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = { hardware.nvidia = {
modesetting.enable = true; modesetting.enable = true;