mkModule migration begin
This commit is contained in:
@@ -8,6 +8,7 @@ with lib;
|
||||
let
|
||||
name = "authentik";
|
||||
cfg = config.${namespace}.services.${name};
|
||||
cfgRac = config.${namespace}.services."authentikRac";
|
||||
|
||||
authentikConfig = lib.${namespace}.mkModule {
|
||||
inherit config name;
|
||||
@@ -26,17 +27,6 @@ let
|
||||
enable = mkDefault true;
|
||||
port = mkDefault 6379;
|
||||
};
|
||||
|
||||
# postgresql = {
|
||||
# enable = mkDefault true;
|
||||
# ensureDatabases = [ name ];
|
||||
# ensureUsers = [
|
||||
# {
|
||||
# name = name;
|
||||
# ensureDBOwnership = true;
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
};
|
||||
|
||||
# Open firewall for authentik if enabled
|
||||
@@ -48,11 +38,19 @@ let
|
||||
4822
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.oci-containers.containers.authentik_rac = {
|
||||
authentikRacConfig = lib.${namespace}.mkModule {
|
||||
inherit config;
|
||||
name = "authentikRac";
|
||||
description = "authentik_rac Service";
|
||||
options = { };
|
||||
moduleConfig = {
|
||||
virtualisation.oci-containers.containers."authenticRac" = {
|
||||
autoStart = true;
|
||||
image = "ghcr.io/goauthentik/rac";
|
||||
ports = [ "4822:4822" ];
|
||||
ports = [ "${toString cfgRac.port}:4822" ];
|
||||
volumes = [
|
||||
"${cfg.configDir}/authentik-rac:/media"
|
||||
];
|
||||
@@ -69,5 +67,8 @@ let
|
||||
};
|
||||
in
|
||||
{
|
||||
imports = [ authentikConfig ];
|
||||
imports = [
|
||||
authentikConfig
|
||||
authentikRacConfig
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user