summaryrefslogtreecommitdiff
path: root/hostnix/mojo/modules/sunshine.nix
blob: 4f12601514bd89901a376eb2d22a4452e1ed5e20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ ... }:
{
  homebrew = {
    taps = [
      {
        name = "LizardByte/homebrew";
        trusted = true;
      }
    ];
    brews = [ "LizardByte/homebrew/sunshine" ];
  };

  launchd.user.agents.sunshine = {
    serviceConfig = {
      Label = "com.lizardbyte.sunshine";
      ProgramArguments = [ "/opt/homebrew/bin/sunshine" ];
      RunAtLoad = true;
      KeepAlive = true;
      StandardOutPath = "/tmp/sunshine.log";
      StandardErrorPath = "/tmp/sunshine.err";
    };
  };
}