This is an exmple of how to nixify a yesod app and how to run it in keter. The app itself is the yesod postgres template
run the example with
nix -Lv build .#example
nix/server.nix
shows how to configure your configuration.nix file.
whereas the flake.nix
shows how to flakify your project.
backend
contains the standard yesod postgres template.
It's moved to backend so nix changes don't cause a recompilation.
Contact me if you need help.
- The settings file in backend/config/keter.yml is ignored by the nix expression in the standard template. I deleted it in this to reflect that.
- I removed the upper bounds of the app. Nix does pinning of versions. doing this as well in the package.yaml results in a lot of extra work.
MIT