start authentik on boot

This commit is contained in:
2024-11-10 14:15:17 -06:00
parent 445cf1d2bd
commit f96f769b2b
4 changed files with 64 additions and 19 deletions

View File

@@ -1,13 +1,10 @@
{ pkgs, config, lib, inputs, ... }: {
{ pkgs, config, lib, ... }: {
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 {
@@ -22,14 +19,16 @@
path = "/ssd1/Authentik/.env";
};
/*systemd.services.launchAuthentik = {
systemd.services.launchAuthentik = {
enable = true;
wantedBy = [ "multi-user.target" ];
script = ''
cd /home/nathan/Projects/System/system-config/services/containers/authentik
${pkgs.docker-compose}/bin/docker-compose up -d
cd /ssd1/Authentik
${pkgs.docker-compose}/bin/docker-compose up
'';
};*/
};
};
}