aboutsummaryrefslogtreecommitdiff
path: root/src/nix/devcontainer-feature.json
diff options
context:
space:
mode:
authorChuck Lantz <clantz@microsoft.com>2022-11-01 20:02:02 +0300
committerGitHub <noreply@github.com>2022-11-01 20:02:02 +0300
commit0752a52b0c8ac76448666822938dce8f4d55bb69 (patch)
tree39abf9124899027643a68e5d33afc78f92ecedd9 /src/nix/devcontainer-feature.json
parent748be9320c99cbf6e6a2885d3b5dcc39e7ad3b78 (diff)
Nix feature (#228)
Diffstat (limited to 'src/nix/devcontainer-feature.json')
-rw-r--r--src/nix/devcontainer-feature.json37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/nix/devcontainer-feature.json b/src/nix/devcontainer-feature.json
new file mode 100644
index 0000000..ffd3dc9
--- /dev/null
+++ b/src/nix/devcontainer-feature.json
@@ -0,0 +1,37 @@
+{
+ "id": "nix",
+ "version": "1.0.0",
+ "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."
+ }
+ },
+ "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"
+} \ No newline at end of file