Subject: [bug#77035] [PATCH v2 1/3] system: /etc/profile: Take care of all default profiles.

From: Ludovic Courtès <[email-masked]>
Date: Tue, 01 Apr 2025 14:25:59 +0200

Hi,

Hilton Chain <[email-masked]> skribis:

> * gnu/system.scm (operating-system-etc-service)[/etc/profile]: Merge search
> paths.
> Take care of all default profiles.
> Address some issues reported by ‘shellcheck’.
> * gnu/system/shadow.scm (%default-bash-profile): Remove duplicated exports.
>
> Change-Id: I0e14d7c0266742e0abf07779e501de0e257c1329

I’m afraid there are too many changes, mostly unrelated here, and mostly
not covered by the commit log.  :-)

Could you split it somewhat and explain?

> +# Merge search paths and set up environment for all default profiles.
> +eval \"$(/run/current-system/profile/bin/guix package \\
> +  --search-paths=prefix \\
> +  --profile=\"$HOME/.config/guix/current\" \\
> +  --profile=\"$HOME/.guix-profile\" \\
> +  --profile=\"$HOME/.guix-home/profile\" \\
> +  --profile=/run/current-system/profile)\"

FWIW, this (invoking ‘guix package’ from /etc/profile) was explicitly
rejected back then:

  https://issues.guix.gnu.org/20255#32

So at least let’s not address it in the middle of other changes.

Thanks,
Ludo’.