diff --git a/machines/SteamDeck/configuration.nix b/machines/SteamDeck/configuration.nix index bbf55b4..ea49bd9 100755 --- a/machines/SteamDeck/configuration.nix +++ b/machines/SteamDeck/configuration.nix @@ -44,6 +44,14 @@ autoStart = true; user = "toast"; desktopSession = "plasmawayland"; + environment = { + /* + Steam already has a mangohud overlay, so this + avoids having two overlays at once + */ + MANGOHUD = "0"; + MANHOGUD_DLSYM = "0"; + }; }; decky-loader = { enable = true; diff --git a/roles/gaming/mangohud.nix b/roles/gaming/mangohud.nix index fe418d4..47b37be 100644 --- a/roles/gaming/mangohud.nix +++ b/roles/gaming/mangohud.nix @@ -1,10 +1,14 @@ { config, ... }: { + # This does the same as enableSessionWide does on the mangohud config + environment.sessionVariables = { MANGOHUD = "1"; MANGOHUD_DLSYM = "1"; }; + home-manager.users.toast = { config, ... }: { programs.mangohud = { enable = true; + # TODO: fix envvars set by home manager not applying for some reason # This only works for Vulkan, openGL programs still need the mangohud wrapper enableSessionWide = true; settings = {