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

@ -4,14 +4,14 @@ let
enium-pv = import ./games/minecraft.nix {
inherit inputs config pkgs lib;
};
cfg = config.service.minecraft;
cfg = config.service;
in
{
imports = [
enium-pv
];
options.service.minecraft = {
options.service.games = {
enium-pv = lib.mkOption {
type = lib.types.bool;
default = false;

View file

@ -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