diff options
| author | Alexander Kassouni <alex@kassouni.net> | 2026-09-13 16:26:42 -0700 |
|---|---|---|
| committer | Alexander Kassouni <alex@kassouni.net> | 2026-09-27 16:42:17 -0700 |
| commit | f07bb292a594d7fd46bfebaa33ac426bf9782b6a (patch) | |
| tree | 7329fe252255e3693afa62817393249c619bf12a /machines/common/steam.nix | |
| parent | ec5ee0491463bb2725c9d7de8e4569b228656d93 (diff) | |
bertha, music, others
Diffstat (limited to 'machines/common/steam.nix')
| -rw-r--r-- | machines/common/steam.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/machines/common/steam.nix b/machines/common/steam.nix new file mode 100644 index 0000000..aa4ad84 --- /dev/null +++ b/machines/common/steam.nix @@ -0,0 +1,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"; + }; + }; + }; +} |