{"id":16799089,"url":"https://github.com/monacoremo/nix-docker","last_synced_at":"2025-04-11T00:20:58.991Z","repository":{"id":115614136,"uuid":"237512907","full_name":"monacoremo/nix-docker","owner":"monacoremo","description":"Custom Docker images with the Nix package manager (built with Nix!)","archived":false,"fork":false,"pushed_at":"2020-04-05T13:30:17.000Z","size":110,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T21:05:11.830Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hub.docker.com/repository/docker/monacoremo/nix","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monacoremo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-31T20:44:40.000Z","updated_at":"2022-10-06T14:43:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"6ed7d912-c9b0-422e-948d-e5b5a8d41b1c","html_url":"https://github.com/monacoremo/nix-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monacoremo%2Fnix-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monacoremo%2Fnix-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monacoremo%2Fnix-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monacoremo%2Fnix-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monacoremo","download_url":"https://codeload.github.com/monacoremo/nix-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248318873,"owners_count":21083738,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T09:27:48.669Z","updated_at":"2025-04-11T00:20:58.970Z","avatar_url":"https://github.com/monacoremo.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Custom Docker images with the Nix package manager\n\n[![CircleCI](https://circleci.com/gh/monacoremo/nix-docker.svg?style=svg)](https://circleci.com/gh/monacoremo/nix-docker)\n\nForked from [LnL7/nix-docker](https://github.com/LnL7/nix-docker)\n\nThis repository is used to build custom Docker images that contain the\n[Nix](https://nixos.org/nix) package manager. Whereas the [official docker\nimages for Nix](https://hub.docker.com/r/nixos/nix/) are currently based on\nAlpine, the images from this repository are built from scratch and look a lot\nmore like [NixOS](https://nixos.org/nixos).\n\n## Building images\n\nTo build the images and tag them in your Docker instance, run `nix-shell --run\nnix-docker-build`.\n\n`nix-shell --run nix-docker-all` will take care of building the images, pushing them\nto DockerHub and cleaning up the tags in Docker.\n\n## Versions\n\nAll images are pinned to a specific version of\n[`nixpks-unstable`](https://github.com/NixOS/nixpkgs/tree/nixpkgs-unstable), as\nidentified by the Git commit hash and, for convenenience, the date when that\nversion was pinned. All versions that have been pinned are tracked in the\n[versions](./versions) directory. To add a new version based on the current\nHEAD of `nixpkgs-unstable`, run the [`./update.sh`](update.sh) script\n(optionally in `nix-shell`, which provides the dependencies on `curl` and `jq`).\n\nTo build specific versions of the images, provide your version file as an\nargument to `nix-shell`. For example: `nix-shell --arg version\nversions/2020-01-14-f9c81b5c.nix`. A version\nfile should contain a Nix expression that returns a set with the attributes\n`date`, `rev` and `tarballHash`.\n\nWhile you probably will not depend on the version of `nixpkgs` that is pinned\nin the container and you are [pining your own\nversion](https://nixos.wiki/wiki/FAQ/Pinning_Nixpkgs) in your projects, having\nthe same version in pinned both will make spinning up the container with your\nproject much quicker.\n\n## Image variants\n\nSeveral kinds of images are built in this repository:\n\n* The base image contains Nix, bash and coreutils, which are installed in a\n  system profile that is linked to\n  `/run/current-system/sw`. The only global paths are `/bin/sh` and\n  `/usr/bin/env`.\n* **userenv** images are intended for interactive use.\n* **circleci** images are intended as an efficient base for\n  [CircleCI](https://circleci.com/) jobs that depend on Nix packages.\n\n## Using the images\n\nThe images built with this repository are available on \n[Docker Hub](https://hub.docker.com/repository/docker/monacoremo/nix).\n\nTo use the images you can, for example, run `nix-shell` in them with your\nproject. You can also install additional packages to the container's enviroment,\nfor example with the following Dockerfile:\n\n```Dockerfile\nFROM monacoremo/nix:2020-01-31-62bbc2ab\n\nRUN nix-env -iA \\\n nixpkgs.curl \\\n nixpkgs.jq\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonacoremo%2Fnix-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonacoremo%2Fnix-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonacoremo%2Fnix-docker/lists"}