Skip to content

A GitPod environment with Nix included and flakes enabled [maintainer=@lucperkins]

Notifications You must be signed in to change notification settings

the-nix-way/nix-flakes-gitpod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A GitPod environment with Nix included and flakes enabled [maintainer=@lucperkins]

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages