added steam module
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
_1password = config._1password;
|
||||
docker = config.docker;
|
||||
graphical = config.graphical;
|
||||
steam = config.steam;
|
||||
}
|
||||
] ++ config.extraImports;
|
||||
|
||||
@@ -51,6 +52,10 @@
|
||||
"1password-cli"
|
||||
"discord"
|
||||
"spotify"
|
||||
"steam"
|
||||
"steam-original"
|
||||
"steam-unwrapped"
|
||||
"steam-run"
|
||||
"sublimetext4"
|
||||
"vscode"
|
||||
"vscode-extension-mhutchie-git-graph"
|
||||
|
||||
10
homeManagerModules/steam.nix
Normal file
10
homeManagerModules/steam.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
programs.steam = lib.mkIf config.steam {
|
||||
enable = true;
|
||||
gamescopeSession.enable = true;
|
||||
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
|
||||
};
|
||||
}
|
||||
@@ -65,4 +65,10 @@
|
||||
default = false;
|
||||
description = "Whether this system has a graphical environment";
|
||||
};
|
||||
|
||||
options.steam = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Whether this system has Steam installed";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user