mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-28 19:56:59 -06:00
environment: Use inherit for new mapping.
* guix/scripts/environment.scm (override-user-mappings): Use inherit. Change-Id: Iadd9b838f6442a8080998ed7e07414db562068bf Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
e98153b96c
commit
8654aecf74
1 changed files with 2 additions and 3 deletions
|
|
@ -989,9 +989,8 @@ otherwise, return MAPPINGS."
|
|||
(let ((target (file-system-mapping-target mapping)))
|
||||
(if (string-prefix? home target)
|
||||
(file-system-mapping
|
||||
(source (file-system-mapping-source mapping))
|
||||
(target (override-user-dir user home target))
|
||||
(writable? (file-system-mapping-writable? mapping)))
|
||||
(inherit mapping)
|
||||
(target (override-user-dir user home target)))
|
||||
mapping)))
|
||||
mappings)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue