diff options
author | jdlugosz963 <jdlugosz963@gmail.com> | 2023-07-05 13:59:28 +0200 |
---|---|---|
committer | jdlugosz963 <jdlugosz963@gmail.com> | 2023-07-05 13:59:28 +0200 |
commit | d85086ed10809cf9864ed0321285d31c0b1f93f0 (patch) | |
tree | 773b7336100281f9f1e1902a4d7006d2731e114e /guix/jd/home-services/polkit.scm | |
parent | 49e0dc10749a34f66a0935c1ded8f6fa6c4b346c (diff) | |
download | dotfiles-d85086ed10809cf9864ed0321285d31c0b1f93f0.tar.gz dotfiles-d85086ed10809cf9864ed0321285d31c0b1f93f0.zip |
Add polkit rules and home services to my guix config.
Diffstat (limited to 'guix/jd/home-services/polkit.scm')
-rw-r--r-- | guix/jd/home-services/polkit.scm | 31 |
1 files changed, 31 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..699f2da --- /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 | |||