Add customizable output setting for sunshine
This commit is contained in:
parent
4e70abce4c
commit
96999a0860
@ -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;
|
||||
|
||||
@ -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} = { };
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user