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"; time.timeZone = "Europe/Paris";
console.keyMap = "fr"; console.keyMap = "fr";
services.xserver.xkb.layout = "fr";
security.pam.services.swaylock = {}; security.pam.services.swaylock = {};
@ -40,6 +41,7 @@
htop htop
wg-netmanager wg-netmanager
podman-compose podman-compose
mangohud
]; ];
#Podman #Podman
@ -73,7 +75,6 @@
"seat" "seat"
"audio" "audio"
"adbusers" "adbusers"
"gamemode"
"networkmanager" "networkmanager"
]; ];
group = "gaspard"; 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"; system.stateVersion = "24.11";
} }

View file

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