nixos-config/modules/minecraft/luckperms.nix

20 lines
470 B
Nix
Raw Normal View History

2022-02-20 15:30:04 +00:00
{ config, lib, options, pkgs, ... }:
with lib;
let
luckperms = pkgs.callPackage ../packages/minecraft/luckperms.nix { };
cfg = config.services.minecraft.luckperms;
opt = options.services.minecraft.luckperms;
in
{
options.services.minecraft.luckperms = {
enable = mkOption {
default = false;
type = types.bool;
description = "Enable LuckPerms";
};
};
config = mkIf cfg.enable {
services.minecraft.plugins = [ luckperms ];
};
}