summaryrefslogtreecommitdiff
path: root/services/sway.scm
diff options
context:
space:
mode:
authorMarek Paśnikowski <marekpasnikowski@protonmail.com>2023-01-09 13:09:45 +0100
committerMarek Paśnikowski <marekpasnikowski@protonmail.com>2023-01-09 13:09:45 +0100
commit23f9d56c7498d7bf7ea5bd04c9e436fdd2b1c24d (patch)
treed447d12a6bea9b1ab6d75a680acaba9054d2bc14 /services/sway.scm
parent4b6582f9930d9dfed8dd7bc4020b3b84e3ed1104 (diff)
Define sway module
Diffstat (limited to 'services/sway.scm')
-rw-r--r--services/sway.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/services/sway.scm b/services/sway.scm
new file mode 100644
index 0000000..018144f
--- /dev/null
+++ b/services/sway.scm
@@ -0,0 +1,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")))))