Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielbarter/hpc-nix
https://github.com/danielbarter/hpc-nix
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/danielbarter/hpc-nix
- Owner: danielbarter
- Created: 2021-01-10T00:15:48.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-12T02:42:00.000Z (about 4 years ago)
- Last Synced: 2024-08-03T01:37:45.443Z (6 months ago)
- Language: Nix
- Size: 9.77 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Materials to build a self contained nix store in an environment with network filesystem where you don't have root access and user namespaces are not switched on.
The main downside of this approach (compared to the proot approach) is that you won't be able to utilize exising nix caches, since they assume that the store is located at /nix/store. Everything will be recompiled from scratch.
### Instructions:
1. Set prefix in `hpc-nix.nix` to the full path of target home directory.
2. run `./build.sh`
3. copy `/tmp/copy-me-to-server` over the target and move `copy-me-to-server/nix` to the correct location
4. Add `sandbox = false` and `use-sqlite-wal = false` to `~/.config/nix/nix.conf`. The first disables sandbox building which depends on user namespaces. The second is required for sqlite to function correctly on a network filesystem### Environment variables:
- set `NIX_SSL_CERT_FILE` on the target so nix can fetch things over https
- set `NIX_PATH=nixpkgs=`
- If `/tmp` is mounted to a small device, you may want to set `TMPDIR`