From 20b3ebac4b91e5f90eb9f316c1cd6cdfde72f362 Mon Sep 17 00:00:00 2001 From: Emmet Date: Fri, 28 Mar 2025 08:15:01 -0500 Subject: [PATCH] some gaming fixes --- hosts/snowfire/configuration.nix | 2 +- modules/system/gaming/default.nix | 18 +++++++----------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/hosts/snowfire/configuration.nix b/hosts/snowfire/configuration.nix index d0bc05a9..b41274b7 100644 --- a/hosts/snowfire/configuration.nix +++ b/hosts/snowfire/configuration.nix @@ -14,7 +14,7 @@ printing.enable = true; # software - flatpak.enable = false; + flatpak.enable = true; gaming.enable = true; virtualization = { docker.enable = true; diff --git a/modules/system/gaming/default.nix b/modules/system/gaming/default.nix index 9e5a982e..579bbd4a 100644 --- a/modules/system/gaming/default.nix +++ b/modules/system/gaming/default.nix @@ -75,28 +75,22 @@ in { #SDL_VIDEODRIVER = "x11"; }; args = [ - "--xwayland-count 2" - "--expose-wayland" + "--xwayland-count 1" + #"--expose-wayland" "-e" # Enable steam integration - "--steam" "--adaptive-sync" "--hdr-enabled" "--hdr-itm-enable" # External monitor + "--fullscreen" "--prefer-output eDP-1" "--output-width 1920" "--output-height 1080" - # "-r 75" - - # Laptop display - # "--prefer-output eDP-1" - # "--output-width 2560" - # "--output-height 1600" - # "-r 120" - + "--nested-width 1920" + "--nested-height 1080" "--prefer-vk-device 1002:1638" # lspci -nn | grep VGA ]; }; @@ -141,5 +135,7 @@ in { "*/1 * * * * steamgrab" ]; }; + networking.firewall.allowedTCPPorts = [ 24872 ]; + networking.firewall.allowedUDPPorts = [ 24872 ]; }; }