44 lines
1.4 KiB
Scheme
44 lines
1.4 KiB
Scheme
|
(define-module (oni home services stumpwm)
|
||
|
#:use-module ((gnu services configuration)
|
||
|
#:select (serialize-package
|
||
|
define-configuration))
|
||
|
#:use-module ((gnu packages wm)
|
||
|
#:select (stumpwm))
|
||
|
#:use-module ((gnu home services)
|
||
|
#:select (service-type
|
||
|
service-extension
|
||
|
home-profile-service-type
|
||
|
home-xdg-configuration-files-service-type))
|
||
|
#:use-module ((guix gexp)
|
||
|
#:select (local-file))
|
||
|
#:use-module ((guix packages)
|
||
|
#:select (package?))
|
||
|
|
||
|
#:export (home-stumpwm-service-type
|
||
|
home-stumpwm-configuration))
|
||
|
|
||
|
(define-configuration home-stumpwm-configuration
|
||
|
(package
|
||
|
(package stumpwm)
|
||
|
"Package to use for setting Stumpwm"))
|
||
|
|
||
|
(define (add-stumpwm-packages config)
|
||
|
(list (home-stumpwm-configuration-package config)))
|
||
|
|
||
|
(define (home-stumpwm-config-files config)
|
||
|
`(("stumpwm/config" ,(local-file "stumpwm/config"))))
|
||
|
|
||
|
(define home-stumpwm-service-type
|
||
|
(service-type
|
||
|
(name 'home-stumpwm)
|
||
|
(extensions
|
||
|
(list (service-extension
|
||
|
home-profile-service-type
|
||
|
add-stumpwm-packages)
|
||
|
(service-extension
|
||
|
home-xdg-configuration-files-service-type
|
||
|
home-stumpwm-config-files)))
|
||
|
(compose identity)
|
||
|
(default-value (home-stumpwm-configuration))
|
||
|
(description "Install and configure stumpwm.")))
|