Add customizable output setting for sunshine

This commit is contained in:
Ryan Pandya 2025-01-25 19:55:47 -08:00
parent 4e70abce4c
commit 96999a0860
3 changed files with 12 additions and 0 deletions

View File

@ -29,6 +29,7 @@
monitor=desc:Dell Inc. DELL P2719H F3WNLS2, 1920x1080, 1080x840, 1 # Center monitor=desc:Dell Inc. DELL P2719H F3WNLS2, 1920x1080, 1080x840, 1 # Center
monitor=desc:Dell Inc. DELL P2719H 93WNLS2, 1920x1080, 3000x840, 1 # Right monitor=desc:Dell Inc. DELL P2719H 93WNLS2, 1920x1080, 3000x840, 1 # Right
"; ";
sunshine.output = 2;
gaming.enable = true; 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 # 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; # low-latency.enable = false;

View File

@ -2,6 +2,7 @@
lib, lib,
config, config,
username, username,
host,
pkgs, pkgs,
... ...
}: }:
@ -9,6 +10,10 @@
options = { options = {
sunshine = { sunshine = {
enable = lib.mkEnableOption "Enable Sunshine in NixOS"; enable = lib.mkEnableOption "Enable Sunshine in NixOS";
output = lib.mkOption {
type = lib.types.int;
default = 0;
};
}; };
}; };
config = lib.mkIf config.sunshine.enable { 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} = { }; home-manager.users.${username} = { };
}; };

2
todo
View File

@ -5,6 +5,8 @@ DONE mouse speed
DONE git thru ssh DONE git thru ssh
DONE boot into Hyprland DONE boot into Hyprland
DONE zsh error DONE zsh error
DONE sync with thalia (sops, ssh, etc)
DONE thalia sunshine output
TODO autologin on boot TODO autologin on boot
TODO displayManager theming TODO displayManager theming
TODO ags TODO ags