From 42a034f6a712ce3e687916bb424813c8e4ff9386 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Wed, 15 Apr 2026 01:40:24 -0400 Subject: mojo: Set up sunshine There appear to be some issues: - Remap Super/Alt on client - Mouse pointer disappears - Scroll not working - Letterboxing --- hostnix/mojo/flake.nix | 1 + hostnix/mojo/modules/apps.nix | 7 ++++++- hostnix/mojo/modules/sunshine.nix | 18 ++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 hostnix/mojo/modules/sunshine.nix 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"; + }; + }; +} -- cgit v1.3.1