This repository hosts my website available at ck.dev.
The source code is open source as an example for how you could write Leptos apps and build them with Nix.
nix develop -c $SHELL
just watch
As a shortcut in Fish shell I put the following function at ~/.config/fish/functions/develop.fish
:
function develop --wraps='nix develop'
env ANY_NIX_SHELL_PKGS=(basename (pwd))"#"(git describe --tags --dirty) (type -P nix) develop --command fish
end
and then you can enter Nix develop shell with:
develop
just watch
You can build and run in any environment with:
nix build
./result/bin/ck-dot-dev
I am working on an example for including the Nix flake as a service in your server config.