blob: 1ea2ab4752bd0876f57932aa7ddfd81d7c5ea5e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{ options, config, lib, namespace, ... }:
with lib; with lib.${namespace}; let
cfg = config.${namespace}.services.minecraft;
in {
options.${namespace}.services.minecraft = with types; {
enable = mkEnableOption "minecraft server support";
};
config = mkIf cfg.enable {
services.minecraft-servers = {
enable = true;
eula = true;
openFirewall = true;
};
};
}
|