diff options
| -rw-r--r-- | hostnix/mojo/flake.nix | 1 | ||||
| -rw-r--r-- | hostnix/mojo/modules/apps.nix | 7 | ||||
| -rw-r--r-- | hostnix/mojo/modules/sunshine.nix | 18 |
3 files changed, 25 insertions, 1 deletions
diff --git a/hostnix/mojo/flake.nix b/hostnix/mojo/flake.nix index 319dfad..0a4a3bd 100644 --- a/hostnix/mojo/flake.nix +++ b/hostnix/mojo/flake.nix @@ -44,6 +44,7 @@ modules = [ configuration ./modules/apps.nix + ./modules/sunshine.nix ./modules/system.nix ]; }; diff --git a/hostnix/mojo/modules/apps.nix b/hostnix/mojo/modules/apps.nix index 81cd66d..2febaa0 100644 --- a/hostnix/mojo/modules/apps.nix +++ b/hostnix/mojo/modules/apps.nix @@ -17,7 +17,12 @@ environment.pathsToLink = [ "/share/vim-plugins" ]; # for fzf homebrew = { - brews = [ "mas" ]; + taps = [ "LizardByte/homebrew" ]; + + brews = [ + "mas" + "sunshine" + ]; casks = [ "karabiner-elements" # modifiers, fn, reverse scroll 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"; + }; + }; +} |
