add steam autostart service

This commit is contained in:
Mohamed Chrayed 2024-08-25 10:35:50 +02:00
parent 1ec4fe5247
commit a2f182dda5

View File

@ -1,5 +1,17 @@
{ pkgs, ... }:
{
systemd.user.services.steam = {
enable = true;
description = "Open Steam in the background at boot";
serviceConfig = {
ExecStart = "${pkgs.steam}/bin/steam -nochatui -nofriendsui -silent %U";
wantedBy = [ "graphical-session.target" ];
Restart = "on-failure";
RestartSec = "5s";
};
};
programs.steam = {
enable = true;
remotePlay.openFirewall = true;