From cc00b335a05f4020f4b9e711631efd995ea63bb6 Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Sun, 27 Oct 2024 19:26:40 +0100 Subject: [PATCH] fix(Zephyrus): Enabled back `steam` user for steam specialization Previous issue was somehow fixed --- hosts/Zephyrus/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/hosts/Zephyrus/default.nix b/hosts/Zephyrus/default.nix index 3bdec20..a81d815 100644 --- a/hosts/Zephyrus/default.nix +++ b/hosts/Zephyrus/default.nix @@ -90,10 +90,27 @@ # Steam specialisation specialisation.steam.configuration = { + system.nixos.tags = ["steam"]; + users.groups.steam.name = "steam"; + users.users.steam = { + isNormalUser = true; + createHome = true; + extraGroups = [ + "video" + "seat" + "audio" + "gamemode" + "networkmanager" + ]; + group = "steam"; + }; programs = { gamescope = { enable = true; capSysNice = true; + env = { + XKB_DEFAULT_LAYOUT = "fr"; + }; }; steam = { enable = true; @@ -104,6 +121,7 @@ }; }; hardware.xone.enable = true; # support for the xbox controller USB dongle + services.getty.autologinUser = "steam"; environment = { loginShellInit = '' [[ "$(tty)" = "/dev/tty1" ]] && ${(pkgs.writeShellScript "gs.sh" "${builtins.readFile ../../bin/gs.sh}")}