Open
Description
Describe the bug
After NixOS
upgraded to nix-2.20.5
some evals ran as user started failing as:
$ nix eval --impure --raw /etc/nixos#nixosConfigurations.$(hostname).config.system.build.toplevel.drvPath
error:
… while fetching the input 'git+file:///etc/nixos'
error: opening Git repository '/etc/nixos': repository path '/etc/nixos/' is not owned by current user
These used to work. Runing a sudo
works as expected (but I think it's a needless constraint):
$ sudo nix eval --impure --raw /etc/nixos#nixosConfigurations.$(hostname).config.system.build.toplevel.drvPath
/nix/store/qr5v3hbc1hh16cgac7s6nbf5ixnp914p-nixos-system-nz-24.05.20240309.de66856.drv
Permissions and IDs:
$ ls -ld /etc/nixos
drwxr-xr-x 1 root root 1014 Mar 6 22:25 /etc/nixos
$ id
uid=1000 ...
nix-env --version
output: nix-env (Nix) 2.20.5
Priorities
Add 👍 to issues you find important.