authentik: init
This commit is contained in:
parent
98ab04d0c5
commit
0e373b50f8
3 changed files with 29 additions and 7 deletions
20
modules/authentik/default.nix
Normal file
20
modules/authentik/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
domain = "idm.${config.networking.domain}";
|
||||
in
|
||||
{
|
||||
age.secrets.authentik-core = {
|
||||
file = ../../../../secrets/nuc/authentik/core.age;
|
||||
};
|
||||
sops.secrets."authentik/env" = { };
|
||||
services.authentik = {
|
||||
enable = true;
|
||||
nginx = {
|
||||
enable = true;
|
||||
host = domain;
|
||||
enableACME = true;
|
||||
};
|
||||
environmentFile = config.sops.secrets."authentik/env".path;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue