1 { pkgs, config, inputs, hostName, ... }:
3 inherit (config) networking;
4 inherit (config.services) nginx;
8 (inputs.julm-nix + "/nixos/profiles/services/nginx.nix")
9 nginx/sourcephile.fr.nix
11 users.groups."acme".members = [ nginx.user ];
12 users.groups."keys".members = [ nginx.user ];
13 users.groups."transmission".members = [ nginx.user ];
14 networking.nftables.ruleset = ''
17 tcp dport { http, https } counter accept comment "HTTP(S)"
21 fileSystems."/var/lib/nginx" = {
22 device = "${hostName}/var/www";
25 services.upnpc.enable = true;
26 services.upnpc.redirections = [
32 service.wantedBy = [ "nginx.service" ];
33 service.partOf = [ "nginx.service" ];
36 description = "HTTPS";
40 service.wantedBy = [ "nginx.service" ];
41 service.partOf = [ "nginx.service" ];
46 package = pkgs.nginx.override {
47 modules = with pkgs.nginxModules; [
52 addresses = [ "127.0.0.1:53" ];
58 # Connection closed without response
62 useACMEHost = networking.domain;