inputs: { config, lib, ... }: { services.grocy = { enable = true; hostName = "grocy.${config.networking.fqdn}"; nginx.enableSSL = false; settings = { calendar.firstDayOfWeek = 1; calendar.showWeekNumber = false; culture = "fr"; currency = "EUR"; }; }; services.nginx.virtualHosts."${config.services.grocy.hostName}" = { # Fixes nginx error: # Problem: [add_header_redefinition] Nested "add_header" drops parent headers. locations."~ \\.(js|css|ttf|woff2?|png|jpe?g|svg)$".extraConfig = lib.mkForce '' access_log off; ''; listen = [ { addr = "[${config.topology.mainVpn.currentNodeIP}]"; port = 80; } ]; }; }