File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 1+ // based on https://github.com/NixOS/nixpkgs/blob/6c46327d7da6419abb353e6e81dc90e93124d8b3/.devcontainer/devcontainer.json
2+ {
3+ "name" : " smtp-mail" ,
4+ "image" : " mcr.microsoft.com/devcontainers/universal:2-linux" ,
5+ "features" : {
6+ "ghcr.io/devcontainers/features/nix:1" : {
7+ // fails in the devcontainer sandbox, enable sandbox via config instead
8+ "multiUser" : false ,
9+ "useAttributePath" : true ,
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+ }
You can’t perform that action at this time.
0 commit comments