2024-08-17 00:08:53 +02:00
|
|
|
{ pkgs, ... }:
|
2024-08-13 19:56:30 +02:00
|
|
|
{
|
2024-08-25 10:35:50 +02:00
|
|
|
|
|
|
|
systemd.user.services.steam = {
|
|
|
|
enable = true;
|
|
|
|
description = "Open Steam in the background at boot";
|
|
|
|
serviceConfig = {
|
|
|
|
ExecStart = "${pkgs.steam}/bin/steam -nochatui -nofriendsui -silent %U";
|
2024-08-31 10:10:15 +02:00
|
|
|
wantedBy= [ "default.target" ];
|
2024-08-25 10:35:50 +02:00
|
|
|
Restart = "on-failure";
|
|
|
|
RestartSec = "5s";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-08-13 19:56:30 +02:00
|
|
|
programs.steam = {
|
|
|
|
enable = true;
|
|
|
|
remotePlay.openFirewall = true;
|
|
|
|
dedicatedServer.openFirewall = true;
|
|
|
|
localNetworkGameTransfers.openFirewall = true;
|
|
|
|
};
|
2024-08-25 10:44:43 +02:00
|
|
|
environment.systemPackages =
|
|
|
|
(with pkgs; [
|
|
|
|
gamescope
|
|
|
|
mangohud
|
|
|
|
protonup-qt
|
|
|
|
]);
|
2024-08-13 19:56:30 +02:00
|
|
|
}
|