1
0
Fork 0
pvv-nixos-config/overlays/nginx-test.nix

12 lines
296 B
Nix
Raw Normal View History

final: prev: {
writers = prev.writers // {
writeNginxConfig = name: text: final.runCommandLocal name {
nginxConfig = prev.writers.writeNginxConfig name text;
nativeBuildInputs = [ final.nginx ];
} ''
ln -s "$nginxConfig" "$out"
nginx -t -c "$out"
'';
};
}