1 { pkgs, lib, config, ... }:
3 inherit (config) networking;
4 inherit (config.services) nginx;
8 ../../nixos/profiles/services/nginx.nix
9 nginx/sourcephile.fr.nix
11 users.groups."acme".members = [nginx.user];
12 users.groups."transmission".members = [nginx.user];
13 networking.nftables.ruleset = ''
14 add rule inet filter net2fw tcp dport 443 counter accept comment "HTTPS"
15 add rule inet filter net2fw tcp dport 8443 counter accept comment "HTTPS"
19 package = pkgs.nginx.override {
20 modules = with pkgs.nginxModules; [
25 addresses = [ "127.0.0.1:53" ];
30 listen = [ { addr = "0.0.0.0"; port = 8443; ssl = true; } ];
33 useACMEHost = networking.domain;