-
Notifications
You must be signed in to change notification settings - Fork 0
/
home-example.scm
31 lines (29 loc) · 1002 Bytes
/
home-example.scm
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
(use-modules (gnu home)
(gnu home services)
(gnu home services shepherd)
(gnu home services shells)
(gnu packages emacs)
(gnu packages syncthing)
(gnu services)
(gnu services shepherd)
(guix gexp))
(define my-syncthing-service
(shepherd-service
(provision '(syncthing))
(documentation "Run and control syncthing.")
(start #~(make-forkexec-constructor
(list #$(file-append syncthing "/bin/syncthing")
"-no-browser")))
(stop #~(make-kill-destructor))))
(home-environment
(packages (list emacs syncthing))
(services
(list
(service home-bash-service-type
(home-bash-configuration
(environment-variables
'(("VISUAL" . "emacsclient")
("EDITOR" . "emacsclient")))))
(simple-service 'my-services
home-shepherd-service-type
(list my-syncthing-service)))))