aboutsummaryrefslogtreecommitdiff
path: root/machines/common
diff options
context:
space:
mode:
Diffstat (limited to 'machines/common')
-rw-r--r--machines/common/base.nix4
-rw-r--r--machines/common/default.nix1
-rw-r--r--machines/common/steam.nix47
3 files changed, 21 insertions, 31 deletions
diff --git a/machines/common/base.nix b/machines/common/base.nix
index fbef8ae..9ee5dfb 100644
--- a/machines/common/base.nix
+++ b/machines/common/base.nix
@@ -13,10 +13,6 @@
nixpkgs.config.allowUnfree = true;
- programs.steam.enable = true;
- hardware.steam-hardware.enable = true;
- programs.gamescope.enable = true;
-
time.timeZone = "America/Los_Angeles";
i18n.defaultLocale = "en_US.UTF-8";
diff --git a/machines/common/default.nix b/machines/common/default.nix
index 9af7dc0..1922bad 100644
--- a/machines/common/default.nix
+++ b/machines/common/default.nix
@@ -7,6 +7,7 @@
./printer.nix
./rip.nix
./tailscale.nix
+ ./steam.nix
./user.nix
];
}
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;
}