summaryrefslogtreecommitdiff
path: root/hostnix/mojo/modules/sunshine.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hostnix/mojo/modules/sunshine.nix')
-rw-r--r--hostnix/mojo/modules/sunshine.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/hostnix/mojo/modules/sunshine.nix b/hostnix/mojo/modules/sunshine.nix
new file mode 100644
index 0000000..5b02ede
--- /dev/null
+++ b/hostnix/mojo/modules/sunshine.nix
@@ -0,0 +1,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";
+ };
+ };
+}