blob: cc1ae990080f7e7572b759604830073739dacd18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{ 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 {
cxl.tools.tmux.enable = true;
services.minecraft-servers = {
enable = true;
eula = true;
openFirewall = true;
};
};
}
|