small typo in play.nix for gojo and haze

This commit is contained in:
Chris Toph 2025-06-30 23:03:32 -04:00
parent b331a0113b
commit 9d886bf3ca
2 changed files with 53 additions and 3 deletions

View file

@ -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}";

View file

@ -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";
};
};
};
};
}