mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
nuc: configure authentik
This commit is contained in:
parent
dacf54aa9c
commit
21da78256c
7 changed files with 287 additions and 12 deletions
18
hosts/nuc/modules/authentik/default.nix
Normal file
18
hosts/nuc/modules/authentik/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue