Enable Sunshine CUDA Support
This commit is contained in:
parent
18ee615d8b
commit
30a702d7a5
1 changed files with 19 additions and 2 deletions
|
@ -75,9 +75,26 @@
|
|||
|
||||
services.sunshine = {
|
||||
enable = true;
|
||||
autoStart = true;
|
||||
capSysAdmin = true;
|
||||
# Enable nvenc support
|
||||
package = with pkgs;
|
||||
(pkgs.sunshine.override {
|
||||
cudaSupport = true;
|
||||
inherit cudaPackages;
|
||||
}).overrideAttrs (old: {
|
||||
nativeBuildInputs =
|
||||
old.nativeBuildInputs
|
||||
++ [
|
||||
cudaPackages.cuda_nvcc
|
||||
(lib.getDev cudaPackages.cuda_cudart)
|
||||
];
|
||||
cmakeFlags =
|
||||
old.cmakeFlags
|
||||
++ [
|
||||
"-DCMAKE_CUDA_COMPILER=${(lib.getExe cudaPackages.cuda_nvcc)}"
|
||||
];
|
||||
});
|
||||
openFirewall = true;
|
||||
capSysAdmin = true;
|
||||
};
|
||||
|
||||
hardware = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue