blob: aa4ad84d54c5771b8adb901bad01c574fcd4cf24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{lib, pkgs, ...}: {
users.users.steam = {
isNormalUser = true;
uid = 1001;
home = "/home/steam";
extraGroups = [
"wheel"
"video"
"docker"
"input"
"audio"
];
};
programs = {
gamescope = {
enable = true;
capSysNice = true;
};
steam.gamescopeSession.enable = true;
};
programs.steam.enable = true;
hardware.steam-hardware.enable = true;
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${lib.getExe pkgs.gamescope} -W 3840 -H 2160 -f -e --xwayland-count 2 --hdr-enabled --hdr-itm-enabled -- steam -pipewire-dmabuf -gamepadui -steamdeck -steamos3 > /dev/null 2>&1";
user = "steam";
};
};
};
}
|