https://github.com/srid/nixid
Like `ghcid -T` but for Nix
https://github.com/srid/nixid
Last synced: 8 months ago
JSON representation
Like `ghcid -T` but for Nix
- Host: GitHub
- URL: https://github.com/srid/nixid
- Owner: srid
- License: mit
- Created: 2023-02-23T16:11:35.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-20T16:18:59.000Z (almost 3 years ago)
- Last Synced: 2025-04-07T12:06:09.140Z (about 1 year ago)
- Language: Nix
- Size: 7.81 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nixid
Like `ghcid -T` but for Nix
`nixid` is a [flake-parts](https://flake.parts/) module for running Nix expressions in a feedback loop, so you can iterate on them in a text editor rather than in `nix repl`.
[](https://asciinema.org/a/562438)
## Usage
In an empty directory, run:
```sh
nix flake init -t github:srid/nixid
```
Edit the generated `flake.nix` to make the "expr" option to be whatever Nix expression you are iterating on.
Then run `nix run` to start a feedback loop that evaluates the expression and prints the value whenever it changes.