feat: adding the minecraft server configuration
This commit is contained in:
parent
f4628c0b47
commit
f19eca3df6
7 changed files with 116 additions and 3 deletions
21
services/games.nix
Normal file
21
services/games.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ inputs, config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
enium-pv = import ./games/minecraft.nix {
|
||||
inherit inputs config pkgs lib;
|
||||
};
|
||||
cfg = config.service.minecraft;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
enium-pv
|
||||
];
|
||||
|
||||
options.service.minecraft = {
|
||||
enium-pv = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable enium private minecraft server";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue