| 12 Apr 2026 |
pinage404 | je retente | 19:27:49 |
pinage404 | j'imagine qu'on saura dans une 20aine de minutes au moins | 19:28:02 |
pinage404 | j'ai une autre erreur
error: unable to download 'https://pkg-config.freedesktop.org/releases/pkg-config-0.29.2.tar.gz': HTTP error 200 (curl error: Failure when receiving data from the peer); retrying from offset 1911963 in 303 ms
error: hash mismatch in fixed-output derivation '/nix/store/d1simrxi41d15h88m043y00yd400fpd4-cb41cbfe717e4c00d7bb70035cda5ee5f0ff9341.tar.gz.drv':
specified: sha256-MRuqq3TKcfIahtUWdhAcYhqDiGPkAjS8UTMsDE+/jGU=
got: sha256-lXtfWoZ+q/FvoOqPEcuw6VCpcGl7lQnaGC5dFZ3PpI8=
| 19:56:53 |
nim65s | c’est dans minimal-bootstrap ça | 20:21:43 |
nim65s | c’est pour un x86_64-linux ? | 20:23:45 |
pinage404 | oui ! | 20:32:05 |
pinage404 | j'ai redémarré ma machine, retenter d'appliquer la mise à jour, et j'ai une nouvelle erreur que je n'avais pas encore vu
error: Cannot build '/nix/store/dhpvfy772qdp7sqmgrmac8wzxb84bchh-stage0-posix-1.9.1-source.drv'.
Reason: builder failed with exit code 1.
Output paths:
/nix/store/4f7nm8dblrdy74gmsl62b25rjrh4jcz3-stage0-posix-1.9.1-source
Last 20 log lines:
> error: executing '#
> #
> # Neither your store nor your substituters seems to have:
> #
> # /1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9
> #
> # You can create this path from an already-bootstrapped nixpkgs
> # using the following command:
> #
> # nix-build '<nixpkgs>' -A make-minimal-bootstrap-sources
> #
> # Or, if you prefer, you can create this file using only `git`,
> # `nix`, and `xz`. For the commands needed in order to do this,
> # see `make-bootstrap-sources.nix`. Once you have the manual
> # result, do:
> #
> # nix-store --add-fixed --recursive sha256 ./stage0-posix-1.9.1-source
> #
> # to add it to your store.
> ': No such file or directory
For full logs, run:
nix log /nix/store/dhpvfy772qdp7sqmgrmac8wzxb84bchh-stage0-posix-1.9.1-source.drv
| 21:15:07 |
pinage404 | je sais vraiment pas ce que j'ai fait pour tout casser mon nixos comme ça | 21:16:16 |
pinage404 | j'ai renommé /etc/nix et relancé nix-daemon.socket et nix-daemon.service et relancé
et là, il est en train de compiler bison 🤦 | 21:21:44 |
nim65s | ça vaut peut-être le coup de réactiver une génération plus vieille | 21:22:18 |
pinage404 | bonne idée, je vais reboot sur la génération la plus vielle qui n'a pas encore été garbage collectée | 21:24:58 |
pinage404 | ça a fonctionné ! merci pour l'idée ! | 22:20:14 |
| 13 Apr 2026 |
| @kidanger:kidanger.net left the room. | 06:13:15 |
| 14 Apr 2026 |
pinage404 | je continue d'avoir des erreurs chelou
quand j'essaie d'utiliser pkgs.dockerTools.streamLayeredImage ou pkgs.dockerTools.buildLayeredImage
error: Cannot build '/nix/store/w5cpkahs6ch7gwv9fip2m36hqgwgjcia-catalog.xml.drv'.
Reason: builder failed with exit code 1.
Output paths:
/nix/store/2crhfrb8pqy61d32jaajpw33jjmny6xz-catalog.xml
Last 17 log lines:
>
> trying https://docbook.org/xml/4.2/catalog.xml
> % Total % Received % Xferd Average Speed Time Time Time Current
> Dload Upload Total Spent Left Speed
> 0 0 0 0 0 0 0 0 0
> curl: (22) The requested URL returned error: 404
> Warning: Problem (retrying all errors). Will retry in 1 second. 3 retries left.
> 0 0 0 0 0 0 0 0 0
> curl: (22) The requested URL returned error: 404
> Warning: Problem (retrying all errors). Will retry in 2 seconds. 2 retries
> Warning: left.
> 0 0 0 0 0 0 0 0 0
> curl: (22) The requested URL returned error: 404
> Warning: Problem (retrying all errors). Will retry in 4 seconds. 1 retry left.
> 0 0 0 0 0 0 0 0 0
> curl: (22) The requested URL returned error: 404
> error: cannot download catalog.xml from any mirror
For full logs, run:
nix log /nix/store/w5cpkahs6ch7gwv9fip2m36hqgwgjcia-catalog.xml.drv
error: Cannot build '/nix/store/sa1p1cipazcjaam1h8018p271wpidhk4-docbook-xml-4.1.2.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/d7kjnk1bhpqcpxj64qhm23wyffhrvqsv-docbook-xml-4.1.2
là, en changeant d'autres trucs dans ma config
error: Cannot build '/nix/store/2kbbzfsz1hzd21yj0h989s3z40cgrp58-stage0-posix-1.9.1-source.drv'.
Reason: builder failed with exit code 1.
Output paths:
/nix/store/4f7nm8dblrdy74gmsl62b25rjrh4jcz3-stage0-posix-1.9.1-source
Last 20 log lines:
> error: executing '#
> #
> # Neither your store nor your substituters seems to have:
> #
> # /1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9
> #
> # You can create this path from an already-bootstrapped nixpkgs
> # using the following command:
> #
> # nix-build '<nixpkgs>' -A make-minimal-bootstrap-sources
> #
> # Or, if you prefer, you can create this file using only `git`,
> # `nix`, and `xz`. For the commands needed in order to do this,
> # see `make-bootstrap-sources.nix`. Once you have the manual
> # result, do:
> #
> # nix-store --add-fixed --recursive sha256 ./stage0-posix-1.9.1-source
> #
> # to add it to your store.
> ': No such file or directory
For full logs, run:
nix log /nix/store/2kbbzfsz1hzd21yj0h989s3z40cgrp58-stage0-posix-1.9.1-source.drv
cette dernière erreur, je l'ai eu sur différents paquets selon ce que je changeais dans ma config
je fais des trucs ultra haut niveau, je ne comprends pas pourquoi des paquets, qui me semble en bas de la stack qui sont très indirect par rapport à ce que je touche, cassent | 23:24:40 |
Alex | Quand je reçois des erreurs bizarres, je vérifie que le Nix store n'a pas de corruption :
nix-store --verify --check-contents --repair
Ça prendra un bon moment parce-qu'il faut que ça traverse tout le Nix store, mais en attendant tu peux chercher d'autres solutions ou faire autre chose.
Si cette commande trouve quelque-chose, après il faut réessayer ce qui ne marchait pas et chercher d'où vient la corruption (en mon cas, la dernière fois était due à une alimentation insuffisante). | 23:43:30 |
pinage404 | merci, je testerai plus tard (si ça prends du temps, j'aimerais dormir dans pas trop longtemps)
en attendant, j'ai tenté de supprimer nix.settings.substituters = [ "https://handy-computer.cachix.org" ]; car c'est le dernier truc que j'ai touché dans mon cache récemment | 23:56:31 |
| 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 |