shione/nichijou/home/host/siga.scm

26 lines
899 B
Scheme
Raw Permalink Normal View History

2022-08-30 17:04:42 -04:00
(define-module (nichijou home host siga)
#:use-module (gnu home)
#:use-module (srfi srfi-1)
2022-08-30 17:04:42 -04:00
#:use-module ((nichijou home nvim)
2022-09-07 10:26:01 -04:00
#:prefix nvim:)
2022-09-09 10:28:35 -04:00
#:use-module ((nichijou home mpd)
#:prefix mpd:)
2022-09-09 10:31:47 -04:00
#:use-module ((nichijou home mpv)
#:prefix mpv:)
2022-09-07 10:26:01 -04:00
#:use-module ((nichijou home zsh)
#:prefix zsh:))
2022-08-30 17:04:42 -04:00
;; TODO: Think of a better approach to do this.
;; What if a module's get-packages function expects different parameters?
;; Should modules (packages) be forced to implement the same get-packages
;; signature? If so, how?
(define (apply-get-packages m)
(m:get-packages #:foreign-distro? #t))
2022-08-30 17:04:42 -04:00
(home-environment
(packages (fold append
(list)
(map apply-get-packages
(list mpd mpv nvim zsh))))
(services (append mpd:services mpv:services nvim:services zsh:services)))