Make services depend on user-processes
modules/cogd/packages/hardware.scm
4 | 4 | ||
5 | 5 | (define-module (cogd packages hardware)) | |
6 | 6 | ||
7 | - | (use-modules (guix packages) | |
8 | - | (guix gexp) | |
9 | - | (guix build-system pyproject) | |
10 | - | ((gnu packages hardware) #:prefix guix:) | |
11 | - | (gnu packages messaging) | |
12 | - | (gnu packages python-build)) | |
7 | + | (use-modules (gnu packages hardware)) | |
13 | 8 | ||
14 | - | (define-public python-usbrelay | |
15 | - | (package | |
16 | - | (inherit guix:usbrelay) | |
17 | - | (name "python-usbrelay") | |
18 | - | (build-system pyproject-build-system) | |
19 | - | (inputs (list guix:usbrelay)) | |
20 | - | (native-inputs (list python-setuptools python-wheel)) | |
21 | - | (propagated-inputs (list python-paho-mqtt)) | |
22 | - | (arguments | |
23 | - | (list | |
24 | - | #:phases | |
25 | - | #~(modify-phases %standard-phases | |
26 | - | (add-after 'unpack 'install-daemon | |
27 | - | (lambda _ | |
28 | - | (install-file "usbrelayd.8" | |
29 | - | (string-append #$output "/share/man/man8")) | |
30 | - | (install-file "usbrelayd" | |
31 | - | (string-append #$output "/sbin")) | |
32 | - | (chmod (string-append #$output "/sbin/usbrelayd") #o555))) | |
33 | - | (add-after 'install-daemon 'chdir | |
34 | - | (lambda _ | |
35 | - | (chdir "usbrelay_py")))))))) | |
9 | + | (re-export python-usbrelay) |
modules/cogd/services/dns.scm
28 | 28 | (config-file unbound-configuration-config-file | |
29 | 29 | (default #f)) | |
30 | 30 | (requirement unbound-configuration-requirement | |
31 | - | (default '(loopback)))) | |
31 | + | (default '(user-processes loopback)))) | |
32 | 32 | ||
33 | 33 | (define unbound-accounts | |
34 | 34 | (const |
modules/cogd/services/hardware.scm
8 | 8 | (guix gexp) | |
9 | 9 | (guix packages) | |
10 | 10 | (gnu packages admin) | |
11 | + | (gnu packages hardware) | |
11 | 12 | (gnu system shadow) | |
12 | 13 | (gnu services) | |
13 | 14 | (gnu services base) | |
14 | - | (gnu services shepherd) | |
15 | - | (cogd packages hardware)) | |
15 | + | (gnu services shepherd)) | |
16 | 16 | ||
17 | 17 | (export usbrelayd-configuration | |
18 | 18 | usbrelayd-configuration? | |
… | |||
58 | 58 | (list (shepherd-service | |
59 | 59 | (documentation "Run the USB relay daemon.") | |
60 | 60 | (provision '(usbrelayd)) | |
61 | - | (requirement '(mosquitto)) | |
61 | + | (requirement '(user-processes mosquitto)) | |
62 | 62 | (start #~(make-forkexec-constructor | |
63 | 63 | (list #$(file-append | |
64 | 64 | (usbrelayd-configuration-package config) |
modules/cogd/services/pastebin.scm
26 | 26 | make-pastebin-configuration | |
27 | 27 | pastebin-configuration? | |
28 | 28 | (requirement pastebin-configuration-requirement | |
29 | - | (default '(loopback))) | |
29 | + | (default '(user-processes loopback))) | |
30 | 30 | (package pastebin-configuration-package | |
31 | 31 | (default guile-pastebin)) | |
32 | 32 | (data-dir pastebin-configuration-data-dir |