From a1d46f530140adc70ac38c5941c0e8ee08535fb5 Mon Sep 17 00:00:00 2001 From: kat witch Date: Sat, 4 Sep 2021 23:47:49 +0100 Subject: [PATCH] modules/nixos/glauth: Weh. --- config/modules/nixos/glauth.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/modules/nixos/glauth.nix b/config/modules/nixos/glauth.nix index 72d510d2..e3156a6f 100644 --- a/config/modules/nixos/glauth.nix +++ b/config/modules/nixos/glauth.nix @@ -153,11 +153,12 @@ in set -o errexit -o pipefail -o nounset -o errtrace shopt -s inherit_errexit umask u=rwx,g=,o= + mkdir -p /run/glauth/secrets install -T -m 0400 -o glauth -g glauth '${dbcfg.passwordFile}' /run/glauth/secrets/db_password ''; startPre = '' install -T -m 0600 ${cfg.configFile} /run/glauth/config.cfg - replace-secret '@db-password@' /run/glauth/config.cfg + replace-secret '@db-password@' '/run/glauth/secrets/db_password' /run/glauth/config.cfg ''; in [