diff options
| author | Carlo Zancanaro <carlo@zancanaro.id.au> | 2026-07-28 23:56:06 +1000 |
|---|---|---|
| committer | Hilton Chain <hako@ultrarare.space> | 2026-08-07 23:35:32 +0800 |
| commit | 2f1dfef67581980ccf0b2dd49fc057a49e5f5ee2 (patch) | |
| tree | d6fc72aa5ecdc1d77e2ba36398182f237f6753b3 | |
| parent | 03f5f6b7d00c5ead6bbb3a0de14d665e11c961c1 (diff) | |
README.org: Update substitute configuration example to use extensions.
* README.org (Substitutes for nonguix): Replace modify-services with a
simple-service using guix-extension to configure the daemon.
Add signing-key.pub content.
Modified-by: Hilton Chain <hako@ultrarare.space>
| -rw-r--r-- | README.org | 23 |
1 files changed, 10 insertions, 13 deletions
| @@ -512,17 +512,14 @@ of the normal one. Aforementioned application setup is still necessary. | |||
| 512 | A Nonguix substitute server is available at [[https://substitutes.nonguix.org]]. | 512 | A Nonguix substitute server is available at [[https://substitutes.nonguix.org]]. |
| 513 | On Guix System, you can add and authorize this URL in the following way: | 513 | On Guix System, you can add and authorize this URL in the following way: |
| 514 | #+BEGIN_SRC scheme | 514 | #+BEGIN_SRC scheme |
| 515 | (operating-system | 515 | (operating-system |
| 516 | (services (modify-services %desktop-services | 516 | (services (list |
| 517 | (guix-service-type config => (guix-configuration | 517 | (simple-service 'nonguix-substitutes guix-service-type |
| 518 | (inherit config) | 518 | (guix-extension |
| 519 | (substitute-urls | 519 | (substitute-urls (list "https://substitutes.nonguix.org")) |
| 520 | (append (list "https://substitutes.nonguix.org") | 520 | (authorized-keys (list (local-file "./signing-key.pub"))))) |
| 521 | %default-substitute-urls)) | 521 | ...)) |
| 522 | (authorized-keys | 522 | ...) |
| 523 | (append (list (local-file "./signing-key.pub")) | ||
| 524 | %default-authorized-guix-keys)))))) | ||
| 525 | ...) | ||
| 526 | #+END_SRC | 523 | #+END_SRC |
| 527 | 524 | ||
| 528 | Notice that the URL of the server should be specified without a trailing | 525 | Notice that the URL of the server should be specified without a trailing |
| @@ -531,8 +528,8 @@ slash. The file ~signing-key.pub~ should be downloaded directly from | |||
| 531 | 528 | ||
| 532 | Alternatively, you can replace ~(local-file "./signing-key.pub")~ by: | 529 | Alternatively, you can replace ~(local-file "./signing-key.pub")~ by: |
| 533 | #+BEGIN_SRC scheme | 530 | #+BEGIN_SRC scheme |
| 534 | (plain-file "non-guix.pub" | 531 | (plain-file "non-guix.pub" |
| 535 | "<contents of signing-key.pub>") | 532 | "(public-key (ecc (curve Ed25519) (q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#)))") |
| 536 | #+END_SRC | 533 | #+END_SRC |
| 537 | 534 | ||
| 538 | Guix System will only use the substitution server after it has been | 535 | Guix System will only use the substitution server after it has been |
