Add basic conf for sunshine game streaming on NixOS

This commit is contained in:
Vili Sinervä 2025-01-11 14:27:15 +02:00
parent 5e70208aef
commit 78d7227471
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
7 changed files with 75 additions and 1 deletions

View file

@ -0,0 +1,16 @@
{ config, pkgs, ... }:
{
hardware = {
graphics.enable = true;
nvidia = {
open = true;
forceFullCompositionPipeline = true;
};
};
services = {
xserver = pkgs.lib.mkIf config.services.xserver.enable {
videoDrivers = [ "nvidia" ];
};
};
}