From d36ef1398f08bbddc9f6fd1181d0d4961df1ea0e Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Sun, 29 Nov 2020 11:38:30 +0100 Subject: [PATCH] .local/bin/nyxt: Re-enable containerization. --- .local/bin/nyxt | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.local/bin/nyxt b/.local/bin/nyxt index 8a2ab348..01cbf3e9 100755 --- a/.local/bin/nyxt +++ b/.local/bin/nyxt @@ -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 "$@"