Install kitty when the kitty service is used

This commit is contained in:
Tom Willemse 2022-04-05 00:54:09 -07:00
parent b11545014e
commit 19043b82ae

View file

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