fix(Zephyrus): Enabled back steam user for steam specialization

Previous issue was somehow fixed
This commit is contained in:
GaspardCulis 2024-10-27 19:26:40 +01:00
parent fcab610270
commit cc00b335a0

View file

@ -90,10 +90,27 @@
# Steam specialisation # Steam specialisation
specialisation.steam.configuration = { 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 = { programs = {
gamescope = { gamescope = {
enable = true; enable = true;
capSysNice = true; capSysNice = true;
env = {
XKB_DEFAULT_LAYOUT = "fr";
};
}; };
steam = { steam = {
enable = true; enable = true;
@ -104,6 +121,7 @@
}; };
}; };
hardware.xone.enable = true; # support for the xbox controller USB dongle hardware.xone.enable = true; # support for the xbox controller USB dongle
services.getty.autologinUser = "steam";
environment = { environment = {
loginShellInit = '' loginShellInit = ''
[[ "$(tty)" = "/dev/tty1" ]] && ${(pkgs.writeShellScript "gs.sh" "${builtins.readFile ../../bin/gs.sh}")} [[ "$(tty)" = "/dev/tty1" ]] && ${(pkgs.writeShellScript "gs.sh" "${builtins.readFile ../../bin/gs.sh}")}