summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--guix/jd/desktops/base.scm34
-rw-r--r--guix/jd/home/services/polkit.scm (renamed from guix/jd/home-services/polkit.scm)4
-rw-r--r--guix/jd/home/services/udiskie.scm31
3 files changed, 59 insertions, 10 deletions
diff --git a/guix/jd/desktops/base.scm b/guix/jd/desktops/base.scm
index 5f21c47..69816fe 100644
--- a/guix/jd/desktops/base.scm
+++ b/guix/jd/desktops/base.scm
@@ -1,6 +1,7 @@
1(define-module (jd desktops base) 1(define-module (jd desktops base)
2 #:use-module (jd packages vpn) 2 #:use-module (jd packages vpn)
3 #:use-module (jd home-services polkit) 3 #:use-module (jd home services polkit)
4 #:use-module (jd home services udiskie)
4 #:use-module (jd services polkit) 5 #:use-module (jd services polkit)
5 6
6 #:use-module (gnu) 7 #:use-module (gnu)
@@ -8,6 +9,8 @@
8 #:use-module (gnu home services) 9 #:use-module (gnu home services)
9 #:use-module (gnu home services desktop) 10 #:use-module (gnu home services desktop)
10 #:use-module (gnu home services gnupg) 11 #:use-module (gnu home services gnupg)
12 #:use-module (gnu home services xdg)
13
11 #:use-module (gnu services) 14 #:use-module (gnu services)
12 #:use-module (nongnu packages linux) 15 #:use-module (nongnu packages linux)
13 #:use-module (nongnu system linux-initrd)) 16 #:use-module (nongnu system linux-initrd))
@@ -19,28 +22,43 @@
19 22
20(define-public %jd-base-home-services 23(define-public %jd-base-home-services
21 (list 24 (list
22 (service home-redshift-service-type 25 (service home-xdg-mime-applications-service-type
23 (home-redshift-configuration 26 (home-xdg-mime-applications-configuration
24 (location-provider 'manual) 27 (default '((inode/directory . emacs-desktop.desktop)))
25 (latitude 51.919438) 28 (default '((application/pdf . emacs-desktop.desktop)))
26 (longitude 19.145136))) ;; Poland 29 (desktop-entries
30 (list (xdg-desktop-entry
31 (file "emacs-desktop")
32 (name "Emacs")
33 (type 'application)
34 (config
35 '((exec . "emacsclient -a emacs %u"))))))))
36
37 (service home-redshift-service-type
38 (home-redshift-configuration
39 (location-provider 'manual)
40 (latitude 51.919438)
41 (longitude 19.145136))) ;; Poland
27 42
28 (simple-service 'some-useful-env-vars-service 43 (simple-service 'some-useful-env-vars-service
29 home-environment-variables-service-type 44 home-environment-variables-service-type
30 `(("GTK_THEME" . "Adwaita:dark") 45 `(("GTK_THEME" . "Adwaita:dark")
31 ("VISUAL" . "emacsclient -a \"emacs -Q\"") 46 ("VISUAL" . "emacsclient -a emacs")
32 ("EDITOR" . "emacsclient -a \"emacs -Q\"") 47 ("EDITOR" . "emacsclient -a emacs")
33 ("PATH" . "$HOME/.bin:$HOME/.npm-global/bin:$PATH") 48 ("PATH" . "$HOME/.bin:$HOME/.npm-global/bin:$PATH")
34 ("XDG_DATA_DIRS" . "$XDG_DATA_DIRS:$HOME/.local/share/flatpak/exports/share"))) 49 ("XDG_DATA_DIRS" . "$XDG_DATA_DIRS:$HOME/.local/share/flatpak/exports/share")))
35 50
36 (service home-gpg-agent-service-type 51 (service home-gpg-agent-service-type
37 (home-gpg-agent-configuration 52 (home-gpg-agent-configuration
53 (pinentry-program
54 (file-append pinentry "/bin/pinentry"))
38 (ssh-support? #t) 55 (ssh-support? #t)
39 (default-cache-ttl 28800) 56 (default-cache-ttl 28800)
40 (max-cache-ttl 28800) 57 (max-cache-ttl 28800)
41 (default-cache-ttl-ssh 28800) 58 (default-cache-ttl-ssh 28800)
42 (max-cache-ttl-ssh 28800))) 59 (max-cache-ttl-ssh 28800)))
43 60
61 (service home-udiskie-service-type)
44 (service home-polkit-gnome-service-type))) 62 (service home-polkit-gnome-service-type)))
45 63
46(define-public %jd-base-user-accounts 64(define-public %jd-base-user-accounts
diff --git a/guix/jd/home-services/polkit.scm b/guix/jd/home/services/polkit.scm
index 699f2da..327ee08 100644
--- a/guix/jd/home-services/polkit.scm
+++ b/guix/jd/home/services/polkit.scm
@@ -1,4 +1,4 @@
1(define-module (jd home-services polkit) 1(define-module (jd home services polkit)
2 #:use-module (gnu packages) 2 #:use-module (gnu packages)
3 #:use-module (gnu packages polkit) 3 #:use-module (gnu packages polkit)
4 #:use-module (gnu services) 4 #:use-module (gnu services)
@@ -28,4 +28,4 @@
28 polkit-gnome-shepherd-service))) 28 polkit-gnome-shepherd-service)))
29 (default-value #f) 29 (default-value #f)
30 (description "Runs the PolicyKit-gnome service."))) 30 (description "Runs the PolicyKit-gnome service.")))
31 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