From 3513aaaaa0eb6e92d5227d4fc56267cd0a201d9e Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sat, 10 May 2025 16:03:46 +0200 Subject: [PATCH] mango,steam,appimage: Improve integrations --- modules/system/apps/steam.nix | 9 +++++++++ modules/system/common.nix | 13 +++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/modules/system/apps/steam.nix b/modules/system/apps/steam.nix index 448421c..97edeef 100644 --- a/modules/system/apps/steam.nix +++ b/modules/system/apps/steam.nix @@ -11,10 +11,19 @@ in ''; }; config = mkIf cfg.enable { + programs.steam.gamescopeSession.enable = true; programs.steam = { enable = true; + package = pkgs.steam.override { + extraEnv = { + MANGOHUD = true; + OBS_VKCAPTURE = true; + }; + }; extraPackages = with pkgs; [ gamescope ]; extraCompatPackages = with pkgs; [ proton-ge-bin ]; + remotePlay.openFirewall = true; + localNetworkGameTransfers.openFirewall = true; }; hardware.steam-hardware.enable = true; diff --git a/modules/system/common.nix b/modules/system/common.nix index dcb030e..1a3a726 100644 --- a/modules/system/common.nix +++ b/modules/system/common.nix @@ -72,10 +72,19 @@ aha usbutils pciutils - - appimage-run + mangohud ]; + programs.appimage = { + enable = true; + binfmt = true; + }; + + environment.sessionVariables = { + STEAM_EXTRA_COMPAT_TOOLS_PATHS = "\${HOME}/.steam/root/compatibilitytools.d"; + MANGOHUD_CONFIG = ''control=mangohud,legacy_layout=0,vertical,background_alpha=0,gpu_stats,gpu_power,cpu_stats,core_load,ram,vram,fps,fps_metrics=AVG,0.001,frametime,refresh_rate,resolution,gpu_name,vulkan_driver,wine''; + }; + services.fwupd.enable = true; # Define a user account. Don't forget to set a password with ‘passwd’.