2023-12-31 00:33:48 +00:00
|
|
|
|
|
|
|
# Nixite
|
|
|
|
|
|
|
|
A static site generator made in Nix.
|
|
|
|
|
2023-12-31 04:27:09 +00:00
|
|
|
This is currently very experimental / subject to change.
|
|
|
|
|
2023-12-31 00:33:48 +00:00
|
|
|
## Why
|
|
|
|
|
|
|
|
Clearly there aren't already enough web frameworks out there.
|
|
|
|
|
|
|
|
I thought it would be fun.
|
|
|
|
|
|
|
|
I wanted to get better at Nix.
|
|
|
|
|
|
|
|
Importing other people's styles / component libs could actually be a decent experience.
|
|
|
|
|
|
|
|
You can process your site with the power of nixpkgs - eg you could process images using imagemagick.
|
|
|
|
|
|
|
|
## How
|
|
|
|
|
|
|
|
Read `flake.nix` for basic usage.
|
|
|
|
|
|
|
|
The default package will build the site:
|
|
|
|
```sh
|
|
|
|
nix build .
|
|
|
|
```
|
|
|
|
|
|
|
|
You can also serve it locally (using caddy)
|
|
|
|
```sh
|
|
|
|
nix run .#serve
|
|
|
|
```
|
|
|
|
|