Mic92 / nixos-shell

Spawns lightweight nixos vms in a shell
MIT License
677 stars 39 forks source link

nixos-shell broken with `auto-allocate-uids = true` #70

Closed patryk4815 closed 1 year ago

patryk4815 commented 1 year ago

Hi. Can't run with auto-allocate-uids = true it say cannot find name for user ID 872415232

nix.conf

auto-allocate-uids = true
experimental-features = auto-allocate-uids

Log:

bash-5.2# nixos-shell vm.nix
trace: warning: system.stateVersion is not set, defaulting to 23.11. Read why this matters on https://nixos.org/manual/nixos/stable/options.html#opt-system.stateVersion.
these 9 derivations will be built:
  /nix/store/zkv098nlsnknygmpa0m3mk0y63z3yzm8-logrotate.conf.drv
  /nix/store/dg9nipiqkm4zkk68kqh6ccq12r12h266-unit-logrotate-checkconf.service.drv
  /nix/store/rhavd64cc8afzzn1h7pq9fxvg1jgv3cn-unit-logrotate.service.drv
  /nix/store/pqdzlsy3zf8sjvili9cl6wfm9jjyy8yz-system-units.drv
  /nix/store/9fb9na23pgma5zkjgx68r6wjbx5p4v55-etc.drv
  /nix/store/lgay8wgpzb8zda65bin95xanpv7ql0if-nixos-system-nixos-23.11pre-git.drv
  /nix/store/sw4d2pa66x53f02xfx9iqbd7n7rpjjsv-closure-info.drv
  /nix/store/k2c3sfq4nv29b0x81yxhw31f5mrxf16k-run-nixos-vm.drv
  /nix/store/vqqq324da6azwgc5jv9891ysd4g1b5v4-nixos-vm.drv
building '/nix/store/zkv098nlsnknygmpa0m3mk0y63z3yzm8-logrotate.conf.drv'...
/nix/store/whinz9rj5h6h8zxp9bkmfzv7fkzc0cq8-coreutils-9.3/bin/id: cannot find name for user ID 872415232
error: builder for '/nix/store/zkv098nlsnknygmpa0m3mk0y63z3yzm8-logrotate.conf.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/dg9nipiqkm4zkk68kqh6ccq12r12h266-unit-logrotate-checkconf.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/rhavd64cc8afzzn1h7pq9fxvg1jgv3cn-unit-logrotate.service.drv' failed to build
Mic92 commented 1 year ago

Are you sure this is not rather an issue of how logrotate.conf is build rather than nixos-shell?

patryk4815 commented 1 year ago

hmm maybe, I will check later

Mic92 commented 1 year ago

Just re-open if you think is still an issue with nixos-shell.