1{
2 "name": "nixpkgs",
3 "image": "mcr.microsoft.com/devcontainers/universal:2-linux",
4 "features": {
5 "ghcr.io/devcontainers/features/nix:1": {
6 // fails in the devcontainer sandbox, enable sandbox via config instead
7 "multiUser": false,
8 "packages": "nixpkgs.nixd,nixpkgs.nixfmt-rfc-style",
9 "useAttributePath": true,
10 "extraNixConfig": "experimental-features = nix-command flakes,sandbox = true"
11 }
12 },
13 "customizations": {
14 "vscode": {
15 "extensions": [
16 "jnoortheen.nix-ide"
17 ],
18 "settings": {
19 "[nix]": {
20 "editor.formatOnSave": true
21 },
22 "nix.enableLanguageServer": true,
23 "nix.serverPath": "nixd"
24 }
25 }
26 },
27 "remoteEnv": {
28 "NIXPKGS": "/workspaces/nixpkgs"
29 }
30}