aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-07-18 02:10:01 -0700
committerGravatar Tom Willemse2026-08-26 23:04:25 -0700
commit9cf56211b4f3a39a830acaedf4c855d1ead6efdc (patch)
treeac24bfb70632f1e06280507c3f5d765d672ea0b1
parent5306c18432be7a789973fd39c5f9cd5bb60bea2b (diff)
downloadnew-dotfiles-9cf56211b4f3a39a830acaedf4c855d1ead6efdc.tar.gz
new-dotfiles-9cf56211b4f3a39a830acaedf4c855d1ead6efdc.zip
sway: Move sway configuration
-rw-r--r--oni/home/config/data.scm6
-rw-r--r--oni/home/services/guile-xyz.scm7
2 files changed, 10 insertions, 3 deletions
diff --git a/oni/home/config/data.scm b/oni/home/config/data.scm
index 11bfbaf..9ba3d81 100644
--- a/oni/home/config/data.scm
+++ b/oni/home/config/data.scm
@@ -186,4 +186,8 @@
(exclude '("COMMIT_EDITMSG$"
"TAG_EDITMSG$"))))
- (service home-guile-swayer-service-type)))))
+ (service home-guile-swayer-service-type
+ (home-guile-swayer-configuration
+ (extra-config
+ (list
+ (local-file "../../../sway/.config/sway/init.scm")))))))))
diff --git a/oni/home/services/guile-xyz.scm b/oni/home/services/guile-xyz.scm
index 3b72309..1dca5c8 100644
--- a/oni/home/services/guile-xyz.scm
+++ b/oni/home/services/guile-xyz.scm
@@ -11,7 +11,10 @@
(define-configuration home-guile-swayer-configuration
(package
(package guile-swayer)
- "Package to use for setting Guile-Swayer"))
+ "Package to use for setting Guile-Swayer")
+ (extra-config
+ (text-config '())
+ "Configuration for sway."))
(define (add-guile-swayer-packages config)
(list (home-guile-swayer-configuration-package config)))
@@ -24,7 +27,7 @@
"\n"
"exec_always \"guile ~/.config/sway/init.scm\"\n"))
("sway/init.scm"
- ,(local-file "../../../sway/.config/sway/init.scm"))))
+ ,(serialize-text-config config (home-guile-swayer-configuration-extra-config config)))))
(define home-guile-swayer-service-type
(service-type (name 'home-guile-swayer)