aboutsummaryrefslogtreecommitdiff
path: root/machines/common/steam.nix
diff options
context:
space:
mode:
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;
}