Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.58 KB

README.md

File metadata and controls

50 lines (35 loc) · 1.58 KB

Nix with flakes enabled on GitPod

built with nix

This GitPod environment has Nix installed and flakes enabled.

Open in Gitpod

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 |
                ||     ||

Origins

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.

Template

Like GitPod's original, you can use this repo as a template by clicking on Use this template above.