Added steam config

This commit is contained in:
Alejandro Angulo 2023-03-19 18:10:43 -07:00
parent a78a60abf8
commit fbbd42860e
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
3 changed files with 56 additions and 14 deletions

View file

@ -0,0 +1,22 @@
{
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.aa.apps.steam;
in {
options.aa.apps.steam = with types; {
enable = mkEnableOption "steam";
};
config = mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
};
}