Add Steam

This commit is contained in:
KoenDR06 2025-09-01 20:43:56 +02:00
parent c0db4f91c0
commit 2d60be7bf3
5 changed files with 28 additions and 2 deletions

View file

@ -57,6 +57,7 @@
apps = {
dev.enable = true;
visual.enable = true;
gaming.enable = true;
terminal = {
enable = true;
zsh.enable = true;

View file

@ -9,5 +9,7 @@
./visual/firefox.nix
./server.nix
./gaming.nix
];
}

24
modules/apps/gaming.nix Normal file
View file

@ -0,0 +1,24 @@
{
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.horseman.apps.gaming;
in {
options = {
horseman.apps.gaming = {
enable = mkEnableOption "Games and things for games";
};
};
config = mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = false; # 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
};
};
}

View file

@ -5,7 +5,7 @@
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.horseman.terminal.zsh;
cfg = config.horseman.apps.terminal.zsh;
in {
options = {
horseman.apps.terminal.zsh = {

View file

@ -3,7 +3,6 @@
./apps
./hardware
./network
./terminal
./wm
./users
./boot