diff options
author | jdlugosz963 <jdlugosz963@gmail.com> | 2023-07-06 21:35:23 +0200 |
---|---|---|
committer | jdlugosz963 <jdlugosz963@gmail.com> | 2023-07-06 21:35:23 +0200 |
commit | f4232b4e088dec9c642e39846ab30e1303f53cb4 (patch) | |
tree | a689fbe28e6083f14b23d38805f440da478dac55 /guix/jd/home | |
parent | d3e54d07cb3d982dac3f641c2a45e92f23349dac (diff) | |
download | dotfiles-f4232b4e088dec9c642e39846ab30e1303f53cb4.tar.gz dotfiles-f4232b4e088dec9c642e39846ab30e1303f53cb4.zip |
Add udiskie and home-xdg-mime home services.
Diffstat (limited to 'guix/jd/home')
-rw-r--r-- | guix/jd/home/services/polkit.scm | 31 | ||||
-rw-r--r-- | guix/jd/home/services/udiskie.scm | 31 |
2 files changed, 62 insertions, 0 deletions
diff --git a/guix/jd/home/services/polkit.scm b/guix/jd/home/services/polkit.scm new file mode 100644 index 0000000..327ee08 --- /dev/null +++ b/guix/jd/home/services/polkit.scm | |||
@@ -0,0 +1,31 @@ | |||
1 | (define-module (jd home services polkit) | ||
2 | #:use-module (gnu packages) | ||
3 | #:use-module (gnu packages polkit) | ||
4 | #:use-module (gnu services) | ||
5 | #:use-module (gnu services configuration) | ||
6 | #:use-module (gnu home services) | ||
7 | #:use-module (gnu home services shepherd) | ||
8 | #:use-module (guix gexp)) | ||
9 | |||
10 | |||
11 | (define (polkit-gnome-profile-service config) | ||
12 | (specifications->packages '("polkit-gnome"))) | ||
13 | |||
14 | (define (polkit-gnome-shepherd-service config) | ||
15 | (list (shepherd-service | ||
16 | (documentation "Polkit gnome service.") | ||
17 | (provision '(polkit-gnome)) | ||
18 | (start #~(make-forkexec-constructor | ||
19 | (list #$(file-append polkit-gnome | ||
20 | "/libexec/polkit-gnome-authentication-agent-1")))) | ||
21 | (stop #~(make-kill-destructor))))) | ||
22 | |||
23 | (define-public home-polkit-gnome-service-type | ||
24 | (service-type (name 'home-polkit-gnome) | ||
25 | (extensions (list (service-extension home-profile-service-type | ||
26 | polkit-gnome-profile-service) | ||
27 | (service-extension home-shepherd-service-type | ||
28 | polkit-gnome-shepherd-service))) | ||
29 | (default-value #f) | ||
30 | (description "Runs the PolicyKit-gnome service."))) | ||
31 | |||
diff --git a/guix/jd/home/services/udiskie.scm b/guix/jd/home/services/udiskie.scm new file mode 100644 index 0000000..ac8a16a --- /dev/null +++ b/guix/jd/home/services/udiskie.scm | |||
@@ -0,0 +1,31 @@ | |||
1 | (define-module (jd home services udiskie) | ||
2 | #:use-module (gnu packages) | ||
3 | #:use-module (gnu packages freedesktop) | ||
4 | #:use-module (gnu services) | ||
5 | #:use-module (gnu services configuration) | ||
6 | #:use-module (gnu home services) | ||
7 | #:use-module (gnu home services shepherd) | ||
8 | #:use-module (guix gexp)) | ||
9 | |||
10 | (define (udiskie-profile-service config) | ||
11 | (specifications->packages '("udiskie"))) | ||
12 | |||
13 | (define (udiskie-shepherd-service config) | ||
14 | (list (shepherd-service | ||
15 | (documentation "udiskie daemon") | ||
16 | (provision '(udiskie)) | ||
17 | (start #~(make-forkexec-constructor | ||
18 | (list #$(file-append udiskie | ||
19 | "/bin/udiskie") | ||
20 | "-t"))) | ||
21 | (stop #~(make-kill-destructor))))) | ||
22 | |||
23 | (define-public home-udiskie-service-type | ||
24 | (service-type (name 'home-udiskie) | ||
25 | (extensions (list (service-extension home-profile-service-type | ||
26 | udiskie-profile-service) | ||
27 | (service-extension home-shepherd-service-type | ||
28 | udiskie-shepherd-service))) | ||
29 | (default-value #f) | ||
30 | (description "Runs udiskie daemon."))) | ||
31 | |||