WIP Sunshine conf
This commit is contained in:
parent
2cf6bc110d
commit
c2d097ccc6
1 changed files with 16 additions and 13 deletions
|
@ -1,4 +1,19 @@
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
let
|
||||||
|
generateApps =
|
||||||
|
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;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
assertions = [
|
assertions = [
|
||||||
{
|
{
|
||||||
|
@ -31,19 +46,7 @@
|
||||||
address_family = "both";
|
address_family = "both";
|
||||||
};
|
};
|
||||||
applications = {
|
applications = {
|
||||||
apps =
|
apps = generateApps config.services.sunshine.settings.resolutions;
|
||||||
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