diff --git a/home/hosts/gojo/config/play.nix b/home/hosts/gojo/config/play.nix index 18006a0..e8bb295 100644 --- a/home/hosts/gojo/config/play.nix +++ b/home/hosts/gojo/config/play.nix @@ -7,7 +7,6 @@ ... }: { - play = { wrappers = { alters = { @@ -25,15 +24,15 @@ WAYLANDDRV_RAWINPUT = 1; }; }; + }; }; - # Override default desktop entries to use gamescoperun wrappers/launchers home.activation.removeExistingDesktopFiles = lib.hm.dag.entryBefore [ "writeBoundary" ] '' rm -f "${config.home.homeDirectory}/.local/share/applications/The Alters.desktop" ''; xdg.desktopEntries = { - "The Alters" = { + "The Alters" = { name = "The Alters"; comment = "A game about life, choices, and the people we meet"; exec = "${lib.getExe config.play.wrappers.alters.wrappedPackage}"; diff --git a/home/hosts/haze/config/play.nix b/home/hosts/haze/config/play.nix new file mode 100644 index 0000000..e8bb295 --- /dev/null +++ b/home/hosts/haze/config/play.nix @@ -0,0 +1,51 @@ +{ + config, + osConfig, + lib, + pkgs, + inputs, + ... +}: +{ + play = { + wrappers = { + alters = { + enable = true; + command = "${lib.getExe osConfig.programs.steam.package} steam://rungameid/1601570 -windowed -tenfoot"; + extraOptions = { + "steam" = true; + "disable-layers" = true; + }; + environment = { + __GL_SHADER_DISK_CACHE_SKIP_CLEANUP = 1; + PROTON_USE_SDL = 1; + STEAM_FORCE_DESKTOPUI_SCALING = 1; + STEAM_GAMEPADUI = 1; + WAYLANDDRV_RAWINPUT = 1; + }; + }; + }; + }; + # Override default desktop entries to use gamescoperun wrappers/launchers + home.activation.removeExistingDesktopFiles = lib.hm.dag.entryBefore [ "writeBoundary" ] '' + rm -f "${config.home.homeDirectory}/.local/share/applications/The Alters.desktop" + ''; + + xdg.desktopEntries = { + "The Alters" = { + name = "The Alters"; + comment = "A game about life, choices, and the people we meet"; + exec = "${lib.getExe config.play.wrappers.alters.wrappedPackage}"; + icon = "steam_icon_1601570"; + type = "Application"; + terminal = false; + categories = [ "Game" ]; + actions = { + regular = { + name = "The Alters (No Gamescope)"; + exec = "${lib.getExe osConfig.programs.steam.package} steam://rungameid/1601570 -windowed -nochatui -nofriendsui -silent"; + }; + }; + }; + }; +}