mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 01:34:08 -05:00
gaming for drag
This commit is contained in:
parent
7d75d11c05
commit
f1034d6172
1 changed files with 1 additions and 29 deletions
|
|
@ -5,36 +5,8 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
monitor = lib.head (lib.filter (m: m.primary) config.monitors);
|
||||
|
||||
steam-session = let
|
||||
gamescope = lib.concatStringsSep " " [
|
||||
(lib.getExe pkgs.gamescope)
|
||||
"--output-width ${toString monitor.width}"
|
||||
"--output-height ${toString monitor.height}"
|
||||
"--framerate-limit ${toString monitor.refreshRate}"
|
||||
"--prefer-output ${monitor.name}"
|
||||
"--adaptive-sync"
|
||||
"--expose-wayland"
|
||||
"--steam"
|
||||
"--hdr-enabled"
|
||||
];
|
||||
steam = lib.concatStringsSep " " [
|
||||
"steam"
|
||||
#"steam://open/bigpicture"
|
||||
];
|
||||
in
|
||||
pkgs.writeTextDir "share/applications/steam-session.desktop" ''
|
||||
[Desktop Entry]
|
||||
Name=Steam Session
|
||||
Exec=${gamescope} -- ${steam}
|
||||
Icon=steam
|
||||
Type=Application
|
||||
'';
|
||||
in {
|
||||
}: {
|
||||
home.packages = [
|
||||
steam-session
|
||||
#pkgs.vintagestory
|
||||
pkgs.mudlet
|
||||
pkgs.r2modman
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue