aux-config/modules/nixos/services/minecraft/default.nix
kB01 0cdabbeedb
Some checks are pending
/ Check NixOS Configuration (push) Waiting to run
Added Survival Plugin and Velocity Server + Plugin
2024-11-23 15:22:48 +01:00

43 lines
987 B
Nix

{ inputs, config, lib, pkgs, ... }:
let
cfg = config.services.minecraft;
in
{
imports = [
inputs.nix-minecraft.nixosModules.minecraft-servers
./vanilla-test.nix
./survival.nix
./velocity.nix
];
options.services.minecraft = {
enable = lib.mkOption {
type = with lib.types; uniq bool;
default = false;
description = "Enable minecraft server";
};
servers.vanilla.enable = lib.mkOption {
type = with lib.types; uniq bool;
default = false;
description = "test server";
};
servers.survival.enable = lib.mkOption {
type = with lib.types; uniq bool;
default = false;
description = "Survival Server";
};
servers.velocity.enable = lib.mkOption {
type = with lib.types; uniq bool;
default = false;
description = "Velocity Proxy Server";
};
};
config = lib.mkIf cfg.enable {
services.minecraft-servers = {
enable = true;
eula = true;
};
};
}