Skip to content

Commit 7c92322

Browse files
committed
fixup! fix secrets
1 parent a588d9e commit 7c92322

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/lndhub-go.nix

+4-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ in {
105105
set -euo pipefail
106106
{
107107
cat ${configFile}
108-
echo "JWT_SECRET=$(cat ${config.nix-bitcoin.secretsDir}/lndhub.go-jwt_secret)"
108+
echo "JWT_SECRET=$(cat '${config.nix-bitcoin.secretsDir}/lndhub.go-jwt-secret')"
109109
echo "LND_MACAROON_HEX=$(${xxd} -p -c 99999 /run/lnd/lndhub-go.macaroon)"
110110
echo "LND_CERT_HEX=$(${xxd} -p -c 99999 ${lnd.certPath})"
111111
} > .env
@@ -126,8 +126,10 @@ in {
126126
group = cfg.group;
127127
};
128128
users.groups.${cfg.group} = {};
129+
130+
nix-bitcoin.secrets."lndhub.go-jwt-secret".user = cfg.user;
129131
nix-bitcoin.generateSecretsCmds.lndhub-go = ''
130-
makePasswordSecret lndhub.go-jwt_secret
132+
makePasswordSecret lndhub.go-jwt-secret
131133
'';
132134
};
133135
}

0 commit comments

Comments
 (0)