aboutsummaryrefslogtreecommitdiffstats
path: root/oni
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-04-05 00:59:59 -0700
committerGravatar Tom Willemse2022-04-05 00:59:59 -0700
commit7f5381687d106e8b5c7b571154a771e2f2998e3e (patch)
treefc3e9e587868386775237f1d1606f99f212cd3ef /oni
parent19043b82ae5091241b060a62264dd2380099f8e2 (diff)
downloadnew-dotfiles-7f5381687d106e8b5c7b571154a771e2f2998e3e.tar.gz
new-dotfiles-7f5381687d106e8b5c7b571154a771e2f2998e3e.zip
Install xmodmap when the xmodmap service is used
Diffstat (limited to 'oni')
-rw-r--r--oni/home/services/xmodmap.scm8
1 files changed, 7 insertions, 1 deletions
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.")))