mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
system: Export default bash-profile.
gnu/system/shadow.scm (%default-bash-profile): Extract from default-skeletons, export. (default-skeletons): Use %default-bash-profile. Change-Id: I45641b1091daee3495a5f92bdc1a63050e0cc59e
This commit is contained in:
parent
2f3d6ff968
commit
cdcb2e78d2
1 changed files with 9 additions and 5 deletions
|
@ -64,6 +64,7 @@ (define-module (gnu system shadow)
|
|||
user-group-system?)
|
||||
|
||||
#:export (%default-bashrc
|
||||
%default-bash-profile
|
||||
default-skeletons
|
||||
skeleton-directory
|
||||
%base-groups
|
||||
|
@ -147,11 +148,8 @@ (define %default-bashrc
|
|||
alias grep='grep --color=auto'
|
||||
alias ip='ip -color=auto'\n"))
|
||||
|
||||
(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 (plain-file "bash_profile" "\
|
||||
(define %default-bash-profile
|
||||
(plain-file "bash_profile" "\
|
||||
# Set up Guix Home profile
|
||||
if [ -f ~/.profile ]; then . ~/.profile; fi
|
||||
|
||||
|
@ -167,6 +165,12 @@ (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 (plain-file "zprofile" "\
|
||||
# Honor system-wide environment variables
|
||||
|
|
Loading…
Reference in a new issue