18 lines
454 B
Nix
18 lines
454 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
cfg = config.samfelag.modules.gaming.steam;
|
|
in
|
|
{
|
|
options.samfelag.modules.gaming.steam = {
|
|
enable = lib.mkEnableOption "steam";
|
|
};
|
|
config = lib.mkIf cfg.enable {
|
|
programs.steam = {
|
|
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
|
|
};
|
|
};
|
|
}
|