Do a TON of organising into seperate files
This commit is contained in:
parent
b42afdda7e
commit
823361a999
20 changed files with 396 additions and 116 deletions
36
nixos/common/steam.nix
Normal file
36
nixos/common/steam.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
unstable,
|
||||
inputs,
|
||||
nix-your-shell,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
package = pkgs.steam.override {
|
||||
extraPkgs = (
|
||||
pkgs:
|
||||
with pkgs;
|
||||
with unstable;
|
||||
[
|
||||
gamemode
|
||||
unstable.mangohud
|
||||
# additional packages...
|
||||
# e.g. some games require python3
|
||||
]
|
||||
);
|
||||
};
|
||||
|
||||
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
||||
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
||||
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
|
||||
};
|
||||
programs.steam.gamescopeSession.enable = true;
|
||||
programs.steam.protontricks.enable = true;
|
||||
hardware.steam-hardware.enable = true;
|
||||
programs.gamescope.enable = true;
|
||||
programs.gamemode.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue