mirror of
https://github.com/Moe1369/nixos-config.git
synced 2024-10-18 12:04:07 +02:00
28 lines
621 B
Nix
28 lines
621 B
Nix
{ 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;
|
|
dedicatedServer.openFirewall = true;
|
|
localNetworkGameTransfers.openFirewall = true;
|
|
};
|
|
environment.systemPackages =
|
|
(with pkgs; [
|
|
gamescope
|
|
mangohud
|
|
protonup-qt
|
|
]);
|
|
}
|