This GitPod environment has Nix installed and flakes enabled.
The environment is quite simple and has just two packages available: hello
and cowsay
.
To run the environment in your browser, click on the GitPod button above. Once the environment is ready, open the terminal in Visual Studio Code. To use the shell environment provided by the flake.nix
:
nix develop
Then you can see that the flake-provided packages are available. Run the hello
package:
bash-5.1$ hello
Hello, world!
Run the cowsay
package with an input:
bash-5.1$ cowsay mooooo
________
< mooooo >
--------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
This config is based on GitPod's official Nix template. It makes just one small change to the template to enable flakes and also provides a simple flake.nix
for use in the project.
Like GitPod's original, you can use this repo as a template by clicking on Use this template above.