diff --git a/hosts/Zephyrus/default.nix b/hosts/Zephyrus/default.nix index b164879..7445626 100644 --- a/hosts/Zephyrus/default.nix +++ b/hosts/Zephyrus/default.nix @@ -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"; } diff --git a/hosts/Zephyrus/hardware-configuration.nix b/hosts/Zephyrus/hardware-configuration.nix index 68937cd..1817989 100644 --- a/hosts/Zephyrus/hardware-configuration.nix +++ b/hosts/Zephyrus/hardware-configuration.nix @@ -62,6 +62,12 @@ "libcublas" "cuda_cccl" "cuda_nvcc" + # Steam + "xow_dongle-firmware" + "steam" + "steam-original" + "steam-run" + "steam-unwrapped" ]; hardware.graphics = {