WIP Sunshine conf
This commit is contained in:
parent
c2d097ccc6
commit
b724e83c55
1 changed files with 25 additions and 23 deletions
|
@ -1,6 +1,14 @@
|
|||
{ pkgs, config, ... }:
|
||||
let
|
||||
generateApps =
|
||||
resolutions = [
|
||||
"1920x1080"
|
||||
"2400x1080"
|
||||
"2160x1440"
|
||||
"2560x1440"
|
||||
"3840x2160"
|
||||
];
|
||||
apps =
|
||||
(
|
||||
resolutions:
|
||||
map (resolution: {
|
||||
name = "${resolution} Desktop";
|
||||
|
@ -12,7 +20,9 @@ let
|
|||
# ];
|
||||
exclude-global-prep-cmd = "false";
|
||||
auto-detach = "true";
|
||||
}) resolutions;
|
||||
}) resolutions
|
||||
)
|
||||
resolutions;
|
||||
in
|
||||
{
|
||||
assertions = [
|
||||
|
@ -28,15 +38,7 @@ in
|
|||
openFirewall = true;
|
||||
settings = {
|
||||
sunshine_name = "Gaming NixOS";
|
||||
resolutions = [
|
||||
[
|
||||
"1920x1080"
|
||||
"2400x1080"
|
||||
"2160x1440"
|
||||
"2560x1440"
|
||||
"3840x2160"
|
||||
]
|
||||
];
|
||||
resolutions = resolutions;
|
||||
fps = [
|
||||
30
|
||||
60
|
||||
|
@ -46,7 +48,7 @@ in
|
|||
address_family = "both";
|
||||
};
|
||||
applications = {
|
||||
apps = generateApps config.services.sunshine.settings.resolutions;
|
||||
apps = apps;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue