aboutsummaryrefslogtreecommitdiffstats
path: root/oni/home/services
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-06-09 02:09:59 -0700
committerGravatar Tom Willemse2026-06-09 02:09:59 -0700
commitc67fce9dfbdb0c83817f1c973b2ae3934894887b (patch)
treec047ab07bd46b12f74144e2e1fb091b58a5d06b8 /oni/home/services
parent8209b38364ef60ed3293142d680a47b0a1a5ce58 (diff)
downloadnew-dotfiles-c67fce9dfbdb0c83817f1c973b2ae3934894887b.tar.gz
new-dotfiles-c67fce9dfbdb0c83817f1c973b2ae3934894887b.zip
rincewind: Add wezterm configuration
Diffstat (limited to 'oni/home/services')
-rw-r--r--oni/home/services/terminals.scm38
1 files changed, 38 insertions, 0 deletions
diff --git a/oni/home/services/terminals.scm b/oni/home/services/terminals.scm
new file mode 100644
index 0000000..7cef8e2
--- /dev/null
+++ b/oni/home/services/terminals.scm
@@ -0,0 +1,38 @@
+(define-module (oni home services terminals)
+ #:use-module (gnu home services)
+ #:use-module (gnu packages terminals)
+ #:use-module (gnu services configuration)
+ #:use-module (guix gexp)
+ #:use-module (guix packages)
+
+ #:export (home-wezterm-configuration
+ home-wezterm-service-type))
+
+(define-configuration home-wezterm-configuration
+ (package
+ (package wezterm)
+ "Package to use for setting wezterm")
+ (configurations
+ (text-config '())
+ "The rest of the configurations"))
+
+(define (add-wezterm-packages config)
+ (list (home-wezterm-configuration-package config)))
+
+(define (home-wezterm-config-files config)
+ `(("wezterm/wezterm.lua"
+ ,(local-file "../../../wezterm/.config/wezterm/wezterm.lua"))))
+
+(define home-wezterm-service-type
+ (service-type
+ (name 'home-wezterm)
+ (extensions
+ (list (service-extension
+ home-profile-service-type
+ add-wezterm-packages)
+ (service-extension
+ home-xdg-configuration-files-service-type
+ home-wezterm-config-files)))
+ (compose identity)
+ (default-value (home-wezterm-configuration))
+ (description "Install and configure wezterm.")))