From 7f5381687d106e8b5c7b571154a771e2f2998e3e Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 5 Apr 2022 00:59:59 -0700 Subject: Install xmodmap when the xmodmap service is used --- oni/home/services/xmodmap.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'oni/home') diff --git a/oni/home/services/xmodmap.scm b/oni/home/services/xmodmap.scm index 53df3e5..ca6d80c 100644 --- a/oni/home/services/xmodmap.scm +++ b/oni/home/services/xmodmap.scm @@ -33,13 +33,19 @@ "Xmodmap" (serialize-xmodmap-config config))))) +(define (add-xmodmap-packages config) + (list (home-xmodmap-configuration-package config))) + (define home-xmodmap-service-type (service-type (name 'home-xmodmap) (extensions (list (service-extension home-files-service-type - xmodmap-home-files))) + xmodmap-home-files) + (service-extension + home-profile-service-type + add-xmodmap-packages))) (compose identity) (default-value (home-xmodmap-configuration)) (description "Install and configure Xmodmap."))) -- cgit v1.2.3-54-g00ecf