1
0
Fork 0
forked from NixOS/nixpkgs

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

This commit is contained in:
Arne Keller 2025-05-06 12:20:24 +02:00 committed by GitHub
commit 33989ddd47
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -10,6 +10,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": [