feat: set up guix-service and guix-publish-service to share packages in the local network
parent
88051add33
commit
bcba24b242
14
buer.scm
14
buer.scm
|
@ -18,7 +18,7 @@
|
||||||
#|N|# nss)
|
#|N|# nss)
|
||||||
|
|
||||||
(use-service-modules
|
(use-service-modules
|
||||||
#|A|# admin
|
#|A|# admin avahi
|
||||||
#|D|# desktop
|
#|D|# desktop
|
||||||
#|M|# mcron
|
#|M|# mcron
|
||||||
#|N|# networking
|
#|N|# networking
|
||||||
|
@ -165,11 +165,23 @@
|
||||||
(directory "/var/log/guix/drvs")
|
(directory "/var/log/guix/drvs")
|
||||||
(expiry (* 3 30 24 3600))))
|
(expiry (* 3 30 24 3600))))
|
||||||
|
|
||||||
|
#|Avahi service|#
|
||||||
|
(service avahi-service-type
|
||||||
|
(avahi-configuration
|
||||||
|
(wide-area? #t)))
|
||||||
|
|
||||||
#|Guix services|#
|
#|Guix services|#
|
||||||
(service guix-service-type
|
(service guix-service-type
|
||||||
(guix-configuration
|
(guix-configuration
|
||||||
|
(discover? #t)
|
||||||
(build-accounts 16)
|
(build-accounts 16)
|
||||||
(extra-options '("--max-jobs=8" "--cores=4"))))
|
(extra-options '("--max-jobs=8" "--cores=4"))))
|
||||||
|
(service guix-publish-service-type
|
||||||
|
(guix-publish-configuration
|
||||||
|
(port 8080)
|
||||||
|
(advertise? #t)
|
||||||
|
(compression '(("zstd" 3)))
|
||||||
|
(workers 4)))
|
||||||
|
|
||||||
#|Mcron service|#
|
#|Mcron service|#
|
||||||
(simple-service 'mcron-jobs mcron-service-type
|
(simple-service 'mcron-jobs mcron-service-type
|
||||||
|
|
Loading…
Reference in New Issue