From 51f952aa7b5eb2076c4579b0ccdded1f187d3361 Mon Sep 17 00:00:00 2001 From: Raphael Date: Thu, 2 Oct 2025 11:46:03 +0200 Subject: [PATCH] feat(services/games): now prefix for games is games - before was minecraft because only minecraft server --- services/games.nix | 30 +++++++++++++++--------------- services/games/minecraft.nix | 3 +-- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/services/games.nix b/services/games.nix index 0fc6769..837d6ce 100644 --- a/services/games.nix +++ b/services/games.nix @@ -1,21 +1,21 @@ { inputs, config, pkgs, lib, ... }: let - enium-pv = import ./games/minecraft.nix { - inherit inputs config pkgs lib; - }; - cfg = config.service.minecraft; + enium-pv = import ./games/minecraft.nix { + inherit inputs config pkgs lib; + }; + cfg = config.service; in -{ - imports = [ - enium-pv - ]; + { + imports = [ + enium-pv + ]; - options.service.minecraft = { - enium-pv = lib.mkOption { - type = lib.types.bool; - default = false; - description = "Enable enium private minecraft server"; - }; - }; + options.service.games = { + enium-pv = lib.mkOption { + type = lib.types.bool; + default = false; + description = "Enable enium private minecraft server"; + }; + }; } diff --git a/services/games/minecraft.nix b/services/games/minecraft.nix index d1f1619..7e78e8d 100644 --- a/services/games/minecraft.nix +++ b/services/games/minecraft.nix @@ -1,14 +1,13 @@ { inputs, config, pkgs, lib, ... }: let - cfg = config.service.minecraft.enium-pv; + cfg = config.service.games.enium-pv; in { imports = [ inputs.minecraft.nixosModules.minecraft-servers ]; - config = lib.mkIf cfg { nixpkgs.overlays = [ inputs.minecraft.overlay