summaryrefslogtreecommitdiffstats
path: root/guix/jd/desktops/base.scm
diff options
context:
space:
mode:
Diffstat (limited to 'guix/jd/desktops/base.scm')
-rw-r--r--guix/jd/desktops/base.scm34
1 files changed, 26 insertions, 8 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