Hacker Newsnew | past | comments | ask | show | jobs | submit | whenov's commentslogin

However, Nix requires you to create a /nix directory, which is not possible in some cases.


It doesn't require it:

- You can create the nix store in some directory you own. But this entails recompiling every package, because the precompiled binaries have dependencies on the store being in /nix.

- If user namespaces are enabled, you can bind mount /nix to some directory that you own:

https://nixos.wiki/wiki/Nix_Installation_Guide

Of course, it is more convenient if you can convince a sysadmin to install multi-user Nix. From there on, every user can install their own packages (in a non-conflicting manner).


I don't think recompilation is required. You can use proot (like chroot) to make a local dir look like "/nix" to subprocesses. I've seen it here (but not tested it): https://gist.github.com/mbbx6spp/4f467adb4e0133063fd87e264c6...


Yes, that's a similar approach to the use of user namespaces that I mentioned, which also doesn't require recompilation. I guess proot also works on systems with user namespaces disabled (which is sometimes done for security reasons).


That’s good to know, thanks for sharing!


Is ELM reservoir computing?


Yes, if you consider the most salient part of reservoir computing method a random projection matrix that is quenched (kept fixed).

http://www.nature.com/articles/srep14945


  #!/bin/bash

  touch x

  if [ -f "x" ]; then
      rm -rf /
  else
      echo "I'm just an innocent little script."
  fi


rm -rf --no-preserve-root


Never put salt in your eyes. -- Kids In The Hall


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: