• 2 Posts
  • 10 Comments
Joined 1 year ago
cake
Cake day: June 22nd, 2023

help-circle



  • Thanks, this explains it. I’m trying to set up nix-portable now, but it’s quite confusing. I downloaded nix-portable binary which is a self-extracting archive that silently unpacked a bunch of files to ~/.nix-portable:

    $ ls ~/.nix-portable/bin/
    bwrap  proot  zstd
    

    It seems I was meant to run it like so ./nix-portable nix-shell but this does nothing. On my local machine running OpenSUSE Tumbleweed it exists immediately, whereas on my work HPC server it gets stuck.



  • Thanks! I do run it indeed as a user. I don’t have a sudo access on this server so I would like to do a completely portable installation. I downloaded a portable binary for nix https://releases.nixos.org/?prefix=nix/nix-2.16.1/ and unpacked it on a file system, however when running nix it thinks that nix store is at /nix/store:

    $ /work/apps/nix/store/jdijjdjl6gjh07s4mwgb6bvm501hmjvh-nix-2.16.1/bin/nix
    -bash: /work/apps/nix/store/jdijjdjl6gjh07s4mwgb6bvm501hmjvh-nix-2.16.1/bin/nix: /nix/store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163/lib/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
    

    So far I wasn’t able to configure a different location for nix store: I created ~/.config/nix/nix.conf and put this line inside nix.storeDir = /work/apps/nix/store but it couldn’t pick up the custom store location.






  • OpenSUSE Tumbleweed. It is a rolling distro like Arch but has automated testing of packages, and has been extremely stable in my experience. It’s great for gaming because you get all the latest software very quickly after release. According to my observations TW receives updates on average quicker than Arch.