{"id":14263160,"url":"https://github.com/tsirysndr/base-workspace","last_synced_at":"2025-10-12T02:20:48.859Z","repository":{"id":220216800,"uuid":"750932571","full_name":"tsirysndr/base-workspace","owner":"tsirysndr","description":"A reproducible dev workspace, built with docker, nix, pkgx, homebrew, vscode \u0026 terraform 🧑‍💻✨","archived":false,"fork":false,"pushed_at":"2024-09-10T10:50:47.000Z","size":65,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T18:40:28.015Z","etag":null,"topics":["devbox","development-environment","devenv","docker","environment-as-code","flox","homebrew","nix","pkgx","terraform","vscode"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsirysndr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2024-01-31T15:57:23.000Z","updated_at":"2024-09-10T10:50:51.000Z","dependencies_parsed_at":"2024-08-20T00:13:50.637Z","dependency_job_id":"e4415dd4-0411-4d67-b8b3-0f9f9df25559","html_url":"https://github.com/tsirysndr/base-workspace","commit_stats":null,"previous_names":["tsirysndr/base-workspace"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsirysndr%2Fbase-workspace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsirysndr%2Fbase-workspace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsirysndr%2Fbase-workspace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsirysndr%2Fbase-workspace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsirysndr","download_url":"https://codeload.github.com/tsirysndr/base-workspace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248490283,"owners_count":21112720,"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","development-environment","devenv","docker","environment-as-code","flox","homebrew","nix","pkgx","terraform","vscode"],"created_at":"2024-08-22T13:02:42.017Z","updated_at":"2025-10-12T02:20:43.795Z","avatar_url":"https://github.com/tsirysndr.png","language":"Dockerfile","funding_links":[],"categories":["Dockerfile","vscode"],"sub_categories":[],"readme":"# Base Workspace 🧑‍💻\n\n[![ci](https://github.com/tsirysndr/base-workspace/actions/workflows/ci.yml/badge.svg)](https://github.com/tsirysndr/base-workspace/actions/workflows/ci.yml)\n\nThis is my base workspace for all my projects. It contains a portable [docker](https://docker.com) environment with [vscode tunnels](https://code.visualstudio.com/docs/remote/tunnels) already configured, provisioned using [terraform](https://terraform.io).\n\n![Made with VHS](https://vhs.charm.sh/vhs-mfuUe2nAemQJ5Rl5rfinr.gif)\n\n## 🚀 Quickstart\n\nCreate a new workspace using the [pocketenv](https://github.com/pocketenv-io/pocketenv) command line tool:\n\n```sh\npocketenv init -t tsirysndr/base-workspace\npocketenv up\n```\n\nOr using [terraform](https://terraform.io):\n\n```sh\ngit clone https://github.com/tsirysndr/base-workspace.git\ncd base-workspace\nterraform init\nterraform apply\n```\n\nA new Docker container will be created with the name `base-workspace` with [pkgx](https://pkgx.sh), [oh-my-posh](https://ohmyposh.dev/), [atuin](https://atuin.sh/) and vscode server installed.\n\nTo connect to the environment, run:\n\n```bash\ndocker logs base-workspace\n```\n\nand follow the vscode tunnel instructions.\n\nYou can also enter to the environment using:\n\n```bash\ndocker exec -it base-workspace bash\n```\n\n## ✨ Bonus\n\n[oh-my-posh](https://ohmyposh.dev/) and [atuin](https://atuin.sh/) are already configured in the environment.\n\n## 🐚 Environments\n\n| Name   | Description                                          |\n|--------|------------------------------------------------------|\n| devbox  | [devbox](https://github.com/jetpack-io/devbox) environment with vscode tunnels configured. |\n| devenv  | [devenv](https://devenv.sh/) environment with vscode tunnels configured. |\n| flox    | [flox](https://flox.dev/) environment with vscode tunnels configured.   |\n| hombrew | [homebrew](https://brew.sh/) environment with vscode tunnels configured.   |\n| nix     | [nix](https://nixos.org/) environment with vscode tunnels configured.    |\n| pkgx    | [pkgx](https://pkgx.sh/) environment with vscode tunnels configured.   |\n| default | base environment with vscode tunnels configured.   |\n\n## ⚙️ Inputs\n\n| Name           | Description           |  Type           | Default         |\n|----------------|-----------------------|----------------|------------------|\n| context        | Docker build context to use | `string`       | `null`         |\n| hostname       | Hostname to use       | `string`       |   `null`               |\n| image          | Docker image to use, required if context is not set   | `string`       | `ghcr.io/pocketenv-io/pkgx:main` |\n| packages       | Packages to install   | `list(string)` | `[]`             |\n| user           | User to create        | `string`       | `coder`         |\n| volumes        | Volumes to mount      | `map(string)` | `{ base-workspace = \"/home/coder\" }`             |\n| workspace_name | Name of the workspace | `string`       | `base-workspace` |\n\n## 📦 Outputs\n\n| Name           | Description           |  Type          |\n|----------------|-----------------------|----------------|\n| container_id   | Docker container id   | `string`       |\n\n\n## 📚 Examples\n\ndevbox.tfvars\n\n```hcl\nworkspace_name = \"devbox-workspace\"\n\nuser = \"coder\"\n\ncontext = \"./devbox\"\n\nvolumes = {\n  devbox-workspace = \"/home/coder\"\n  devbox-nix = \"/nix\"\n}\n```\n\ndevenv.tfvars\n\n```hcl\nworkspace_name = \"devenv-workspace\"\n\nuser = \"coder\"\n\ncontext = \"./devenv\"\n\nvolumes = {\n  devenv-workspace = \"/home/coder\"\n  devenv-nix = \"/nix\"\n}\n```\n\nflox.tfvars \n\n```hcl\nworkspace_name = \"flox-workspace\"\n\nuser = \"coder\"\n\ncontext = \"./flox\"\n\nvolumes = {\n  flox-workspace = \"/home/coder\"\n  flox-nix = \"/nix\"\n}\n```\n\nhomebrew.tfvars\n\n```hcl\nworkspace_name = \"brew-workspace\"\n\npackages = [\n  \"jq\",\n  \"gh\"\n]\n\nuser = \"coder\"\n\ncontext = \"./homebrew\"\n\nvolumes = {\n  brew-workspace = \"/home/coder\"\n  linuxbrew = \"/home/linuxbrew/.linuxbrew\"\n}\n```\n\npkgx.tfvars\n\n```hcl\nworkspace_name = \"pkgx-workspace\"\n\npackages = [\n  \"jq\",\n  \"gh\"\n]\n\nuser = \"coder\"\n\ncontext = \"./pkgx\"\n\nvolumes = {\n  pkgx-workspace = \"/home/coder\"\n}\n```\n\n## 📝 License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsirysndr%2Fbase-workspace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsirysndr%2Fbase-workspace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsirysndr%2Fbase-workspace/lists"}