aboutsummaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/minecraft/default.nix8
-rw-r--r--roles/minecraft/zenith/default.nix24
2 files changed, 0 insertions, 32 deletions
diff --git a/roles/minecraft/default.nix b/roles/minecraft/default.nix
deleted file mode 100644
index 65c4eea..0000000
--- a/roles/minecraft/default.nix
+++ /dev/null
@@ -1,8 +0,0 @@
-{ config, lib, inputs, ... }:
-with lib;
-
-let cfg = config.roles.minecraft; in {
- imports = [
- ./zenith
- ];
-}
diff --git a/roles/minecraft/zenith/default.nix b/roles/minecraft/zenith/default.nix
deleted file mode 100644
index 29cd880..0000000
--- a/roles/minecraft/zenith/default.nix
+++ /dev/null
@@ -1,24 +0,0 @@
-{ config, lib, pkgs, ... }:
-with lib;
-
-let cfg = config.roles.minecraft.zenith; in {
- options.roles.minecraft.zenith = {
- enable = mkEnableOption "zenith proxy role";
-
- port = mkOption {
- type = types.port;
- default = 25565;
- description = "server port";
- };
-
- openFirewall = mkOption {
- type = types.bool;
- default = true;
- description = "open firewall";
- };
- };
-
- config = mkIf cfg.enable {
- networking.firewall.allowedTCPPorts = mkIf cfg.openFirewall [ cfg.port ];
- };
-}