nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

Davis default configuration doesn't typecheck / nginx config can't be disabled

Open FuZzledd opened this issue 2 years ago • 8 comments

The default value of the nginx option at https://github.com/NixOS/nixpkgs/blob/57610d2f8f0937f39dbd72251e9614b1561942d8/nixos/modules/services/web-apps/davis.nix#L223 is null, but the type is a submodule. This is means that

  • It doesn't typecheck without setting nginx to some module
  • You can't disable its changes to the nginx config easily.

If the intention is to enable it by default, the default value should be set to {}, like in the example configuration, and if the intention is to let it be disabled (by default or not), the type should be changed to nullOr submodule (rest of type)

@Ramblurr

FuZzledd avatar Jun 04 '24 21:06 FuZzledd

Thanks for reporting this. The intention is for it to be disabled by default. Are you interested in PRing a fix?

Ramblurr avatar Jun 05 '24 16:06 Ramblurr

Yep, I'd be happy to, as soon as I can get my own configuration actually working (500 error anywhere except the dashboard and no visible logs anywhere 😅)

FuZzledd avatar Jun 05 '24 17:06 FuZzledd

I also have another issue that I can't debug, because I can't see davis's logs. Can we get some logging?

Elinvention avatar Jul 08 '24 21:07 Elinvention

I'm having both the issues mentioned above, abundant 500 errors on any redirect + no logs to be found.

sector1209 avatar Mar 06 '25 12:03 sector1209

I'm having both the issues mentioned above, abundant 500 errors on any redirect + no logs to be found.

Oops never mind, my issue was down to an empty string in services.davis.mail.dsn >_< (thanks a million for your config @TheConfuZzledDude )

sector1209 avatar Mar 06 '25 13:03 sector1209

It would be nice to have this fixed. I'm also not certain that mail.dsn should be required?

Henry-Hiles avatar Mar 25 '25 14:03 Henry-Hiles

Hi folks, sorry it took me so long to get to this.

I've addressed all of the above concerns in https://github.com/NixOS/nixpkgs/pull/409068

  • mail dsn is no longer required
  • logging is fixed
  • nginx virtual host exists by default but can be disabled properly by settings nginx = null;

Please give it a test if you can.

Thanks for your patience. Davis is a great piece of software my family and I use every day!

Ramblurr avatar May 20 '25 13:05 Ramblurr

Please get in touch if you encounter any more issues or difficulties with davis and the nixos module.

Ramblurr avatar May 22 '25 17:05 Ramblurr