Add the authentik secrets to the authentik module

This commit is contained in:
Eli Ribble 2025-07-18 15:44:34 +00:00
parent 859ae228d6
commit 9da3485bfd
5 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,22 @@
{ pkgs, lib, config, ... }:
with lib;
{
options.myModules.authentik.enable = mkEnableOption "custom authentik configuration";
config = mkIf config.myModules.authentik.enable {
sops.secrets.authentik-env = {
format = "ini";
group = "authentik";
mode = "0440";
owner = "authentik";
restartUnits = ["authentik"];
sopsFile = ../../secrets/authentik.ini;
};
users.groups.authentik = {};
users.users.authentik = {
group = "authentik";
isNormalUser = false;
isSystemUser = true;
};
};
}

View file

@ -1,5 +1,6 @@
{
imports = [
./authentik.nix
./base.nix
./cloud-init.nix
./do-agent.nix