[Nix-dev] nixos-rebuild using $TMPDIR

Joachim Schiele js at lastlog.de
Fri Dec 16 13:43:27 CET 2016


interesting. i'm also having problem with tmpfs ATM. seems to give
'permission denied' and after the first run of nix-build all others will
fail.


On 16.12.2016 13:38, Azul wrote:
> thanks,
>
> I ended up getting rid of tmpfs, causes more hassle than what it is worth
>
> On 14 December 2016 at 17:37, Joachim Schiele <js at lastlog.de
> <mailto:js at lastlog.de>> wrote:
>
>     On 13.12.2016 16:14, Azul wrote:
>     > Hey gang,
>     >
>     > Trying to do a nixos-rebuild where I added libreoffice to my list of
>     > packages failing due to lack of disk space.
>     > My /tmp is on tmpfs, so limited in disk space.
>     >
>     > I tried to set NIX_REMOTE="" and TMPDIR=/var/tmp/ but no joy,
>     > nixos-rebuild just tells me to sod off and does its own thing.
>     >
>     > is there a way to tell nixos-rebuild to use my TMPDIR settings ?
>     >
>     > azul
>
>
>     man nix-build
>
>     lets to:
>
>            TMPDIR
>                Use the specified directory to store temporary files. In
>     particular, this includes temporary build directories; these can
>     take up
>     substantial amounts of disk space. The default is /tmp.
>
>     so:
>
>     TMPDIR=/foo nix-build -A whatever
>
>     should do the trick
>
>

-- 
Joachim Schiele

blog: http://lastlog.de/blog
wiki: http://lastlog.de/wiki
signal: 0160 7576 242
GPG: 6D8F75EE (key here: https://lastlog.de/blog/about.html)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20161216/7fe873b1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20161216/7fe873b1/attachment.sig>


More information about the nix-dev mailing list