NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.37k stars 14.33k forks source link

Wrong type types.path for nullable config field. #360203

Open dev-null-undefined opened 1 day ago

dev-null-undefined commented 1 day ago

https://github.com/NixOS/nixpkgs/blob/4633a7c72337ea8fd23a4f2ba3972865e3ec685d/nixos/modules/services/monitoring/prometheus/exporters/mysqld.nix#L25

The module config should allow null path if you don't want to specify the config, so the type should probably be something like types.path or types.null

infinisil commented 23 hours ago

Feel free to PR! Should be types.nullOr types.path