From 9e9f112e6bcaf2850c8873590fdf8b858b6506cf Mon Sep 17 00:00:00 2001 From: Raphael Date: Thu, 9 Oct 2025 00:38:42 +0200 Subject: [PATCH] refactor(services/server): remaming the games section to server --- services/games.nix | 32 -------------------------------- services/server.nix | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 32 deletions(-) delete mode 100644 services/games.nix create mode 100644 services/server.nix diff --git a/services/games.nix b/services/games.nix deleted file mode 100644 index 30f3f18..0000000 --- a/services/games.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ - inputs, - config, - pkgs, - lib, - ... -}: - -let - enium-pv = import ./games/minecraft.nix { - inherit - inputs - config - pkgs - lib - ; - }; - cfg = config.service; -in -{ - imports = [ - enium-pv - ]; - - options.service.games = { - enium-pv = lib.mkOption { - type = lib.types.bool; - default = false; - description = "Enable enium private minecraft server"; - }; - }; -} diff --git a/services/server.nix b/services/server.nix new file mode 100644 index 0000000..9737f5b --- /dev/null +++ b/services/server.nix @@ -0,0 +1,45 @@ +{ + inputs, + config, + pkgs, + lib, + ... +}: + +let + teamspeak = import ./server/teamspeak.nix { + inherit + inputs + config + pkgs + lib + ; + }; + minecraft = import ./server/minecraft.nix { + inherit + inputs + config + pkgs + lib + ; + }; +in +{ + imports = [ + minecraft + teamspeak + ]; + + options.service.server = { + teamspeak = lib.mkOption { + type = lib.types.bool; + default = false; + description = "Enable the teamspeak"; + }; + minecraft = lib.mkOption { + type = lib.types.bool; + default = false; + description = "Enable minecraft server"; + }; + }; +}