diff --git a/.local/bin/homeinit b/.local/bin/homeinit index ddae0ad5..d216f745 100755 --- a/.local/bin/homeinit +++ b/.local/bin/homeinit @@ -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"