Nix: `nix-shell` Unhelpful error message if `/run/user/1000` is full

Created on 3 Aug 2016  路  1Comment  路  Source: NixOS/nix

With a full /run/user/1000, calling nix-shell causes error:

Died at /nix/store/4z8srway6dl128dxzn5r0wwdvglz3m61-nix-1.11.2/lib/perl5/site_perl/5.20.2/x86_64-linux-thread-multi/Nix/Utils.pm line 31.

This may or may not be an issue in light of #341

UX

Most helpful comment

Also, if anyone happens upon this and happens to have the same issue as me, nix-shell changes $TMPDIR to /run/user/1000, which is rather small on my system. It can help to put

    shellHook = ''
      export TMPDIR="/tmp"
    '';

in your default.nix.

>All comments

Also, if anyone happens upon this and happens to have the same issue as me, nix-shell changes $TMPDIR to /run/user/1000, which is rather small on my system. It can help to put

    shellHook = ''
      export TMPDIR="/tmp"
    '';

in your default.nix.

Was this page helpful?
0 / 5 - 0 ratings