home: Add home-xdg-configuration-files service.
* gnu/home/services.scm (home-xdg-configuration-files): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
d3ef61ab17
commit
e0089dc0e9
@ -38,12 +38,14 @@
|
|||||||
home-profile-service-type
|
home-profile-service-type
|
||||||
home-environment-variables-service-type
|
home-environment-variables-service-type
|
||||||
home-files-service-type
|
home-files-service-type
|
||||||
|
home-xdg-configuration-files-service-type
|
||||||
home-run-on-first-login-service-type
|
home-run-on-first-login-service-type
|
||||||
home-activation-service-type
|
home-activation-service-type
|
||||||
home-run-on-change-service-type
|
home-run-on-change-service-type
|
||||||
home-provenance-service-type
|
home-provenance-service-type
|
||||||
|
|
||||||
home-files-directory
|
home-files-directory
|
||||||
|
xdg-configuration-files-directory
|
||||||
|
|
||||||
fold-home-service-types
|
fold-home-service-types
|
||||||
home-provenance
|
home-provenance
|
||||||
@ -283,6 +285,27 @@ directory containing FILES."
|
|||||||
(description "Files that will be put in
|
(description "Files that will be put in
|
||||||
@file{~~/.guix-home/files}, and further processed during activation.")))
|
@file{~~/.guix-home/files}, and further processed during activation.")))
|
||||||
|
|
||||||
|
(define xdg-configuration-files-directory "config")
|
||||||
|
|
||||||
|
(define (xdg-configuration-files files)
|
||||||
|
"Add config/ prefix to each file-path in FILES."
|
||||||
|
(map (match-lambda
|
||||||
|
((file-path . rest)
|
||||||
|
(cons (string-append xdg-configuration-files-directory "/" file-path)
|
||||||
|
rest)))
|
||||||
|
files))
|
||||||
|
|
||||||
|
(define home-xdg-configuration-files-service-type
|
||||||
|
(service-type (name 'home-files)
|
||||||
|
(extensions
|
||||||
|
(list (service-extension home-files-service-type
|
||||||
|
xdg-configuration-files)))
|
||||||
|
(compose concatenate)
|
||||||
|
(extend append)
|
||||||
|
(default-value '())
|
||||||
|
(description "Files that will be put in
|
||||||
|
@file{~~/.guix-home/files/config}, and further processed during activation.")))
|
||||||
|
|
||||||
(define %initialize-gettext
|
(define %initialize-gettext
|
||||||
#~(begin
|
#~(begin
|
||||||
(bindtextdomain %gettext-domain
|
(bindtextdomain %gettext-domain
|
||||||
|
Loading…
Reference in New Issue
Block a user