back to compose
This commit is contained in:
@@ -5,20 +5,23 @@
|
||||
default = false;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.sysconfig.opts.virtualization.authentik.enable (lib.mkMerge [
|
||||
|
||||
(import ./docker-compose.nix)
|
||||
{
|
||||
sops.templates."authentik.env" = {
|
||||
content = ''
|
||||
POSTGRES_DB=authentik-db
|
||||
POSTGRES_USER=authentik-admin
|
||||
POSTGRES_PASSWORD=${config.sops.placeholder."authentik/pass"}
|
||||
AUTHENTIK_SECRET_KEY=${config.sops.placeholder."authentik/secret_key"}
|
||||
'';
|
||||
imports = [
|
||||
./docker-compose.nix
|
||||
];
|
||||
|
||||
path = "/ssd1/Authentik/.env";
|
||||
};
|
||||
}
|
||||
]);
|
||||
config = lib.mkIf config.sysconfig.opts.virtualization.authentik.enable {
|
||||
sops.templates."authentik.env" = {
|
||||
content = ''
|
||||
POSTGRES_DB=authentik-db
|
||||
POSTGRES_USER=authentik-admin
|
||||
POSTGRES_PASSWORD=${config.sops.placeholder."authentik/pass"}
|
||||
AUTHENTIK_SECRET_KEY=${config.sops.placeholder."authentik/secret_key"}
|
||||
AUTHENTIK_POSTGRESQL__NAME=authentik-db
|
||||
AUTHENTIK_POSTGRESQL__USER=authentik-admin
|
||||
AUTHENTIK_POSTGRESQL__PASSWORD=${config.sops.placeholder."authentik/pass"}
|
||||
'';
|
||||
|
||||
path = "/ssd1/Authentik/.env";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user