.local/bin/nyxt: Re-enable containerization.

master
Pierre Neidhardt 2020-11-29 11:38:30 +01:00
parent 09a18bb012
commit d36ef1398f
1 changed files with 21 additions and 10 deletions

View File

@ -1,13 +1,24 @@
#!/bin/sh
## TODO: Use Guix version when recent enough.
# guix environment --container --network --preserve='^DISPLAY$' --expose=/etc/ssl/certs \
# --expose="$HOME/.config/nyxt/" \
# --expose="$HOME/common-lisp/" \
# --expose="$HOME/.emacs.d/" \
# --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 "$@"
## TODO: Because SBCL does not store its strings in UTF-8, grafting fails.
## Workaround: enable --no-grafts or share the store.
~/common-lisp/nyxt/nyxt "$@"
## TODO: Option to build from source.
## TODO: Share download folder.
guix environment --no-grafts --container --network \
--preserve='^PERSONAL$' --preserve='^DISPLAY$' \
--expose=/etc/ssl/certs \
--expose="$HOME/.config/nyxt/" \
--expose="$HOME/common-lisp/" \
--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 "$@"
## TODO: Fix fonts.
# --expose="$HOME/.guix-profile/" \
# fontconfig font-dejavu --ad-hoc fontconfig font-dejavu nss-certs nyxt coreutils -- nyxt "$@"