ambevar-dotfiles/.local/bin/nyxt

33 lines
1.2 KiB
Bash
Executable File

#!/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.
## 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" \
--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/" \
# fontconfig font-dejavu --ad-hoc fontconfig font-dejavu nss-certs nyxt coreutils -- nyxt "$@"