mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-12-23 21:44:21 +01:00
19 lines
352 B
Nix
19 lines
352 B
Nix
|
{ 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;
|
||
|
};
|
||
|
};
|
||
|
}
|