From 22222ebdbf17a2c27f8e257ce6a3eed20dbc1030 Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Wed, 26 Jun 2024 13:07:52 +0800 Subject: [PATCH] To allow impurity add more impurity in nix configuration Signed-off-by: Egor Savkin --- src/sw_sup/setup_build_pc.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/sw_sup/setup_build_pc.md b/src/sw_sup/setup_build_pc.md index 714ca34..9ca0c7b 100644 --- a/src/sw_sup/setup_build_pc.md +++ b/src/sw_sup/setup_build_pc.md @@ -33,7 +33,13 @@ by Vivado. } } ``` -4. Enable flakes in Nix by e.g. adding `experimental-features = nix-command flakes` to nix.conf (for example `~/.config/nix/nix.conf`). +4. Enable flakes in Nix and add `/opt` to sandbox e.g. adding following to the `nix.conf` (for example `~/.config/nix/nix.conf` or `/etc/nix/nix.conf`): + ``` + experimental-features = nix-command flakes + extra-sandbox-paths = /opt + ``` +5. On Ubuntu, the Nix will conflict with Apparmor. You'll need to disable Apparmor for Nix, + or for the whole system (you can also delete Apparmor completely, but be careful with it). From here, you should be able to enter ARTIQ development shell directly from URL, or by cloning the repository. The later will allow you to edit the source code in case of need.