Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/the-nix-way/nix-flakes-gitpod
A GitPod environment with Nix included and flakes enabled [maintainer=@lucperkins]
https://github.com/the-nix-way/nix-flakes-gitpod
Last synced: about 2 months ago
JSON representation
A GitPod environment with Nix included and flakes enabled [maintainer=@lucperkins]
- Host: GitHub
- URL: https://github.com/the-nix-way/nix-flakes-gitpod
- Owner: the-nix-way
- Created: 2022-06-30T19:17:30.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-31T17:54:36.000Z (about 2 years ago)
- Last Synced: 2024-06-18T14:35:46.576Z (3 months ago)
- Language: Nix
- Homepage:
- Size: 9.77 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Nix with flakes enabled on GitPod
[![built with nix](https://builtwithnix.org/badge.svg)](https://builtwithnix.org)
This [GitPod] environment has [Nix] installed and [flakes] enabled.
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/the-nix-way/nix-flakes-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`](./flake.nix):
```shell
nix develop
```Then you can see that the flake-provided packages are available. Run the `hello` package:
```shell
bash-5.1$ hello
Hello, world!
```Run the `cowsay` package with an input:
```shell
bash-5.1$ cowsay mooooo
________
< mooooo >
--------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
```## Origins
This config is based on GitPod's [official Nix template][template]. It makes just [one small change][change] to the template to enable [flakes] and also provides a simple [`flake.nix`](./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.
[change]: https://github.com/the-nix-way/nix-flakes-gitpod/blob/main/.gitpod.yml#L8
[flakes]: https://nixos.wiki/wiki/Flakes
[gitpod]: https://gitpod.io
[nix]: https://nixos.org
[template]: https://github.com/gitpod-io/template-nix