Nix is not needed, it is generated. Try to find a better structure for web development setup. The initial steps with httpd and php fpm work now.