22
0
mirror of https://github.com/SuperSandro2000/nixos-modules.git synced 2024-06-13 11:35:47 +02:00

postgres: fix eval

This commit is contained in:
Sandro - 2023-01-06 22:12:33 +01:00
parent 14116a9f6c
commit 5199926fed
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -32,7 +32,7 @@ in
};
config = {
environment.systemPackages = lib.optional (cfg.newPackage != config.services.postgresql.package) [(
environment.systemPackages = lib.optional (cfg.newPackage != config.services.postgresql.package) (
let
newData = "/var/lib/postgresql/${cfg.newPackage.psqlSchema}";
newBin = "${cfg.newPackage}/bin";
@ -61,6 +61,6 @@ in
${lib.concatStringsSep " " cfg.extraArgs} \
"$@"
''
)];
);
};
}