diff options
author | Timo Wilken | 2023-05-28 23:34:13 +0200 |
---|---|---|
committer | Timo Wilken | 2023-05-28 23:44:17 +0200 |
commit | 4484a7768efa027b764d377f0d2a6ac934e21508 (patch) | |
tree | f9465d1aa53ec6656b3f8a9f8b25e3b03bee4a6d /tw/system | |
parent | 9447bb2ec9bc9e6fa75c9709adf485151032076a (diff) |
Fix locale issue for hledger-dashboard
Diffstat (limited to 'tw/system')
-rw-r--r-- | tw/system/vin.scm | 9 |
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 |