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.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/hostnix/mojo/modules/sunshine.nix b/hostnix/mojo/modules/sunshine.nix
new file mode 100644
index 0000000..4f12601
--- /dev/null
+++ b/hostnix/mojo/modules/sunshine.nix
@@ -0,0 +1,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";
+ };
+ };
+}