Skip to main content

Looks like I have an issue within my #Nix update script. It doesn't clean things up.

Just deleted old generations and executed `nix store gc` with following result: `75207 store paths deleted, 89441.92 MiB freed`.

Curious what I'm doing wrong. I executed the same commands I've within the update script …
Looks like the issue is using pipes with:
set -o errexit
set -o pipefail

Those are added by Nix. But I don't get why the pipelines fail when adding these settings …
You never stop learning, 141 exit code is SIGPIPE which happens when piping something to head:

I've applied the suggested fix/workaround:
of there is one thing you get better at when using #nix, it is #shell scripting.