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 …

https://git.daniel-siepmann.de/danielsiepmann/nixpkgs/src/branch/main/home/packages/custom/update-system/default.nix
#Nix
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: https://unix.stackexchange.com/a/580119/185477

I've applied the suggested fix/workaround: https://git.daniel-siepmann.de/danielsiepmann/nixpkgs/commit/c0d988fc89d12e1e57c36d1256bd1c0cef22e6a2
of there is one thing you get better at when using #nix, it is #shell scripting.