this post was submitted on 19 Jul 2023
5 points (100.0% liked)
nixos
1269 readers
1 users here now
All about NixOS - https://nixos.org/
founded 4 years ago
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Nix has poor support for having a store path other than
/nix/store
. Your best bet is probably a helper like nix-portable, which uses Flatpack-like containers to emulate access to/nix
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
: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.Sorry, I don't have any practical advice on the topic, I only know the tool exists.
That's all right, thanks! It seems that it does do something indeed, I had to run with debug information and it was simply taking a long time to configure itself
The only issue is I downloaded a binary package which is dated early 2022 and it uses nix 2.5.1. I need to figure out how to force it to use the latest version of nix.