WIP Sunshine conf
This commit is contained in:
parent
85e724a65b
commit
8849984a61
1 changed files with 26 additions and 19 deletions
|
@ -1,28 +1,12 @@
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
let
|
let
|
||||||
resolutions = [
|
resolution_list = [
|
||||||
"1920x1080"
|
"1920x1080"
|
||||||
"2400x1080"
|
"2400x1080"
|
||||||
"2160x1440"
|
"2160x1440"
|
||||||
"2560x1440"
|
"2560x1440"
|
||||||
"3840x2160"
|
"3840x2160"
|
||||||
];
|
];
|
||||||
apps =
|
|
||||||
(
|
|
||||||
resolutions:
|
|
||||||
map (resolution: {
|
|
||||||
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";
|
|
||||||
}) resolutions
|
|
||||||
)
|
|
||||||
resolutions;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
assertions = [
|
assertions = [
|
||||||
|
@ -38,14 +22,37 @@ in
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
settings = {
|
settings = {
|
||||||
sunshine_name = "Gaming NixOS";
|
sunshine_name = "Gaming NixOS";
|
||||||
resolutions = resolutions;
|
resolutions = ''
|
||||||
|
[
|
||||||
|
1920x1080,
|
||||||
|
2400x1080,
|
||||||
|
2160x1440,
|
||||||
|
2560x1440,
|
||||||
|
3840x2160
|
||||||
|
]
|
||||||
|
'';
|
||||||
fps = ''
|
fps = ''
|
||||||
[30, 60, 90, 120]
|
[30, 60, 90, 120]
|
||||||
'';
|
'';
|
||||||
address_family = "both";
|
address_family = "both";
|
||||||
};
|
};
|
||||||
applications = {
|
applications = {
|
||||||
apps = apps;
|
apps =
|
||||||
|
(
|
||||||
|
resolutions:
|
||||||
|
map (resolution: {
|
||||||
|
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";
|
||||||
|
}) resolutions
|
||||||
|
)
|
||||||
|
resolution_list;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue