nixos-hypervisor/services/authentik/default.nix

19 lines
317 B
Nix
Raw Normal View History

2024-09-09 15:19:57 +02:00
{
2025-01-23 14:13:19 +01:00
inputs,
config,
lib,
authentik-nix,
...
}: let
cfg = config.services.vm_authentik;
in {
2024-09-09 15:19:57 +02:00
options.services.vm_authentik = {
enable = lib.mkEnableOption "Enable minimal config";
};
config = lib.mkIf cfg.enable {
networking = {
2025-01-23 14:13:19 +01:00
firewall.allowedTCPPorts = [9000 9300 9443];
2024-09-09 15:19:57 +02:00
};
};
}