···4455Create a **minimal** bug reproduction at [`modules/bug.nix`](modules/bug.nix)
6677+See also [Den debugging tips](https://den.oeiuwq.com/debugging.html)
88+79Then run tests:
81099-```console
1111+```shell
1012nix flake check
1113```
12141313-Format code with:
1515+Please share a link to your reproduction repo, showing the CI step and the
1616+error at CI build.
1717+1818+## Fixing Den
1919+2020+If you are contributing a bug-fix PR, you can use the following command to
2121+use your local den checkout.
14221515-```console
1616-nix fmt
2323+```shell
2424+cd <den-working-copy>
2525+nix flake check --override-input den . ./templates/bogus
1726```
···11-# DO-NOT-CHANGE. Keep your reproduction minimalistic!
22-#
33-# try not adding new inputs
44-# but if you have no options (pun intended)
55-# here's the place.
66-#
77-# IF you make any change to this file, use:
88-# `nix run .#write-flake`
99-#
1010-# We provide nix-darwin and home-manager for common usage.
1111-{
1212- # change "main" with a commit where bug is present
1313- flake-file.inputs.den.url = "github:vic/den/main";
1414-1515- # included so we can test HM integrations.
1616- flake-file.inputs.home-manager = {
1717- url = "github:nix-community/home-manager";
1818- inputs.nixpkgs.follows = "nixpkgs";
1919- };
2020-2121- # included for testing darwin hosts.
2222- flake-file.inputs.darwin = {
2323- url = "github:nix-darwin/nix-darwin";
2424- inputs.nixpkgs.follows = "nixpkgs";
2525- };
2626-}