summaryrefslogtreecommitdiff
path: root/gaming.nix
diff options
context:
space:
mode:
authorJasper Ras <jaspert.ras@gmail.com>2024-11-01 20:29:37 +0100
committerJasper Ras <jaspert.ras@gmail.com>2024-11-01 20:29:37 +0100
commit6018f54efde04fd73700ac0260d943325e9a8261 (patch)
tree8ea3c4d822f42a768db441613ef90b3b350a0bb8 /gaming.nix
parentdd6ed58156204400a198a5712d8b9c6d177c2eeb (diff)
Play with sunshine config
Diffstat (limited to 'gaming.nix')
-rw-r--r--gaming.nix31
1 files changed, 15 insertions, 16 deletions
diff --git a/gaming.nix b/gaming.nix
index 785d6c3..13d2ecb 100644
--- a/gaming.nix
+++ b/gaming.nix
@@ -6,22 +6,21 @@
services.sunshine = {
enable = true;
autoStart = true;
+ capSysAdmin = true;
openFirewall = true;
- settings = {
- output_name = 1;
- };
- applications = {
- apps = [
- {
- name = "Auto Desktop";
- prep-cmd = [
- {
- do = "";
- undo = "";
- }
- ];
- }
- ];
- };
+ # applications = {
+ # apps = [
+ # {
+ # name = "Auto Desktop";
+ # prep-cmd = [
+ # {
+ # # do = "${pkgs.sway}/bin/swaymsg \"output DP-2 mode --custom \${SUNSHINE_CLIENT_WIDTH}x\${SUNSHINE_CLIENT_HEIGHT}@\${SUNSHINE_CLIENT_FPS}Hz\"";
+ # do = "${pkgs.zsh}/bin/zsh -c \"${pkgs.sway}/bin/swaymsg \"output DP-2 mode --custom 1920x1080@60Hz\"\"";
+ # undo = "${pkgs.sway}/bin/swaymsg \"output DP-2 mode 3440x1440\"";
+ # }
+ # ];
+ # }
+ # ];
+ # };
};
}