Temp fix for Authentik
All checks were successful
Auto Update Build / build (pull_request) Successful in 35m5s

Waiting for PR https://github.com/nix-community/authentik-nix/pull/86
This commit is contained in:
pazpi 2026-01-19 13:05:07 +01:00
parent 625c0e0367
commit edf5f148f6
4 changed files with 52 additions and 39 deletions

View file

@ -2,6 +2,7 @@
lib,
config,
pkgs,
authentik-nix,
...
}:
let
@ -90,20 +91,42 @@ in
config = lib.mkMerge [
(lib.mkIf cfg.enable {
services.authentik = {
enable = true;
environmentFile = cfg.envFile;
settings = {
email = cfg.email;
disable_startup_analytics = true;
avatars = "initials";
};
nginx = {
services.authentik =
# Waiting for PR https://github.com/nix-community/authentik-nix/pull/86
let
customAuthentikScope = authentik-nix.lib.mkAuthentikScope {
inherit pkgs;
};
# Override the scope to change gopkgs
overriddenScope = customAuthentikScope.overrideScope (
final: prev: {
authentikComponents = prev.authentikComponents // {
gopkgs = prev.authentikComponents.gopkgs.override {
buildGo124Module = pkgs.buildGo125Module;
};
};
}
);
in
{
enable = true;
enableACME = false;
host = "${cfg.proxy.subdomain}.${cfg.proxy.domain}";
# Waiting for PR https://github.com/nix-community/authentik-nix/pull/86
inherit (overriddenScope) authentikComponents;
environmentFile = cfg.envFile;
settings = {
email = cfg.email;
disable_startup_analytics = true;
avatars = "initials";
};
nginx = {
enable = true;
enableACME = false;
host = "${cfg.proxy.subdomain}.${cfg.proxy.domain}";
};
};
};
# Add your package to system packages
environment.systemPackages = [ rfc-7033 ];