feat(nixosModules/hardware): add cuda binary cache
This commit is contained in:
parent
b1c61d5286
commit
48c80b9d95
1 changed files with 21 additions and 20 deletions
|
@ -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="
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue