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 networking.nftables.ruleset = ''
13 add rule inet filter net2fw tcp dport 8443 counter accept comment "HTTPS"
17 package = pkgs.nginx.override {
18 modules = with pkgs.nginxModules; [
23 addresses = [ "127.0.0.1:53" ];
27 listen = [ { addr = "0.0.0.0"; port = 8443; ssl = true; } ];
30 useACMEHost = networking.domain;