In my configuration.nix, it says
services.nginx.enable=true;
services.nginx.httpConfig="a";
(I tried a normal file and empty string and neither worked)
upon running nixos-rebuild switch
, it says that the server was started, but curl localhost
connection refuses.
When I run nginx
from the command line, it responds could not open error log file: open() "/nix/store/HASHHERE-nginx-1.8.1/logs/error.log failed", read only filesystem
.
I looked at the conf file there /nix/store/HASHHERE-nginx-1.8.1/conf/nginx.conf
and it's the same as the default! ('diff nginx.conf nginx.conf.default'
returns a blank line).
Why doesn't services.nginx.httpConfig
change the config file?