Re-added metznet-system-service

master
Noah Metz 2022-08-19 23:02:55 -06:00
parent b9a23703e8
commit 266367f809
1 changed files with 25 additions and 0 deletions

@ -40,6 +40,31 @@
(home-page "http://home.metznet.ca") (home-page "http://home.metznet.ca")
(license licenses:gpl3+))) (license licenses:gpl3+)))
(define-record-type* <metznet-system-configuration>
metznet-system-configuration make-metznet-system-configuration
metznet-system-configuration?
(repo metznet-system-configuration-repo
(default metznet-system))
(directory metznet-system-configuration-directory
(default "/etc/system")))
(define-public metznet-system-activation
(match-lambda
(($ <metznet-system-configuration> repo directory)
#~(begin
(use-modules (guix build utils))
(if (directory-exists? #$directory)
(rmdir #$directory))
(symlink #$repo #$directory)))))
(define-public metznet-system-service-type
(service-type
(name 'metznet-system)
(description "GUIX System service using metznet files")
(extensions (list
(service-extension activation-service-type metznet-system-activation)))
(default-value (metznet-system-configuration))))
(define-public nvim-vimtex (define-public nvim-vimtex
(package (package
(name "nvim-vimtex") (name "nvim-vimtex")