Clean up volumes

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-04-08 09:43:52 +01:00
parent dc5a91ebf7
commit 3f1531fbd1
2 changed files with 9 additions and 7 deletions

View File

@@ -16,8 +16,6 @@ let
inherit (hmConfig.virtualisation.quadlet) volumes containers networks;
in
{
environment.persistence."/persist"."${home}/.local/share/authelia" = { };
home-manager.users.${user} = {
sops = {
secrets = {
@@ -126,14 +124,18 @@ in
virtualisation.quadlet = {
networks.authelia.networkConfig.internal = true;
volumes."authelia-redis" = { };
volumes = {
"authelia-redis" = { };
"authelia-postgresql" = { };
authelia = { };
};
containers = {
"authelia-init" = {
containerConfig = {
image = "docker-archive:${selfPkgs.docker-yq}";
volumes = [
"${home}/.local/share/authelia/config:/etc/authelia"
"${volumes.authelia.ref}:/etc/authelia"
"${hmConfig.sops.templates."authelia-users.yaml".path}:/etc/authelia/users.yaml.default:ro"
];
exec = [
@@ -157,7 +159,7 @@ in
containerConfig = {
image = "docker-archive:${selfPkgs.docker-authelia}";
volumes = [
"${home}/.local/share/authelia/config:/etc/authelia"
"${volumes.authelia.ref}:/etc/authelia"
"${
hmConfig.sops.templates."authelia-configuration.yaml".path
}:/etc/authelia/conf.d/configuration.yaml:ro"
@@ -192,7 +194,7 @@ in
containerConfig = {
image = "docker-archive:${selfPkgs.docker-postgresql}";
networks = [ networks.authelia.ref ];
volumes = [ "${home}/.local/share/authelia/postgresql:/var/lib/postgresql/data" ];
volumes = [ "${volumes."authelia-postgresql".ref}:/var/lib/postgresql/data" ];
environments = {
POSTGRES_DB = "authelia";
POSTGRES_USER = "authelia";

View File

@@ -37,7 +37,7 @@ in
virtualisation.quadlet = {
networks.traefik = { };
volumes.letsencrypt.volumeConfig = { };
volumes.letsencrypt = { };
containers = {
traefik = {