.local/bin/nyxt: Add GPG support.

master
Pierre Neidhardt 2020-11-30 09:43:12 +01:00
parent bfa4b01917
commit 89e1a8d416
1 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,8 @@
#!/bin/sh
## Symlinks are not followed, so we must make sure to expose them directly and
## not just the parent directory.
## TODO: Because SBCL does not store its strings in UTF-8, grafting fails.
## Workaround: enable --no-grafts or share the store.
@ -15,9 +18,14 @@ guix environment --no-grafts --container --network \
--expose="$HOME/.emacs.d/init.el" \
--expose="$HOME/.emacs.d/lisp/" \
--expose="$PERSONAL/bookmarks/engines.el" \
--share="$HOME/.local/share/nyxt/"="$HOME/.local/share/nyxt/" \
--share="$PERSONAL/bookmarks/bookmarks.lisp.gpg"="$PERSONAL/bookmarks/bookmarks.lisp.gpg" \
--ad-hoc nss-certs nyxt -- nyxt "$@"
--expose="$HOME/.gnupg/gpg.conf" \
--expose="$HOME/.gnupg/gpg-agent.conf" \
--expose="$HOME/.gnupg/" \
--share="$(gpgconf --list-dirs | grep socketdir | cut -f2 -d:)" \
--share="$HOME/.local/share/nyxt/" \
--share="$PERSONAL/bookmarks/bookmarks.lisp.gpg" \
--share="$PERSONAL/bookmarks/auto-mode-rules.lisp.gpg" \
--ad-hoc gnupg nss-certs nyxt -- nyxt "$@"
## TODO: Fix fonts.
# --expose="$HOME/.guix-profile/" \