nixos-config/modules/minecraft/luckperms.nix

20 lines
473 B
Nix
Raw Normal View History

2022-02-20 15:30:04 +00:00
{ config, lib, options, pkgs, ... }:
with lib;
let
2022-02-20 15:33:51 +00:00
luckperms = pkgs.callPackage ../../packages/minecraft/luckperms.nix { };
2022-02-20 15:30:04 +00:00
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 ];
};
}