summaryrefslogtreecommitdiff
path: root/hostnix/mojo
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2026-04-15 01:40:24 -0400
committerJoe Mou <dev@mou.fo>2026-04-15 13:29:11 -0400
commit42a034f6a712ce3e687916bb424813c8e4ff9386 (patch)
treeca1f5ca3204372a6791b4fba323e499e69b4a93f /hostnix/mojo
parent98cab62965b226d76cc3da5c47e44da3e4ef7f92 (diff)
mojo: Set up sunshine
There appear to be some issues: - Remap Super/Alt on client - Mouse pointer disappears - Scroll not working - Letterboxing
Diffstat (limited to 'hostnix/mojo')
-rw-r--r--hostnix/mojo/flake.nix1
-rw-r--r--hostnix/mojo/modules/apps.nix7
-rw-r--r--hostnix/mojo/modules/sunshine.nix18
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";
+ };
+ };
+}