Install xmodmap when the xmodmap service is used

This commit is contained in:
Tom Willemse 2022-04-05 00:59:59 -07:00
parent 19043b82ae
commit 7f5381687d

View file

@ -33,13 +33,19 @@
"Xmodmap" "Xmodmap"
(serialize-xmodmap-config config))))) (serialize-xmodmap-config config)))))
(define (add-xmodmap-packages config)
(list (home-xmodmap-configuration-package config)))
(define home-xmodmap-service-type (define home-xmodmap-service-type
(service-type (service-type
(name 'home-xmodmap) (name 'home-xmodmap)
(extensions (extensions
(list (service-extension (list (service-extension
home-files-service-type home-files-service-type
xmodmap-home-files))) xmodmap-home-files)
(service-extension
home-profile-service-type
add-xmodmap-packages)))
(compose identity) (compose identity)
(default-value (home-xmodmap-configuration)) (default-value (home-xmodmap-configuration))
(description "Install and configure Xmodmap."))) (description "Install and configure Xmodmap.")))