{"id":26103522,"url":"https://github.com/aloshy-ai/nixcontainer","last_synced_at":"2025-07-18T16:37:21.761Z","repository":{"id":275136038,"uuid":"922557777","full_name":"aloshy-ai/nixcontainer","owner":"aloshy-ai","description":"A minimalist nix flake enabled devcontainer image with Devbox and Direnv.","archived":false,"fork":false,"pushed_at":"2025-03-09T15:16:43.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T15:18:55.096Z","etag":null,"topics":["devbox","devcontainer","direnv","nix","nix-flakes"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aloshy-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-01-26T14:36:32.000Z","updated_at":"2025-03-09T15:16:46.000Z","dependencies_parsed_at":"2025-03-09T15:19:03.606Z","dependency_job_id":"be4fd0f8-12c5-4ca5-8f43-2e02f1ce6165","html_url":"https://github.com/aloshy-ai/nixcontainer","commit_stats":null,"previous_names":["aloshy-ai/devbox","aloshy-ai/nixcontainer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aloshy-ai/nixcontainer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloshy-ai%2Fnixcontainer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloshy-ai%2Fnixcontainer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloshy-ai%2Fnixcontainer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloshy-ai%2Fnixcontainer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aloshy-ai","download_url":"https://codeload.github.com/aloshy-ai/nixcontainer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloshy-ai%2Fnixcontainer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265793684,"owners_count":23829180,"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":["devbox","devcontainer","direnv","nix","nix-flakes"],"created_at":"2025-03-09T20:29:12.326Z","updated_at":"2025-07-18T16:37:21.747Z","avatar_url":"https://github.com/aloshy-ai.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NIXCONTAINER\n\n[![](https://img.shields.io/badge/aloshy.🅰🅸-000000.svg?style=for-the-badge)](https://aloshy.ai)\n[![Platform](https://img.shields.io/badge/PLATFORM-DOCKER-2496ED.svg?style=for-the-badge\u0026logo=docker)](https://github.com/aloshy-ai/nixcontainer)\n[![Build Status](https://img.shields.io/badge/BUILD-PASSING-success.svg?style=for-the-badge\u0026logo=github)](https://github.com/aloshy-ai/nixcontainer/actions)\n[![License](https://img.shields.io/badge/LICENSE-MIT-yellow.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)\n\n## Usage\n\n```sh\nghcr.io/aloshy-ai/nixcontainer:latest\n```\n\nAdd this to your `.devcontainer/devcontainer.json`:\n\n```json\n{\n  \"image\": \"ghcr.io/aloshy-ai/nixcontainer:latest\",\n  \"workspaceMount\": \"source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached\",\n  \"workspaceFolder\": \"/workspace\"\n}\n```\n\nThe container is configured with `/workspace` as the default working directory and mount point for your project files. This ensures:\n- Your local files are mounted into the container at `/workspace`\n- VS Code opens directly in your project directory\n- All development tools work with the correct file paths\n\n\u003c!-- gen-readme start - generated by https://github.com/jetify-com/devbox/ --\u003e\n## Getting Started\nThis project uses [devbox](https://github.com/jetify-com/devbox) to manage its development environment.\n\nInstall devbox:\n```sh\ncurl -fsSL https://get.jetpack.io/devbox | bash\n```\n\nStart the devbox shell:\n```sh \ndevbox shell\n```\n\nRun a script in the devbox environment:\n```sh\ndevbox run \u003cscript\u003e\n```\n## Scripts\nScripts are custom commands that can be run using this project's environment. This project has the following scripts:\n\n* [build](#devbox-run-build)\n* [load](#devbox-run-load)\n* [push](#devbox-run-push)\n\n## Shell Init Hook\nThe Shell Init Hook is a script that runs whenever the devbox environment is instantiated. It runs \non `devbox shell` and on `devbox run`.\n```sh\ngh auth status \u0026\u003e/dev/null || gh auth login\nexport GITHUB_TOKEN=$(gh auth token)\nexport GITHUB_USERNAME=$(gh api user | jq -r .login)\necho \"▄▀█ █░░ █▀█ █▀ █░█ █▄░█ ░ ▄▀█ █\n█▀█ █▄▄ █▄█ ▄█ █▀█ █░▀█ ▄ █▀█ █\"\ndevbox run --list\n```\n\n## Packages\n\n* [alejandra@latest](https://www.nixhub.io/packages/alejandra)\n* [act@latest](https://www.nixhub.io/packages/act)\n* [jq@latest](https://www.nixhub.io/packages/jq)\n\n## Script Details\n\n### devbox run build\n```sh\nnix build\n```\n\u0026ensp;\n\n### devbox run load\n```sh\nnix build .#loadImage \u0026\u0026 ./result/bin/load-image\n```\n\u0026ensp;\n\n### devbox run push\n```sh\nnix build .#pushToGhcr \u0026\u0026 GITHUB_USERNAME=$GITHUB_USERNAME GITHUB_TOKEN=$GITHUB_TOKEN ./result/bin/push-to-ghcr\n```\n\u0026ensp;\n\n\n\n\u003c!-- gen-readme end --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faloshy-ai%2Fnixcontainer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faloshy-ai%2Fnixcontainer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faloshy-ai%2Fnixcontainer/lists"}