.devcontainer: add commands to adjust permissions under Codespaces (#386690)

authored by Arne Keller and committed by GitHub 33989ddd dee2b14c

+4
+4
.devcontainer/devcontainer.json
··· 10 "extraNixConfig": "experimental-features = nix-command flakes,sandbox = true" 11 } 12 }, 13 "customizations": { 14 "vscode": { 15 "extensions": [
··· 10 "extraNixConfig": "experimental-features = nix-command flakes,sandbox = true" 11 } 12 }, 13 + // Fixup permissions inside container. 14 + // https://github.com/NixOS/nix/issues/6680#issuecomment-1230902525 15 + "postCreateCommand": "sudo apt-get install -y acl", 16 + "postStartCommand": "sudo setfacl -k /tmp; if [ -e /dev/kvm ]; then sudo chgrp $(id -g) /dev/kvm; fi", 17 "customizations": { 18 "vscode": { 19 "extensions": [