blob: bb4916ef6556c1f1ca5bf599115b018732350fc9 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
(define-module (jd home services desktop)
#:use-module (gnu packages)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages networking)
#:use-module (gnu packages syncthing)
#:use-module (gnu packages gnome)
#:use-module (gnu services)
#:use-module (gnu services configuration)
#:use-module (gnu home services)
#:use-module (gnu home services shepherd)
#:use-module (gnu home services desktop)
#:use-module (guix gexp))
(define (desktop-profile-service config)
(specifications->packages '("udiskie"
"syncthing-gtk"
"network-manager-applet")))
(define (desktop-shepherd-services config)
(list (shepherd-service
(documentation "Udiskie daemon with tray.")
(provision '(udiskie))
(start #~(make-forkexec-constructor
(list #$(file-append udiskie
"/bin/udiskie")
"-t")))
(stop #~(make-kill-destructor)))
(shepherd-service
(documentation "Syncthing daemon with tray.")
(provision '(syncthing-gtk))
(start #~(make-forkexec-constructor
(list #$(file-append syncthing-gtk
"/bin/syncthing-gtk")
"-m")))
(stop #~(make-kill-destructor)))
(shepherd-service
(documentation "NetworkManager tray.")
(provision '(nm-applet))
(start #~(make-forkexec-constructor
(list #$(file-append network-manager-applet
"/bin/nm-applet"))))
(stop #~(make-kill-destructor)))))
(define-public home-desktop-service-type
(service-type (name 'home-udiskie)
(extensions (list (service-extension home-profile-service-type
desktop-profile-service)
(service-extension home-shepherd-service-type
desktop-shepherd-services)))
(default-value #f)
(description "Runs desktop services.")))
|