From f6dedeea790c003c1c01266a5de086aaf05af391 Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Wed, 10 Sep 2025 11:58:32 +0100 Subject: [PATCH] kilgharrah: Enable CUDA (NVIDIA hardware acceleration) --- hosts/kilgharrah/hardware.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/kilgharrah/hardware.nix b/hosts/kilgharrah/hardware.nix index 0583c64..89b502c 100644 --- a/hosts/kilgharrah/hardware.nix +++ b/hosts/kilgharrah/hardware.nix @@ -7,6 +7,12 @@ services.xserver.videoDrivers = [ "nvidia" ]; hardware.nvidia.open = false; + nixpkgs.config.cudaSupport = true; + nix.settings = { + # Community cache with prebuilt packages with cudaSupport enabled + substituters = [ "https://nix-community.cachix.org" ]; + trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ]; + }; # # Downgrade to driver version 535 as 550 has problems with Wayland # hardware.nvidia.package =