the errors were caused by https://github.com/NixOS/nix/pull/6698 fix taken from https://github.com/hercules-ci/gitignore.nix/pull/58/files