From 6c496b7b8e4742a4c2d1606e76069fd0b3072250 Mon Sep 17 00:00:00 2001 From: chn Date: Tue, 19 Dec 2023 22:09:35 +0800 Subject: [PATCH] services.postgresql: fix locale setting --- modules/services/postgresql.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/postgresql.nix b/modules/services/postgresql.nix index 4f9f16f9..632624cc 100644 --- a/modules/services/postgresql.nix +++ b/modules/services/postgresql.nix @@ -69,7 +69,7 @@ inputs: passwordFile = if db.value.passwordFile or null != null then db.value.passwordFile else inputs.config.sops.secrets."postgresql/${db.value.user}".path; - locale = if db.value.locale != null then " LOCALE ${db.value.locale}" else ""; + locale = if db.value.locale != null then " LOCALE \"${db.value.locale}\"" else ""; in # create database if not exist "$PSQL -tAc \"SELECT 1 FROM pg_database WHERE datname = '${db.value.database}'\" | grep -q 1"