blob: d47254d78fc90ac55707232c880c8eae1852ce0f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{ config, lib, pkgs, ... }: let
cfg = config.santi-modules;
in with lib; {
options.santi-modules = {
games.enable = mkEnableOption "Enable all games";
steam.enable = mkOption {
description = "Enable steam installation";
default = cfg.games.enable;
type = types.bool;
};
minecraft.enable = mkOption {
description = "Enable minecraft launcher";
default = cfg.games.enable;
type = types.bool;
};
};
config = {
programs.steam = mkIf cfg.steam.enable {
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
};
environment.systemPackages = mkIf cfg.minecraft.enable [
pkgs.prismlauncher
];
};
}
|