From cbf7283a774a4184008731fa5939545c8d510c20 Mon Sep 17 00:00:00 2001 From: Flo Date: Mon, 23 Sep 2024 12:34:23 +0200 Subject: [PATCH] feat(nix): Enable persistent volume for shared nix-store --- src/nix/devcontainer-feature.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/nix/devcontainer-feature.json b/src/nix/devcontainer-feature.json index 0e37efed2..2f43b829e 100644 --- a/src/nix/devcontainer-feature.json +++ b/src/nix/devcontainer-feature.json @@ -43,5 +43,12 @@ "containerEnv": { "PATH": "/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:${PATH}" }, + "mounts": [ + { + "source": "devcontainer-nix-store", + "target": "/nix/store", + "type": "volume" + } + ], "entrypoint": "/usr/local/share/nix-entrypoint.sh" }