summaryrefslogtreecommitdiff
path: root/gnu/home/services/shells.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/home/services/shells.scm')
-rw-r--r--gnu/home/services/shells.scm50
1 files changed, 25 insertions, 25 deletions
diff --git a/gnu/home/services/shells.scm b/gnu/home/services/shells.scm
index 3e346c3813d..b529c8e798e 100644
--- a/gnu/home/services/shells.scm
+++ b/gnu/home/services/shells.scm
@@ -25,6 +25,7 @@
25 #:use-module (gnu packages bash) 25 #:use-module (gnu packages bash)
26 #:use-module (guix gexp) 26 #:use-module (guix gexp)
27 #:use-module (guix packages) 27 #:use-module (guix packages)
28 #:use-module (guix records)
28 #:use-module (srfi srfi-1) 29 #:use-module (srfi srfi-1)
29 #:use-module (srfi srfi-26) 30 #:use-module (srfi srfi-26)
30 #:use-module (ice-9 match) 31 #:use-module (ice-9 match)
@@ -479,31 +480,30 @@ with text blocks from other extensions and the base service.")
479with text blocks from other extensions and the base service.")) 480with text blocks from other extensions and the base service."))
480 481
481(define (home-bash-extensions original-config extension-configs) 482(define (home-bash-extensions original-config extension-configs)
482 (match original-config 483 (match-record original-config <home-bash-configuration>
483 (($ <home-bash-configuration> _ _ environment-variables aliases 484 (environment-variables aliases bash-profile bashrc bash-logout)
484 bash-profile bashrc bash-logout) 485 (home-bash-configuration
485 (home-bash-configuration 486 (inherit original-config)
486 (inherit original-config) 487 (environment-variables
487 (environment-variables 488 (append environment-variables
488 (append environment-variables 489 (append-map
489 (append-map 490 home-bash-extension-environment-variables extension-configs)))
490 home-bash-extension-environment-variables extension-configs))) 491 (aliases
491 (aliases 492 (append aliases
492 (append aliases 493 (append-map
493 (append-map 494 home-bash-extension-aliases extension-configs)))
494 home-bash-extension-aliases extension-configs))) 495 (bash-profile
495 (bash-profile 496 (append bash-profile
496 (append bash-profile 497 (append-map
497 (append-map 498 home-bash-extension-bash-profile extension-configs)))
498 home-bash-extension-bash-profile extension-configs))) 499 (bashrc
499 (bashrc 500 (append bashrc
500 (append bashrc 501 (append-map
501 (append-map 502 home-bash-extension-bashrc extension-configs)))
502 home-bash-extension-bashrc extension-configs))) 503 (bash-logout
503 (bash-logout 504 (append bash-logout
504 (append bash-logout 505 (append-map
505 (append-map 506 home-bash-extension-bash-logout extension-configs))))))
506 home-bash-extension-bash-logout extension-configs)))))))
507 507
508(define home-bash-service-type 508(define home-bash-service-type
509 (service-type (name 'home-bash) 509 (service-type (name 'home-bash)