steam: move session stuff to steam.nix + remove mangohud
This commit is contained in:
parent
b7dc8a7345
commit
f9f1e027e4
@ -56,28 +56,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Create steam session script
|
|
||||||
environment.etc."steam-session-greetd".source = pkgs.writeShellScript "steam-session-greetd" ''
|
|
||||||
export STEAM_RUNTIME=1
|
|
||||||
export SDL_VIDEODRIVER=wayland
|
|
||||||
export QT_QPA_PLATFORM=wayland
|
|
||||||
export GDK_BACKEND=wayland
|
|
||||||
export XDG_CURRENT_DESKTOP=Steam
|
|
||||||
export XDG_SESSION_TYPE=wayland
|
|
||||||
export MANGOHUD=1
|
|
||||||
exec ${pkgs.gamescope}/bin/gamescope --adaptive-sync --hdr-enabled --mangoapp --rt --steam -- ${pkgs.steam}/bin/steam -pipewire-dmabuf -tenfoot
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Create system-wide session files
|
|
||||||
environment.etc."xdg/wayland-sessions/steam-session.desktop".text = ''
|
|
||||||
[Desktop Entry]
|
|
||||||
Name=Steam Session
|
|
||||||
Comment=Steam Deck-like gaming session with gamescope
|
|
||||||
Exec=/etc/steam-session-greetd
|
|
||||||
Type=Application
|
|
||||||
DesktopNames=steam
|
|
||||||
'';
|
|
||||||
|
|
||||||
environment.etc."xdg/wayland-sessions/niri-session.desktop".text = ''
|
environment.etc."xdg/wayland-sessions/niri-session.desktop".text = ''
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=Niri Session
|
Name=Niri Session
|
||||||
|
|||||||
@ -25,4 +25,26 @@
|
|||||||
goverlay
|
goverlay
|
||||||
yad
|
yad
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Create steam session script
|
||||||
|
environment.etc."steam-session-greetd".source = pkgs.writeShellScript "steam-session-greetd" ''
|
||||||
|
export STEAM_RUNTIME=1
|
||||||
|
export SDL_VIDEODRIVER=wayland
|
||||||
|
export QT_QPA_PLATFORM=wayland
|
||||||
|
export GDK_BACKEND=wayland
|
||||||
|
export XDG_CURRENT_DESKTOP=Steam
|
||||||
|
export XDG_SESSION_TYPE=wayland
|
||||||
|
exec ${pkgs.gamescope}/bin/gamescope --adaptive-sync --hdr-enabled --mangoapp --rt --steam -- ${pkgs.steam}/bin/steam -pipewire-dmabuf -tenfoot
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Create system-wide session files
|
||||||
|
environment.etc."xdg/wayland-sessions/steam-session.desktop".text = ''
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Steam Session
|
||||||
|
Comment=Steam Deck-like gaming session with gamescope
|
||||||
|
Exec=/etc/steam-session-greetd
|
||||||
|
Type=Application
|
||||||
|
DesktopNames=steam
|
||||||
|
'';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user