mirror of
https://github.com/Moe1369/nixos-config.git
synced 2024-10-18 04:14:08 +02:00
add steam autostart service
This commit is contained in:
parent
1ec4fe5247
commit
a2f182dda5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user