summaryrefslogtreecommitdiff
path: root/hostnix/mojo/modules/sunshine.nix
blob: 5b02ede39052abb5f3a183a37989492f93decd02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ ... }:
{
  homebrew = {
    taps = [ "LizardByte/homebrew" ];
    brews = [ "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";
    };
  };
}