summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-12-31 12:07:25 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-01-17 11:11:10 +0200
commit5ef5095ab101874e1ddee99fabb9c14e30888b9d (patch)
tree37adfa7e931fe409d957253872c20645a1deff78
parent1e8ac2c41bb43338e00179a538cd6f8880a63cdb (diff)
system: default-zprofile: Sync with home zprofile.
The removed fields are already sourced in /etc/profile. * gnu/system/shadow.scm (%default-zprofile): Sync with default zprofile from (gnu home services shells). Change-Id: I419eadf636344e23e8fd2f7006efa81f45527756
-rw-r--r--gnu/system/shadow.scm13
1 files changed, 3 insertions, 10 deletions
diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index 6c8e02953a..8b3958ba5c 100644
--- a/gnu/system/shadow.scm
+++ b/gnu/system/shadow.scm
@@ -174,17 +174,10 @@ export PATH=/run/setuid-programs:$PATH
(define %default-zprofile
(plain-file "zprofile" "\
-# Honor system-wide environment variables
+# Set up the system, user profile, and related variables.
source /etc/profile
-
-# Merge search-paths from multiple profiles, the order matters.
-eval \"$(guix package --search-paths \\
--p $HOME/.config/guix/current \\
--p $HOME/.guix-profile \\
--p /run/current-system/profile)\"
-
-# Prepend setuid programs.
-export PATH=/run/setuid-programs:$PATH
+# Set up the home environment profile.
+source ~/.profile
"))
(define %default-xdefaults