aboutsummaryrefslogtreecommitdiff
path: root/machines/common/steam.nix
diff options
context:
space:
mode:
authorAlexander Kassouni <alex@kassouni.net>2026-10-10 16:51:23 -0700
committerAlexander Kassouni <alex@kassouni.net>2026-10-10 16:51:42 -0700
commit18cd03ea1842326cd94c9bd40c9eb911ddac39fb (patch)
treec6d1c6c2053bd19c642de4e075cef65726f5617c /machines/common/steam.nix
parent012e00112cfbeee75473c62c8e2b7b266d0a1eab (diff)
add steam session, drop steam user
Diffstat (limited to 'machines/common/steam.nix')
-rw-r--r--machines/common/steam.nix47
1 files changed, 20 insertions, 27 deletions
diff --git a/machines/common/steam.nix b/machines/common/steam.nix
index aa4ad84..0f68ca8 100644
--- a/machines/common/steam.nix
+++ b/machines/common/steam.nix
@@ -1,35 +1,28 @@
-{lib, pkgs, ...}: {
- users.users.steam = {
- isNormalUser = true;
- uid = 1001;
- home = "/home/steam";
- extraGroups = [
- "wheel"
- "video"
- "docker"
- "input"
- "audio"
- ];
- };
+{...}: {
+ programs.steam = {
+ enable = true;
- programs = {
- gamescope = {
+ gamescopeSession = {
enable = true;
- capSysNice = true;
+ args = [
+ "-W"
+ "3840"
+ "-H"
+ "2160"
+ "-f"
+ "-e"
+ "--xwayland-count"
+ "2"
+ "--hdr-enabled"
+ "--hdr-itm-enabled"
+ ];
};
- steam.gamescopeSession.enable = true;
};
-
- programs.steam.enable = true;
- hardware.steam-hardware.enable = true;
- services.greetd = {
+ programs.gamescope = {
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";
- };
- };
+ capSysNice = false;
};
+
+ hardware.steam-hardware.enable = true;
}