| 15 Apr 2026 |
lewo | pinage404: Tu as cette erreur pour deux raisons:
- tu n'accèdes pas au binary cache cache.nixos.org qui contient bien ce que tu cherches:
curl https://cache.nixos.org/2crhfrb8pqy61d32jaajpw33jjmny6xz.narinfo
StorePath: /nix/store/2crhfrb8pqy61d32jaajpw33jjmny6xz-catalog.xml
- Le fichier que tu souhaites n'existe plus:
curl -I https://docbook.org/xml/4.2/catalog.xml
HTTP/2 404
Il faut donc que tu regardes pourquoi tu n'accèdes pas au binary cache. Tu peux essayer de reproduire avec curl https://cache.nixos.org/2crhfrb8pqy61d32jaajpw33jjmny6xz.narinfo. Tu peux également regarder ce que tu as comme substituters dans le fichier /etc/nix/nix.conf.
| 04:50:16 |
pinage404 | code de sortie 0, tout semble ok
nix-store --verify --check-contents --repair
reading the Nix store...
checking path existence...
checking link hashes...
checking store hashes...
| 09:58:43 |
pinage404 | curl fonctionne parfaitement
# WARNING: this file is generated from the nix.* options in
# your NixOS configuration, typically
# /etc/nixos/configuration.nix. Do not edit it!
allowed-users = *
auto-optimise-store = false
builders =
builders-use-substitutes = true
cores = 0
experimental-features = nix-command flakes
max-free = 5G
max-jobs = auto
min-free = 100M
require-sigs = true
sandbox = true
sandbox-fallback = false
substituters = https://handy-computer.cachix.org https://cache.nixos.org/
system-features = nixos-test benchmark big-parallel kvm
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE= cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g= nix-on-droid.cachix.org-1:56snoMJTXmDRC1Ei24CmKoUqvHJ9XCp+nidK7qkMQrU= handy-computer.cachix.org-1:Sihzctn6DC0CJM5QeL+9nBEL3CL8c33m777C+eIv748= pinage404-nix-sandboxes.cachix.org-1:5zGRK2Ou+C27E7AdlYo/s4pow/w39afir+KRz9iWsZA= git-gamble.cachix.org-1:afbVJAcYMKSs3//uXw3HFdyKLV66/KvI4sjehkdMM/I= pinage404.cachix.org-1:pHeqko9YZ1p49z4pn/UbI7KBIlbHBLENRmZHuC8gQD0=
trusted-substituters = https://cache.nixos.org https://nix-community.cachix.org https://numtide.cachix.org https://cache.garnix.io https://nix-on-droid.cachix.org https://handy-computer.cachix.org https://pinage404-nix-sandboxes.cachix.org https://git-gamble.cachix.org https://pinage404.cachix.org
trusted-users = root @wheel
warn-large-path-threshold = 2M
extra-platforms = armv6l-linux armv7l-linux aarch64-linux i686-linux i686-windows x86_64-windows i686-linux
extra-sandbox-paths = /run/binfmt /nix/store/nilkcchyj1l9ix3ww4p1fby7v00dwkpc-bash-interactive-5.3p3 /nix/store/3a47xyilailqh6mg6lr7ya0m8gvdbb7c-qemu-arm-binfmt-P /nix/store/3a47xyilailqh6mg6lr7ya0m8gvdbb7c-qemu-arm-binfmt-P /nix/store/6niw0jwxnbw751fgyd7pz7l8ld9skggi-qemu-aarch64-binfmt-P /nix/store/6fik6n206lih0dz024x02zw1vy04xxdl-exec /nix/store/yw5s13syb5bnnbhvqljf8pmm25276s8y-wine-10.0 /nix/store/mbk5205iyn04hq9angp4zdd76zj3dig5-wine64-10.0
extra-experimental-features = nix-command flakes
je suis surpris qu'Handy soit en premier dans ma config générée alors que je ne l'ai pas déclaré en premier https://gitlab.com/pinage404/dotfiles/-/blob/e50914b33c617eb36664ffb9f1dd530cc921e4e1/nix_cache/cache.nix#L8
pour utiliser un cache, je ne sais jamais quelles clés je dois remplir : 1 des 3, les 3 :
nix.settings.substituters
nix.settings.trusted-substituters
nix.settings.trusted-public-keys
exemple : https://gitlab.com/pinage404/dotfiles/-/blob/e50914b33c617eb36664ffb9f1dd530cc921e4e1/nix_cache/nix-on-droid.nix | 10:05:41 |
nim65s | https://nix.dev/manual/nix/2.28/command-ref/conf-file.html?highlight=substituters#file-format
A configuration setting usually overrides any previous value. However, for settings that take a list of items, you can prefix the name of the setting by extra- to append to the previous value.
donc quand je veux des trucs en premier je les met dans x, et quand je les veux après dans extra-x
| 10:10:19 |
nim65s | sur les substituers, y’a des prorités | 10:11:25 |
nim65s | et pour la différence entre substituters et trusted-substituters, si je comprends bien, c’est que trusted-substituters est utilisable par n’importe quel user, mais substituters uniquement par un trusted-user: https://nix.dev/manual/nix/2.28/command-ref/conf-file.html#conf-substituters
At least one of the following conditions must be met for Nix to use a substituter:
- The substituter is in the trusted-substituters list
- The user calling Nix is in the trusted-users list
In addition, each store path should be trusted as described in trusted-public-keys
| 10:13:22 |
pinage404 | je ne vois pas le cas d'usage des substituters
ça veut dire quelqu'un qui a les droits root et peut modifier la config, fait confiance pour ajouter ce substituter, mais ne fait pas confiance aux users pour l'utiliser (sauf s'iels sont trusted) ? | 10:18:12 |
Alex | C'est soit l'un ou l'autre. Il n'est pas nécessaire que l'utilisateur soit dans trusted-users pour qu'il/elle puisse utiliser un substituteur dans trusted-substituters.
Le deuxième cas est pour les commandes qui modifient --option substituters.
Ce qui est important, c'est qu'il faut être privilégié par l'une des deux conditions afin d'ajouter des outputs au Nix store sans faire le build.
Sinon, n'importe-qui pourrait y ajouter des outputs qui ne correspondent pas à la dérivation d'origine (par malice ou par négligence). | 13:06:01 |
pinage404 | je ne comprends pas le cas où il serait préférable d'ajouter un substituter et un trusted-users plutot que juste un trusted-substituter | 16:55:31 |
Alex | Par exemple pour tester un nouveau substituter sans avoir à modifier nix.conf. | 16:56:33 |
pinage404 | donc l'option nix.settings.substituters ne sert à rien ? | 16:57:25 |
Alex | L'option peut être modifié par la commande avec --option | 16:58:59 |
pinage404 | on peut modifier n'importe quelle option de la sorte ? | 17:45:02 |
Alex | Ça dépend. Quelques options nécessitent être dans trusted-users pour pouvoir les modifier de telle sorte. | 17:46:45 |
| 16 Apr 2026 |
| Samæ joined the room. | 21:33:30 |
Samæ | Jraime lra francographie | 21:36:29 |
| 26 May 2021 |
| @grahamc:nixos.org set the history visibility to "world_readable". | 19:34:08 |
| @grahamc:nixos.org changed the room name to "" from "". | 19:34:08 |
| @grahamc:nixos.org invited immae. | 19:34:18 |
| @grahamc:nixos.org invited samueldr. | 19:34:19 |
| samueldr joined the room. | 19:40:10 |
| immae joined the room. | 19:40:42 |
| @grahamc:nixos.orgchanged room power levels. | 20:09:05 |
| @grahamc:nixos.orgchanged room power levels. | 20:09:10 |
| samueldr set the room name to "Nix ♥ la francophonie". | 20:09:55 |
| samueldr set the room topic to "Salon francographe de NixOS". | 20:09:56 |
| afontain joined the room. | 20:30:26 |
| samueldr changed their display name from samueldr to samueldr. | 21:05:31 |
| Room Avatar Renderer. | 21:46:37 |
| 27 May 2021 |
| nf joined the room. | 01:29:16 |