diff options
| author | 2025-11-28 15:26:21 -0800 | |
|---|---|---|
| committer | 2025-11-28 15:26:21 -0800 | |
| commit | 5f00db5b406102a653ca27c22b1aea0990d8ef17 (patch) | |
| tree | 8c0547bb26b5ecbbb4087e7060e612075fd187b1 | |
| parent | db8f513aeae58604aba0b3383b9534b66be32779 (diff) | |
| download | new-dotfiles-5f00db5b406102a653ca27c22b1aea0990d8ef17.tar.gz new-dotfiles-5f00db5b406102a653ca27c22b1aea0990d8ef17.zip | |
services/xdisorg: Add option for sxhkd extensions
| -rw-r--r-- | oni/home/services/xdisorg.scm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/oni/home/services/xdisorg.scm b/oni/home/services/xdisorg.scm index b4e7bd3..1c013a3 100644 --- a/oni/home/services/xdisorg.scm +++ b/oni/home/services/xdisorg.scm @@ -73,6 +73,11 @@ (text-config '()) "Extra configuration.")) +(define-configuration home-sxhkd-extension + (configurations + (text-config '()) + "Extra configuration.")) + (define (add-sxhkd-packages config) (list (home-sxhkd-configuration-package config))) @@ -82,6 +87,13 @@ "sxhkdrc" (serialize-text-config config (home-sxhkd-configuration-configurations config)))))) +(define (home-sxhkd-extensions original-config extension-configs) + (home-sxhkd-configuration + (inherit original-config) + (configurations + (apply append (home-sxhkd-configuration-configurations original-config) + (map home-sxhkd-extension-configurations extension-configs))))) + (define (home-sxhkd-shepherd-service config) (list (shepherd-service @@ -115,5 +127,6 @@ home-run-on-change-service-type reload-sxhkd-config-gexp))) (compose identity) + (extend home-sxhkd-extensions) (default-value (home-sxhkd-configuration)) (description "Install and configure sxhkd."))) |
