From 0e985b318f257c1cb0c851284195fe519392fcc2 Mon Sep 17 00:00:00 2001 From: materus Date: Sat, 23 Mar 2024 12:42:02 +0100 Subject: [PATCH] waffentrager: postresql dir creation --- configurations/host/waffentrager/services/elements.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configurations/host/waffentrager/services/elements.nix b/configurations/host/waffentrager/services/elements.nix index 1e7da9a..5e49c67 100644 --- a/configurations/host/waffentrager/services/elements.nix +++ b/configurations/host/waffentrager/services/elements.nix @@ -21,7 +21,7 @@ cryptsetup luksOpen /dev/disk/by-uuid/${cfg.uuid} elements -d ${config.sops.secrets.elements.path} mount /dev/mapper/elements ${cfg.path} '' + lib.optionalString config.waffentragerService.postgresql.enable '' - mkdir -p ${config.services.postgresql.dataDir} + mkdir -p ${cfg.postgresqlDir}/${config.waffentragerService.postgresql.version} chown -R postgres:postgres ${cfg.postgresqlDir} ''