feat(games): add gamescope osu! session
This commit is contained in:
parent
dd26a93466
commit
dd2c6d625e
1 changed files with 14 additions and 1 deletions
|
@ -1,4 +1,15 @@
|
|||
{ pkgs, ... }:
|
||||
{ lib, pkgs, ... }:
|
||||
let
|
||||
osuSessionFile =
|
||||
(pkgs.writeTextDir "share/wayland-sessions/osu.desktop" ''
|
||||
[Desktop Entry]
|
||||
Name=osu!
|
||||
Comment=Free-to-win rhythm game
|
||||
Exec=${lib.getExe pkgs.gamescope} -- ${lib.getExe pkgs.osu-lazer-bin}
|
||||
Type=Application
|
||||
'').overrideAttrs
|
||||
{ passthru.providedSessions = [ "osu" ]; };
|
||||
in
|
||||
{
|
||||
hardware = {
|
||||
xone.enable = true;
|
||||
|
@ -26,4 +37,6 @@
|
|||
|
||||
gamemode.enable = true;
|
||||
};
|
||||
|
||||
services.displayManager.sessionPackages = [ osuSessionFile ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue