Nginx module should allow config passed in as path #30475
Labels
0.kind: enhancement
Add something new
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
In general, it's much more pleasant to go from a string to a path than the other way around, since
builtins.readFile
then forces import-from-derivation and other unpleasantness. The nginx module today unfortunately expectsconfig
andappendConfig
to be strings, which means that if my config file comes from a derivation (e.g.,pkgs.substituteAll
) tha forces me to build during evaluation. It doesn't seem terribly hard to support the other use case by deferring thewriteText
a bit more.The text was updated successfully, but these errors were encountered: