feat(services/games): now prefix for games is games

- before was minecraft because only minecraft server
This commit is contained in:
Raphael 2025-10-02 11:46:03 +02:00
parent 4d38f03718
commit 51f952aa7b
No known key found for this signature in database
2 changed files with 16 additions and 17 deletions

View file

@ -1,21 +1,21 @@
{ inputs, config, pkgs, lib, ... }: { inputs, config, pkgs, lib, ... }:
let let
enium-pv = import ./games/minecraft.nix { enium-pv = import ./games/minecraft.nix {
inherit inputs config pkgs lib; inherit inputs config pkgs lib;
}; };
cfg = config.service.minecraft; cfg = config.service;
in in
{ {
imports = [ imports = [
enium-pv enium-pv
]; ];
options.service.minecraft = { options.service.games = {
enium-pv = lib.mkOption { enium-pv = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = false; default = false;
description = "Enable enium private minecraft server"; description = "Enable enium private minecraft server";
}; };
}; };
} }

View file

@ -1,14 +1,13 @@
{ inputs, config, pkgs, lib, ... }: { inputs, config, pkgs, lib, ... }:
let let
cfg = config.service.minecraft.enium-pv; cfg = config.service.games.enium-pv;
in in
{ {
imports = [ imports = [
inputs.minecraft.nixosModules.minecraft-servers inputs.minecraft.nixosModules.minecraft-servers
]; ];
config = lib.mkIf cfg { config = lib.mkIf cfg {
nixpkgs.overlays = [ nixpkgs.overlays = [
inputs.minecraft.overlay inputs.minecraft.overlay