aboutsummaryrefslogtreecommitdiff
path: root/tw/system/vin.scm
diff options
context:
space:
mode:
authorTimo Wilken2023-05-28 23:34:13 +0200
committerTimo Wilken2023-05-28 23:44:17 +0200
commit4484a7768efa027b764d377f0d2a6ac934e21508 (patch)
treef9465d1aa53ec6656b3f8a9f8b25e3b03bee4a6d /tw/system/vin.scm
parent9447bb2ec9bc9e6fa75c9709adf485151032076a (diff)
Fix locale issue for hledger-dashboard
Diffstat (limited to 'tw/system/vin.scm')
-rw-r--r--tw/system/vin.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/tw/system/vin.scm b/tw/system/vin.scm
index 9d64e157..651fe528 100644
--- a/tw/system/vin.scm
+++ b/tw/system/vin.scm
@@ -142,7 +142,14 @@
(list #$(file-append hledger-dashboard "/bin/hledger-dashboard")
;; This is where Syncthing puts the ledger file.
"-f" "/home/timo/sync/ledger/ledger.journal")
- #:user "timo" #:group "users"))
+ #:user "timo" #:group "users"
+ #:environment-variables
+ ;; Use an appropriate locale so that hledger-dashboard
+ ;; can read the UTF-8 ledger file.
+ (cons* (string-append
+ "LC_ALL=" #$(locale-definition-name
+ (car locale-definitions)))
+ (default-environment-variables))))
(stop #~(make-kill-destructor)))))
(service unattended-upgrade-service-type