system: Export default zprofile.

* gnu/system/shadow.scm (%default-zprofile): Extract from
default-skeletons, export.
(default-skeletons): Use %default-zprofile.

Change-Id: I6c6e158bca2e462a2eae709fbc2c25a2c7f3f8b4
This commit is contained in:
Efraim Flashner 2023-12-31 10:25:17 +02:00
parent cdcb2e78d2
commit 6a9e4b0639
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -65,6 +65,7 @@ (define-module (gnu system shadow)
#:export (%default-bashrc
%default-bash-profile
%default-zprofile
default-skeletons
skeleton-directory
%base-groups
@ -166,13 +167,8 @@ (define %default-bash-profile
export PATH=/run/setuid-programs:$PATH
"))
(define (default-skeletons)
"Return the default skeleton files for /etc/skel. These files are copied by
'useradd' in the home directory of newly created user accounts."
(let ((profile %default-bash-profile)
(bashrc %default-bashrc)
(zprofile (plain-file "zprofile" "\
(define %default-zprofile
(plain-file "zprofile" "\
# Honor system-wide environment variables
source /etc/profile
@ -185,6 +181,14 @@ (define (default-skeletons)
# Prepend setuid programs.
export PATH=/run/setuid-programs:$PATH
"))
(define (default-skeletons)
"Return the default skeleton files for /etc/skel. These files are copied by
'useradd' in the home directory of newly created user accounts."
(let ((profile %default-bash-profile)
(bashrc %default-bashrc)
(zprofile %default-zprofile)
(xdefaults (plain-file "Xdefaults" "\
XTerm*utf8: always
XTerm*metaSendsEscape: true\n"))