aboutsummaryrefslogtreecommitdiff
path: root/modules/services/sunshine.nix
blob: a75bb059abcee8f0e49f3b21916c8323c6d042dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  flake.modules.nixos.sunshine = { config, ... }: {
    services.sunshine = {
      enable = true;
      autoStart = true;
      capSysAdmin = true;
      openFirewall = true;

      settings = {
        sunshine_name = config.networking.hostName;
        controller = "disabled";
        stream_audio = "disabled";
        vk_rc_mode = 0;
        encoder = "vaapi";
      };

      applications = {
        apps = [
          {
            name = "Desktop";
            image-path = "desktop.png";
          }
          {
            name = "Steam Big Picture";
            cmd = "steam -tenfoot";
            image-path = "steam.png";
          }
        ];
      };
    };
  };
}