aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/guix/home.scm8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/guix/home.scm b/etc/guix/home.scm
index 0b9ae36..bf739f4 100644
--- a/etc/guix/home.scm
+++ b/etc/guix/home.scm
@@ -430,13 +430,17 @@ libraries/software/operating systems
#:tests? #f ; no tests
#:phases
#~(modify-phases %standard-phases
- (add-after 'unpack 'fix-hardcoded-api-keys
+ (add-after 'unpack 'fix-some-hardcoded-strings
(lambda _
(substitute* "tg/config.py"
(("API_ID = .*")
"API_ID = os.getenv(\"TG_API_ID\")\n")
(("API_HASH = .*")
- "API_HASH = os.getenv(\"TG_API_HASH\")\n")))))))
+ "API_HASH = os.getenv(\"TG_API_HASH\")\n")
+ (("NOTIFY_CMD = .*")
+ "NOTIFY_CMD = \"notify-send -a tg -i {icon_path} {title} '{subtitle}|{msg}'\"\n")
+ (("LONG_MSG_CMD = .*")
+ "LONG_MSG_CMD = \"vi {file_path}\"\n")))))))
(native-inputs
(list
python-poetry-core))