45 lines
760 B
Nix
45 lines
760 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
autheliaVersion = "4.39.4";
|
|
in {
|
|
virtualisation.oci-containers.containers = {
|
|
authelia = {
|
|
image = "authelia/authelia:${autheliaVersion}";
|
|
autoStart = true;
|
|
|
|
login = {
|
|
# Uses DockerHub by default
|
|
# registry = "";
|
|
|
|
# DockerHub Credentials
|
|
username = "christoph.urlacher@protonmail.com";
|
|
passwordFile = "${config.sops.secrets.docker-password.path}";
|
|
};
|
|
|
|
dependsOn = [
|
|
# "pihole"
|
|
];
|
|
|
|
ports = [
|
|
# "9091:9091"
|
|
];
|
|
|
|
volumes = [
|
|
"authelia_config:/config"
|
|
];
|
|
|
|
environment = {
|
|
TZ = "Europe/Berlin";
|
|
};
|
|
|
|
extraOptions = [
|
|
"--net=behind-nginx"
|
|
];
|
|
};
|
|
};
|
|
}
|