guix home: import: Delete duplicate modules when importing.
Two different services might require the same module(s), so delete duplicates when generating the ‘use-modules’ form. * import.scm (manifest->code): Delete duplicate modules. Signed-off-by: Ludovic Courtès <ludo@gnu.org>master
parent
e12e8aad35
commit
256bd71264
|
@ -145,7 +145,8 @@ available."
|
|||
(use-modules (gnu home)
|
||||
(gnu packages)
|
||||
(gnu services)
|
||||
,@(concatenate (map cdr configurations+modules)))
|
||||
,@((compose delete-duplicates concatenate)
|
||||
(map cdr configurations+modules)))
|
||||
,(home-environment-template
|
||||
#:specs specs
|
||||
#:services (map first configurations+modules))))
|
||||
|
@ -190,7 +191,8 @@ available."
|
|||
(gnu home)
|
||||
(gnu packages)
|
||||
(gnu services)
|
||||
,@(concatenate (map cdr configurations+modules)))
|
||||
,@((compose delete-duplicates concatenate)
|
||||
(map cdr configurations+modules)))
|
||||
|
||||
,@transformations
|
||||
|
||||
|
|
Reference in New Issue