summaryrefslogtreecommitdiff
path: root/suweren/home/services.scm
blob: 202deee9daf58df0008bbacf02951356783bce0b (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
(define-module (suweren home services)
  #:use-module (gnu home services)
  #:use-module (gnu home services shells)
  #:use-module (gnu services)
  #:use-module (guix gexp))

(define-public suweren-home-bash-configuration
  (let ((bashrc (list (local-file "bashrc"
				  "bashrc")))
	(bash-profile (list (local-file "bash-profile"
					"bash-profile"))))
    (home-bash-configuration (bashrc bashrc)
			     (bash-profile bash-profile))))

;; deprecated
(define-public emacs-configuration
  (let* ((emacs-configuration-file (local-file "emacs-configuration.el"))
	 (emacs-gnus-file (local-file "emacs-gnus.el"))
	 (emacs-init-file (local-file "emacs-init.el"))
	 (emacs-org-file (local-file "emacs-org.el"))
	 (emacs-roam-file (local-file "emacs-roam.el"))

	 (emacs-configuration (list "emacs/configuration.el"
				    emacs-configuration-file))
	 (emacs-gnus (list "emacs/gnus.el"
			   emacs-gnus-file))
	 (emacs-init (list "emacs/init.el"
			   emacs-init-file))
	 (emacs-org (list "emacs/org.el"
			  emacs-org-file))
	 (emacs-roam (list "emacs/roam.el"
			   emacs-roam-file))

	 (emacs-files (list emacs-configuration
			    emacs-gnus
			    emacs-init
			    emacs-org
			    emacs-roam)))
    (simple-service 'suweren-home-xdg-configuration-files
		    home-xdg-configuration-files-service-type
		    emacs-files)))