local/bin/homeinit: Init Guix manifests.

master
Pierre Neidhardt 2020-01-12 22:12:59 +01:00
parent e77c06f53a
commit 5cec0ad8e1
1 changed files with 11 additions and 4 deletions

View File

@ -232,11 +232,18 @@ if inpath guix; then
unset CURRENT_COMMIT
fi
## TODO: The manifest will uninstall other unspecified packages. Is this
## really what we want?
# export GUIX_PACKAGE_PATH=$HOME/.guix-packages
~/.config/guix/current/bin/guix package --manifest=$HOME/.package-lists/guix-manifest.scm --keep-failed
~/.config/guix/current/bin/guix package --manifest=$HOME/.package-lists/guix-default-manifest.scm --keep-failed
. ~/.guix-profile/etc/profile
for i in main emacs texlive; do
profile=$HOME/.guix-extra-profiles/$i/$i
mkdir -p $(dirname "$profile")
~/.config/guix/current/bin/guix package --manifest=$HOME/.package-lists/guix-$i-manifest.scm --keep-failed --profile="$profile"
if [ -f "$profile"/etc/profile ]; then
. "$profile"/etc/profile
fi
unset profile
done
fi
section "Quicklisp"