36 lines
1.0 KiB
Nix
36 lines
1.0 KiB
Nix
{ pkgs, config, lib, inputs, ... }: {
|
|
|
|
options.sysconfig.opts.virtualization.authentik.enable = lib.options.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
};
|
|
|
|
imports = [
|
|
inputs.arion.nixosModules.arion
|
|
];
|
|
|
|
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"}
|
|
'';
|
|
|
|
path = "/home/nathan/Projects/System/system-config/services/containers/authentik/.env";
|
|
};
|
|
|
|
/*systemd.services.launchAuthentik = {
|
|
|
|
enable = true;
|
|
|
|
script = ''
|
|
cd /home/nathan/Projects/System/system-config/services/containers/authentik
|
|
${pkgs.docker-compose}/bin/docker-compose up -d
|
|
'';
|
|
};*/
|
|
};
|
|
}
|