nixos-config/configurations/host/waffentrager/services/auth.nix

14 lines
332 B
Nix
Raw Normal View History

2024-04-02 19:43:49 +02:00
{ materusArg, config, lib, pkgs, ... }:
{
options.waffentragerService.auth.enable = materusArg.pkgs.lib.mkBoolOpt false "Enable auth";
config =
let
cfg = config.auth.postgresql;
in
lib.mkIf cfg.enable {
waffentragerService.elements.enable = true;
waffentragerService.nginx.enable = true;
};
}