aboutsummaryrefslogblamecommitdiff
path: root/src/nix/devcontainer-feature.json
blob: 664f68c913827d310a4595e5876bf793ab9c3173 (plain) (tree)
1
2
3

                
                       























                                                                                                 




                                                                                                      









                                                                                              
{
    "id": "nix",
    "version": "1.1.2",
    "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"
}