From e9d0e4aa7ac7fe6a155d5d9e802c70da174019ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Mon, 15 Jul 2024 16:11:59 +0100 Subject: [PATCH] add devenv image --- README.md | 1 + images/devenv/default.nix | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 images/devenv/default.nix diff --git a/README.md b/README.md index c80416f..54db30b 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ on our custom domain, courtesy of [Scarf](https://scarf.sh). | [nixpkgs/caddy](https://hub.docker.com/r/nixpkgs/caddy)| `docker pull docker.nix-community.org/nixpkgs/caddy` | | [nixpkgs/curl](https://hub.docker.com/r/nixpkgs/curl)| `docker pull docker.nix-community.org/nixpkgs/curl` | | [nixpkgs/devcontainer](https://hub.docker.com/r/nixpkgs/devcontainer)| `docker pull docker.nix-community.org/nixpkgs/devcontainer` | +| [nixpkgs/devenv](https://hub.docker.com/r/nixpkgs/devenv)| `docker pull docker.nix-community.org/nixpkgs/devenv` | | [nixpkgs/docker-compose](https://hub.docker.com/r/nixpkgs/docker-compose)| `docker pull docker.nix-community.org/nixpkgs/docker-compose` | | [nixpkgs/hugo](https://hub.docker.com/r/nixpkgs/hugo)| `docker pull docker.nix-community.org/nixpkgs/hugo` | | [nixpkgs/kubectl](https://hub.docker.com/r/nixpkgs/kubectl)| `docker pull docker.nix-community.org/nixpkgs/kubectl` | diff --git a/images/devenv/default.nix b/images/devenv/default.nix new file mode 100644 index 0000000..e562ce2 --- /dev/null +++ b/images/devenv/default.nix @@ -0,0 +1,11 @@ +{ docker-nixpkgs +, devenv ? null +}: +(docker-nixpkgs.nix.override { + # only available since 24.05 + extraContents = if devenv == null then [] else [ devenv ]; +}).overrideAttrs (prev: { + meta = (prev.meta or { }) // { + description = "Nix and devenv image"; + }; +})