diff options
| author | 宋文武 <iyzsong@member.fsf.org> | 2023-02-08 10:37:35 +0800 |
|---|---|---|
| committer | 宋文武 <iyzsong@member.fsf.org> | 2023-05-12 20:27:06 +0800 |
| commit | 40310efde9b4a4f2cf98081d6cd10f843685ebb6 (patch) | |
| tree | 3f9f31710ee5fb2479df529e8ef222f46b5bdc23 /gnu/system/shadow.scm | |
| parent | 6419ca7fd75afb16cbff5725e99ec8d2e642a078 (diff) | |
system: default-skeletons: Merge search-paths of multiple profiles.
Fixes <https://issues.guix.gnu.org/20255>.
* gnu/system/shadow.scm (default-skeletons)[bash_profile, zprofile]:
Merge search-paths from multiple profiles via "guix package".
Diffstat (limited to 'gnu/system/shadow.scm')
| -rw-r--r-- | gnu/system/shadow.scm | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm index 2bd72d3e960..8d428bf743d 100644 --- a/gnu/system/shadow.scm +++ b/gnu/system/shadow.scm | |||
| @@ -155,11 +155,31 @@ alias grep='grep --color=auto'\n")) | |||
| 155 | if [ -f ~/.profile ]; then . ~/.profile; fi | 155 | if [ -f ~/.profile ]; then . ~/.profile; fi |
| 156 | 156 | ||
| 157 | # Honor per-interactive-shell startup file | 157 | # Honor per-interactive-shell startup file |
| 158 | if [ -f ~/.bashrc ]; then . ~/.bashrc; fi\n")) | 158 | if [ -f ~/.bashrc ]; then . ~/.bashrc; fi |
| 159 | |||
| 160 | # Merge search-paths from multiple profiles, the order matters. | ||
| 161 | eval \"$(guix package --search-paths \\ | ||
| 162 | -p $HOME/.config/guix/current \\ | ||
| 163 | -p $HOME/.guix-profile \\ | ||
| 164 | -p /run/current-system/profile)\" | ||
| 165 | |||
| 166 | # Prepend setuid programs. | ||
| 167 | export PATH=/run/setuid-programs:$PATH | ||
| 168 | ")) | ||
| 159 | (bashrc %default-bashrc) | 169 | (bashrc %default-bashrc) |
| 160 | (zprofile (plain-file "zprofile" "\ | 170 | (zprofile (plain-file "zprofile" "\ |
| 161 | # Honor system-wide environment variables | 171 | # Honor system-wide environment variables |
| 162 | source /etc/profile\n")) | 172 | source /etc/profile |
| 173 | |||
| 174 | # Merge search-paths from multiple profiles, the order matters. | ||
| 175 | eval \"$(guix package --search-paths \\ | ||
| 176 | -p $HOME/.config/guix/current \\ | ||
| 177 | -p $HOME/.guix-profile \\ | ||
| 178 | -p /run/current-system/profile)\" | ||
| 179 | |||
| 180 | # Prepend setuid programs. | ||
| 181 | export PATH=/run/setuid-programs:$PATH | ||
| 182 | ")) | ||
| 163 | (xdefaults (plain-file "Xdefaults" "\ | 183 | (xdefaults (plain-file "Xdefaults" "\ |
| 164 | XTerm*utf8: always | 184 | XTerm*utf8: always |
| 165 | XTerm*metaSendsEscape: true\n")) | 185 | XTerm*metaSendsEscape: true\n")) |
