local/bin/homeinit: Install default profile like other profiles.
parent
09256e6de8
commit
2f352b8cda
|
@ -219,11 +219,16 @@ guix_install_profile() {
|
||||||
if [ -f "$manifest"]; then
|
if [ -f "$manifest"]; then
|
||||||
warning "Manifest $manifest not found."
|
warning "Manifest $manifest not found."
|
||||||
else
|
else
|
||||||
profile=$HOME/.guix-extra-profiles/$i/$i
|
if [ "$i" = "default"]; then
|
||||||
mkdir -p $(dirname "$profile")
|
~/.config/guix/current/bin/guix package --manifest="$manifest" --keep-failed --substitute-urls="$SUBSTITUTE_URLS"
|
||||||
~/.config/guix/current/bin/guix package --manifest=$HOME/.package-lists/guix-$i-manifest.scm --keep-failed --profile="$profile" --substitute-urls="$SUBSTITUTE_URLS"
|
. ~/.guix-profile/etc/profile
|
||||||
if [ -f "$profile"/etc/profile ]; then
|
else
|
||||||
. "$profile"/etc/profile
|
profile=$HOME/.guix-extra-profiles/$i/$i
|
||||||
|
mkdir -p $(dirname "$profile")
|
||||||
|
~/.config/guix/current/bin/guix package --manifest="$manifest" --keep-failed --profile="$profile" --substitute-urls="$SUBSTITUTE_URLS"
|
||||||
|
if [ -f "$profile"/etc/profile ]; then
|
||||||
|
. "$profile"/etc/profile
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -236,10 +241,7 @@ if inpath guix; then
|
||||||
hash guix
|
hash guix
|
||||||
fi
|
fi
|
||||||
|
|
||||||
~/.config/guix/current/bin/guix package --manifest=$HOME/.package-lists/guix-default-manifest.scm --keep-failed --substitute-urls="$SUBSTITUTE_URLS"
|
for i in default main emacs next texlive; do
|
||||||
. ~/.guix-profile/etc/profile
|
|
||||||
|
|
||||||
for i in main emacs next texlive; do
|
|
||||||
guix_install_profile "$i"
|
guix_install_profile "$i"
|
||||||
done
|
done
|
||||||
if $is_laptop; then
|
if $is_laptop; then
|
||||||
|
|
Loading…
Reference in New Issue