nixos-config/modules/minecraft/vault.nix

20 lines
447 B
Nix
Raw Normal View History

2022-02-20 19:14:35 +00:00
{ config, lib, options, pkgs, ... }:
with lib;
let
vault = pkgs.callPackage ../../packages/minecraft/vault.nix { };
cfg = config.services.minecraft.vault;
opt = options.services.minecraft.vault;
in
{
options.services.minecraft.vault.enable = mkOption {
default = false;
type = types.bool;
description = "Enable Vault";
};
config = mkIf cfg.enable {
services.minecraft.plugins = [{
package = vault;
}];
};
}