feat(nixosModules/hardware): add cuda binary cache

This commit is contained in:
Mohammad Rafiq 2025-05-20 19:29:36 +08:00
parent b1c61d5286
commit 48c80b9d95
No known key found for this signature in database

View file

@ -5,9 +5,7 @@
... ...
}: }:
{ {
config = lib.mkIf (config.hardware.gpu == "nvidia") ( config = lib.mkIf (config.hardware.gpu == "nvidia") {
lib.mkMerge [
{
#TODO: Setup CUDA #TODO: Setup CUDA
hardware.graphics.enable = true; hardware.graphics.enable = true;
hardware.graphics.extraPackages = with pkgs; [ hardware.graphics.extraPackages = with pkgs; [
@ -22,7 +20,10 @@
__GLX_VENDOR_LIBRARY_NAME = "nvidia"; __GLX_VENDOR_LIBRARY_NAME = "nvidia";
NVD_BACKEND = "direct"; NVD_BACKEND = "direct";
}; };
}
] nix.settings.substituters = [ "cuda-maintainers.cachix.org" ];
); nix.settings.trusted-public-keys = [
"cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
];
};
} }