mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
README.md: Add docs refs to setup docker and nix persistence over QubesOS Template/AppVM for usage. Expand on nix repro instructions fro NIX_REPRO_NOTES for review
Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
parent
f4db4b791c
commit
03e861ea48
21
README.md
21
README.md
@ -29,12 +29,29 @@ Please refer to [Heads-wiki](https://osresearch.net) for your Heads' documentati
|
||||
Building heads
|
||||
===
|
||||
|
||||
Under QubesOS?
|
||||
====
|
||||
* Setup nix persistent layer under QubesOS (Thanks @rapenne-s !)
|
||||
* https://dataswamp.org/~solene/2023-05-15-qubes-os-install-nix.html
|
||||
* Install docker under QubesOS (imperfect old article of mine. Better somewhere?)
|
||||
* https://gist.github.com/tlaurion/9113983bbdead492735c8438cd14d6cd
|
||||
|
||||
Build docker from nix develop layer locally
|
||||
====
|
||||
|
||||
```
|
||||
sh <(curl -L https://nixos.org/nix/install) --no-daemon
|
||||
. /home/user/.nix-profile/etc/profile.d/nix.sh
|
||||
# DANGER: remove /nix store and recreates a fresh one. Skip if you use Nix already:
|
||||
sudo rm -rf /nix/* || echo "cannot delete /nix" && sh <(curl -L https://nixos.org/nix/install) --no-daemon
|
||||
# Configure nix for local builds for nix-commands and flakes usage under nix which are considered experimental features
|
||||
mkdir -p ~/.config/nix
|
||||
echo 'experimental-features = nix-command flakes' >~/.config/nix/nix.conf
|
||||
# Source nix prior of anything else:
|
||||
. /home/user/.nix-profile/etc/profile.d/nix.sh
|
||||
# END OF DANGER SECTION TO BE REVIEWED
|
||||
# [...]
|
||||
# Build nix developer local env with flakes locks to specified versions and exits just running "true" command:
|
||||
nix --print-build-logs --verbose develop --ignore-environment -- true
|
||||
# Build docker image with current develop created environment (this will take a while and create "linuxboot/heads:dev-env" local docker image:
|
||||
nix build .#dockerImage && docker load < result
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user