summaryrefslogtreecommitdiff
path: root/services/sway.scm
blob: 018144f5f71808037975112482382fbe4e0a9f2e (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
(add-to-load-path "./services")

(define-module (sway)
  #:use-module (gnu)
  #:use-module (gnu home)
  #:use-module (gnu home services)
  #:use-module (gnu home services shells))

(define-public sway-service-type
  (service-type
   (name 'sway)
   (extensions
    `(,(service-extension home-profile-service-type
			(lambda (_)
			  (map specification->package
			       '("sway"
				 "waybar"))))))
   (description "Sway Window Manager installation.")
   (default-value #f)))

(define-public sway-configuration
  (simple-service 'configuration-files home-files-service-type
		  `((".config/sway/config" ,(local-file "../sway.config"))
		    (".config/waybar/config" ,(local-file "../waybar.config")))))