feat(Zephyrus): Setup steam specialisation

This commit is contained in:
GaspardCulis 2024-10-26 17:32:11 +02:00
parent b18767d95a
commit 447782e60f
2 changed files with 48 additions and 1 deletions

View file

@ -14,6 +14,7 @@
time.timeZone = "Europe/Paris";
console.keyMap = "fr";
services.xserver.xkb.layout = "fr";
security.pam.services.swaylock = {};
@ -40,6 +41,7 @@
htop
wg-netmanager
podman-compose
mangohud
];
#Podman
@ -73,7 +75,6 @@
"seat"
"audio"
"adbusers"
"gamemode"
"networkmanager"
];
group = "gaspard";
@ -86,5 +87,45 @@
};
};
# Steam specialisation
specialisation.steam.configuration = {
users.groups.steam = {
name = "steam";
};
users.users.steam = {
isNormalUser = true;
extraGroups = [
"wheel"
"video"
"seat"
"audio"
"gamemode"
"networkmanager"
];
group = "steam";
};
programs = {
gamescope = {
enable = true;
capSysNice = true;
};
steam = {
enable = true;
gamescopeSession.enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
};
};
hardware.xone.enable = true; # support for the xbox controller USB dongle
services.getty.autologinUser = "steam";
environment = {
loginShellInit = ''
[[ "$(tty)" = "/dev/tty1" ]] && ./gs.sh
'';
};
};
system.stateVersion = "24.11";
}

View file

@ -62,6 +62,12 @@
"libcublas"
"cuda_cccl"
"cuda_nvcc"
# Steam
"xow_dongle-firmware"
"steam"
"steam-original"
"steam-run"
"steam-unwrapped"
];
hardware.graphics = {