3 ms·
You don't need ansible, and what you do is use nix expression in a module or in configuration.nix to set up all the configuration options for nginx. See these e
by srosex 4y ago
You don't need ansible, and what you do is use nix expression in a module or in configuration.nix to set up all the configuration options for nginx. See these examples (it is the same for apache)
https://nixos.wiki/wiki/Nginx https://nixos.wiki/wiki/Nginx
- Tomte 4y agoWhich config options? I've found services.nginx.virtualHosts.<name>.root, but that takes a path name. How do the HTML files get into that directory when installing NixOS? That's a general problem. You could also install PhotoPrism. How do your photos get onto the server? Is that something that NixOS covers? It's totally fine to say "no, we're about configuring packages, not copying user data around", but when people sing NixOS' praises it always sounds like "one NixOS command and my working environment is there". That's where my understanding is falling short so far.