From 36584e5365dcf6f8054dcd31a2b1924da51c59e2 Mon Sep 17 00:00:00 2001 From: alexion Date: Wed, 21 Oct 2026 19:16:17 -0400 Subject: [PATCH] fix(steam): use Remote Play firewall rules --- configs/nixos/modules/desktop/apps/steam.nix | 23 +------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/configs/nixos/modules/desktop/apps/steam.nix b/configs/nixos/modules/desktop/apps/steam.nix index a5405b8..2f42cbd 100644 --- a/configs/nixos/modules/desktop/apps/steam.nix +++ b/configs/nixos/modules/desktop/apps/steam.nix @@ -6,9 +6,6 @@ ... }: # Steam game launcher and runtime integration. -let - steamVrLauncher = "/home/${config.user.name}/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrcompositor-launcher"; -in { options.modules.desktop.apps.steam.enable = lib.mkEnableOption "Steam game launcher"; @@ -17,6 +14,7 @@ in programs.steam = { enable = true; + remotePlay.openFirewall = true; package = pkgs.steam.override { extraEnv.STEAM_FORCE_DESKTOPUI_SCALING = "1.5"; }; @@ -29,25 +27,6 @@ in capSysNice = true; }; - networking.firewall.allowedUDPPorts = [ 10400 ]; - - systemd.paths.steamvr-capabilities = { - wantedBy = [ "multi-user.target" ]; - pathConfig = { - PathChanged = steamVrLauncher; - Unit = "steamvr-capabilities.service"; - }; - }; - - systemd.services.steamvr-capabilities = { - wantedBy = [ "multi-user.target" ]; - path = [ pkgs.libcap ]; - script = '' - setcap cap_sys_nice=eip ${lib.escapeShellArg steamVrLauncher} - ''; - serviceConfig.Type = "oneshot"; - }; - registry.window-icon.${config.networking.hostName}.steam = { class = "[Ss]team"; icon = util.glyph "f1b6";