diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 02b2f9f0273d..bc54d8698499 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -9,6 +9,10 @@ "extraNixConfig": "experimental-features = nix-command flakes,sandbox = true" } }, + // Fixup permissions inside container. + // https://github.com/NixOS/nix/issues/6680#issuecomment-1230902525 + "postCreateCommand": "sudo apt-get install -y acl", + "postStartCommand": "sudo setfacl -k /tmp; if [ -e /dev/kvm ]; then sudo chgrp $(id -g) /dev/kvm; fi", "customizations": { "vscode": { "extensions": [