diff options
author | Amin Bandali <mab@gnu.org> | 2020-03-13 21:22:30 -0400 |
---|---|---|
committer | Amin Bandali <mab@gnu.org> | 2020-03-13 21:22:30 -0400 |
commit | e72d011ddff3da64f76dc70789603a033efdf74c (patch) | |
tree | 08260c432be664cb5c5fecf749d0a5834cc9a7fe /.profile | |
parent | d6c37a13aed6c5039e795f14081a6ff2f4cb1959 (diff) | |
download | configs-e72d011ddff3da64f76dc70789603a033efdf74c.tar.gz configs-e72d011ddff3da64f76dc70789603a033efdf74c.tar.xz configs-e72d011ddff3da64f76dc70789603a033efdf74c.zip |
guix: break down monolithic profile into multiple smaller profiles
super useful for decoupling larger packages like icecat, libreoffice,
and texlive from the rest of mostly-smaller packages, so i could
easily `guix pull' and update the smaller ones as frequently as i like
Diffstat (limited to '.profile')
-rw-r--r-- | .profile | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -20,6 +20,9 @@ fi export PATH export INFOPATH +export MY_GUIX_MANIFESTS="$HOME/.config/guix/manifest" +export MY_GUIX_PROFILES="$HOME/.config/guix/profile" + export XDG_CONFIG_HOME="$HOME/.config" export XDG_DATA_HOME="$HOME/.local/share" @@ -60,6 +63,15 @@ if [ -z "$IS_GUIX_SYSTEM" ]; then fi fi +for p in $MY_GUIX_PROFILES/*; do + profile=$p/$(basename "$p") + if [ -f "$profile"/etc/profile ]; then + GUIX_PROFILE="$profile" + . "$GUIX_PROFILE"/etc/profile + fi + unset profile +done + # start an ssh-agent (with guix's openssh) if [ -z "$IS_GUIX_SYSTEM" ]; then if ! pgrep -u "$USER" ssh-agent > /dev/null; then |