From 96999a0860af85d11e33e540c691bcf37d3368cf Mon Sep 17 00:00:00 2001 From: Ryan Pandya Date: Sat, 25 Jan 2025 19:55:47 -0800 Subject: [PATCH] Add customizable output setting for sunshine --- hosts/thalia/default.nix | 1 + modules/apps/sunshine/default.nix | 9 +++++++++ todo | 2 ++ 3 files changed, 12 insertions(+) diff --git a/hosts/thalia/default.nix b/hosts/thalia/default.nix index 4ee4998..eea00ea 100644 --- a/hosts/thalia/default.nix +++ b/hosts/thalia/default.nix @@ -29,6 +29,7 @@ monitor=desc:Dell Inc. DELL P2719H F3WNLS2, 1920x1080, 1080x840, 1 # Center monitor=desc:Dell Inc. DELL P2719H 93WNLS2, 1920x1080, 3000x840, 1 # Right "; + sunshine.output = 2; gaming.enable = true; # gsr.defaultAudioDevice = "alsa_output.usb-Schiit_Audio_Schiit_Modi_-00.analog-stereo.monitor"; # alsa_output.usb-Generic_USB_Audio-00.analog-stereo.monitor # low-latency.enable = false; diff --git a/modules/apps/sunshine/default.nix b/modules/apps/sunshine/default.nix index d3424d7..c6b17ca 100644 --- a/modules/apps/sunshine/default.nix +++ b/modules/apps/sunshine/default.nix @@ -2,6 +2,7 @@ lib, config, username, + host, pkgs, ... }: @@ -9,6 +10,10 @@ options = { sunshine = { enable = lib.mkEnableOption "Enable Sunshine in NixOS"; + output = lib.mkOption { + type = lib.types.int; + default = 0; + }; }; }; config = lib.mkIf config.sunshine.enable { @@ -36,6 +41,10 @@ } ]; }; + settings = { + sunshine_name = "${config.networking.hostName}"; + output_name = config.sunshine.output; + }; }; home-manager.users.${username} = { }; }; diff --git a/todo b/todo index 8d0c6f6..eb87836 100644 --- a/todo +++ b/todo @@ -5,6 +5,8 @@ DONE mouse speed DONE git thru ssh DONE boot into Hyprland DONE zsh error +DONE sync with thalia (sops, ssh, etc) +DONE thalia sunshine output TODO autologin on boot TODO displayManager theming TODO ags