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