dev.fron.io rc / 654ee4b
system: factors: guix: add os-release and publish Tony Olagbaiye 5 months ago
1 changed file(s) with 26 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
77
88 (define (modify-guix-service services)
99 (cons*
10 (simple-service 'os-release etc-service-type
11 `(("os-release"
12 ,(plain-file
13 "os-release"
14 (string-append
15 "NAME=\"Guix System\"\n"
16 "PRETTY_NAME=\"Guix System\"\n"
17 "VERSION=\"" ((@ (guix packages) package-version)
18 (@ (gnu packages package-management) guix)) "\"\n"
19 "VERSION_ID=\"" ((@ (guix utils) version-major+minor+point)
20 ((@ (guix packages) package-version)
21 (@ (gnu packages package-management) guix))) "\"\n"
22 "ID=guix\n"
23 "HOME_URL=\"https://www.gnu.org/software/guix/\"\n"
24 "SUPPORT_URL=\"https://www.gnu.org/software/guix/help/\"\n"
25 "BUG_REPORT_URL=\"mailto:bug-guix@gnu.org\"\n")))))
1026 (simple-service 'use-gnu-var session-environment-service-type
1127 `(("GUIX_STATE_DIRECTORY" . "/gnu/var")))
28 (service guix-publish-service-type
29 (guix-publish-configuration
30 (host "0.0.0.0")
31 (port 3000)
32 (advertise? #t)))
1233 (modify-services services
1334 (guix-service-type config =>
1435 (guix-configuration
1536 (inherit config)
37 (discover? #t)
1638 (substitute-urls
1739 (append
1840 (list "https://bordeaux.guix.gnu.org"
5779 197 73 59 11 119 140 141 29
5880 212 224 244 29 225 77 227 79))))
5981 ))))
60 (list))))))))
82 (list)))
83 (extra-options
84 (list "--gc-keep-derivations=yes"
85 "--gc-keep-outputs=yes")))))))