feat: set up guix-service and guix-publish-service to share packages in the local network

pull/1/head
anemofilia 2023-08-27 11:16:13 -03:00
parent 88051add33
commit bcba24b242
No known key found for this signature in database
GPG Key ID: 5A8F3D62C87A2B33
1 changed files with 13 additions and 1 deletions

View File

@ -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