aboutsummaryrefslogtreecommitdiff
path: root/src/nix/devcontainer-feature.json
blob: b112040d38e877c24e0f280f0b3e3fe88eb88066 (plain) (blame)
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
31
32
33
34
35
36
37
38
39
40
41
42
{
    "id": "nix",
    "version": "1.1.1",
    "name": "Nix Package Manager",
    "documentationURL": "https://github.com/devcontainers/features/tree/main/src/nix",
    "description": "Installs the Nix package manager and optionally a set of packages.",  
    "options": {
        "version": {
            "type": "string",
            "proposals": ["latest", "2.11"],
            "default": "latest",
            "description": "Version of Nix to install."
        },
        "multiUser": {
            "type": "boolean",
            "default": true,
            "description": "Perform a multi-user install (instead of single user)"
        },
        "packages": {
            "type": "string",
            "default": "",
            "description": "Optional comma separated list of Nix packages to install in profile."
        },
        "flakeUri": {
            "type": "string",
            "default": "",
            "description": "Optional URI to a Nix Flake to install in profile."
        },
        "extraNixConfig": {
            "type": "string",
            "default": "",
            "description": "Optional comma separated list of extra lines to add to /etc/nix/nix.conf."
        }
    },
    "installsAfter": [
        "ghcr.io/devcontainers/features/common-utils"
    ],
    "containerEnv": {
        "PATH": "/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:${PATH}"
    },
    "entrypoint": "/usr/local/share/nix-entrypoint.sh"
}