From 7ba959742ef86ac715aef86982930dec689827ed Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Thu, 25 Feb 2021 15:16:28 -0800 Subject: [PATCH] modules/age: set LANG rage has a localization crate as a dependency that whines when LANG is unset. --- modules/age.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/age.nix b/modules/age.nix index 974af50..a2a4803 100644 --- a/modules/age.nix +++ b/modules/age.nix @@ -14,7 +14,7 @@ let echo "decrypting ${secretType.file} to ${secretType.path}..." TMP_FILE="${secretType.path}.tmp" mkdir -p $(dirname ${secretType.path}) - (umask 0400; ${ageBin} --decrypt ${identities} -o "$TMP_FILE" "${secretType.file}") + (umask 0400; LANG=${config.i18n.defaultLocale} ${ageBin} --decrypt ${identities} -o "$TMP_FILE" "${secretType.file}") chmod ${secretType.mode} "$TMP_FILE" chown ${secretType.owner}:${secretType.group} "$TMP_FILE" mv -f "$TMP_FILE" '${secretType.path}'