WIP Sunshine conf
This commit is contained in:
parent
b151294dc1
commit
2cf6bc110d
1 changed files with 35 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ config, ... }:
|
{ pkgs, config, ... }:
|
||||||
{
|
{
|
||||||
assertions = [
|
assertions = [
|
||||||
{
|
{
|
||||||
|
@ -11,5 +11,39 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
settings = {
|
||||||
|
sunshine_name = "Gaming NixOS";
|
||||||
|
resolutions = [
|
||||||
|
[
|
||||||
|
"1920x1080"
|
||||||
|
"2400x1080"
|
||||||
|
"2160x1440"
|
||||||
|
"2560x1440"
|
||||||
|
"3840x2160"
|
||||||
|
]
|
||||||
|
];
|
||||||
|
fps = [
|
||||||
|
30
|
||||||
|
60
|
||||||
|
90
|
||||||
|
120
|
||||||
|
];
|
||||||
|
address_family = "both";
|
||||||
|
};
|
||||||
|
applications = {
|
||||||
|
apps =
|
||||||
|
resolution:
|
||||||
|
map {
|
||||||
|
name = "${resolution} Desktop";
|
||||||
|
# prep-cmd = [
|
||||||
|
# {
|
||||||
|
# do = "${pkgs.xrandr}/bin/kscreen-doctor output.DP-4.mode.2560x1440@144";
|
||||||
|
# undo = "${pkgs.xrandr}/bin/kscreen-doctor output.DP-4.mode.3440x1440@144";
|
||||||
|
# }
|
||||||
|
# ];
|
||||||
|
exclude-global-prep-cmd = "false";
|
||||||
|
auto-detach = "true";
|
||||||
|
} config.services.sunshine.settings.resolutions;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue