nixos-config/hosts/nuc/modules/authentik/default.nix

19 lines
352 B
Nix
Raw Normal View History

2024-05-20 12:19:05 +02:00
{ config, ... }:
let
domain = "auth.${config.networking.domain}";
in
{
age.secrets.authentik = {
file = ../../../../secrets/nuc/authentik.age;
};
services.authentik = {
enable = true;
environmentFile = config.age.secrets.authentik.path;
nginx = {
enable = true;
enableACME = true;
host = domain;
};
};
}