tvix: NIX_REMOTE=auto does not auto-detect daemon

#52
Opened by aspen at 2020-08-29T03·24+00

to reproduce:

$(nix-build -A third_party.nix.test_vm)/bin/run-nixos-vm

[nixos@nixos:~]$ nix repl
E20200829 03:24:36.669873   852 shared.cc:306] error: could not set permissions on '/nix/var/nix/profiles/per-user' to 755: Operation not permitted

  1. grfn changed the subject of this issue from "tvix: All nix commands inside the test-vm give "ould not set permissions on '/nix/var/nix/profiles/per-user' to 755: Operation not permitted"" to "tvix: All nix commands inside the test-vm give "could not set permissions on " at 2020-08-29T03·24+00
  2. grfn changed the subject of this issue from "tvix: All nix commands inside the test-vm give "could not set permissions on " to "tvix: All nix commands inside the test-vm give "could not set permissions on /nix/var/nix/profiles/per-user' to 755: Operation not permitted" at 2020-08-29T03·25+00
  3. grfn changed the subject of this issue from "tvix: All nix commands inside the test-vm give "could not set permissions on /nix/var/nix/profiles/per-user' to 755: Operation not permitted" to "tvix: All nix commands inside the test-vm give "could not set permissions on '/nix/var/nix/profiles/per-user" at 2020-08-29T03·26+00
  4. looks like this is happening because NIX_REMOTE is unset - setting it to daemon makes the issue go away. Not sure if this is an issue with the test vm or an issue with tvix itself.

    aspen at 2020-08-29T16·48+00

  5. grfn changed the subject of this issue from "tvix: All nix commands inside the test-vm give "could not set permissions on '/nix/var/nix/profiles/per-user" to "tvix: NIX_REMOTE=auto does not auto-detect daemon" at 2020-08-29T18·00+00
  6. grfn closed this issue at 2020-08-30T17·48+00
  7. Fixed in https://cl.tvl.fyi/c/depot/+/1889

    aspen at 2020-08-30T17·48+00