3 ms·
Is there a way to install nix into home folder (suppose I don't have sudo on server). I spend some time recently trying to setup nix in such environment and fai
by dim-an 9y ago
Is there a way to install nix into home folder (suppose I don't have sudo on server). I spend some time recently trying to setup nix in such environment and failed. I ended up compiling recent versions of neovim and tmux myself.
- Ericson2314 9y agoYour best bet is proot or a user+mnt namespace.
- pfranz 9y agoYes and no (mostly yes). Ideally, you have /nix/ where everything gets installed, then folders with symlinks in your homedir (one that builds your workspaces and another that versions them) with an environment variable in your bash_rc to hook you in. You can put that /nix folder anywhere, but you can no longer use their binary package caches and it will recompile everything. This is because they hard-code paths for dependencies during build time.
- catern 9y agoIf you can use it, https://github.com/lethalman/nix-user-chroot https://github.com/lethalman/nix-user-chroot is the best way. But, it depends on user namespaces being enabled on your system. That may not be the case.