diff options
author | EuAndreh <eu@euandre.org> | 2023-09-23 11:23:44 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-09-23 11:23:44 -0300 |
commit | bf2ec1b70d7438a555a6957fb9dee221c668800c (patch) | |
tree | 8c2285688c3e0f52f7d9ad33d219cfcda49414ed | |
parent | etc/nix/configuration.nix: Add "intel-gpu-tools" package (diff) | |
download | dotfiles-bf2ec1b70d7438a555a6957fb9dee221c668800c.tar.gz dotfiles-bf2ec1b70d7438a555a6957fb9dee221c668800c.tar.xz |
etc/guix/home.scm: Fix more hardcoded values in tg(1)
-rw-r--r-- | etc/guix/home.scm | 8 |
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)) |