blob: 7a86c602200dd5f82fd92fe2056e3dc31d16fe51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
(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"
,(mixed-text-file
"config"
(serialize-text-config config (home-wezterm-configuration-configurations config))))))
(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.")))
|