codchi - Declarative, Reproducible, Cross Platform Development Environments as Code for Windows, Linux1 and MacOS1
- Make sure that WSL2 is installed and up to date. For install instructions visit the official site. You need WSL2 1.2.5.0 or newer. Check yours' with
wsl.exe --version
. Update withwsl.exe --update --web-download
. - Import Cert.crt to
LocalMachine/Trusted People
(see Arch-WSL docs). Requires Admin Privileges. - Install codchi.msix. Subsequent updates should be downloaded automatically by windows.
Coming soon.
Coming soon.
After you've installed the codchi app, its time to install your first code machine. Take a look at some pre-configured machines:
- Base image (no programs): examples/base/configuration.nix
- OpenJDK 17 and 20 + IntelliJ CE: examples/java/configuration.nix
- NodeJS and NPM: examples/nodejs/configuration.nix
Each of these is exposed as ready to use code machine. Run
codchi install <name> github:aformatik/codchi#<machine>
where <name>
is a name of your choice and <machine>
is one of base
,
java
and nodejs
.
Another way to create a code machine is to extend the existing images. To do
this, initialize an empty folder with
nix flake init -t github:aformatik/codchi#<machine>
or just copy
configuration.nix
and flake.nix
from ./examples/<machine>
. You can find
available options in the NixOS Options
Search, the NixOS
Wiki or install packages from the NixOS Package
Search.
To install a custom code machine, upload it to a public Github repository and run
codchi install <name> github:<user>/<repo>#default
.
Usage: codchi COMMAND
Available options:
-h,--help Show this help text
Available commands:
status Show codchi status
start Start codchi controller
install Install a code machine
uninstall Uninstall a code machine
run Run command in a code machine
update Update a code machine
Codchi is licensed under a mixed open source license. The tool codchi (files in folder cli) are released under the MPL-2.0. Everything else is licensed under MIT.