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 80 counter accept comment "HTTP"
14 add rule inet filter net2fw tcp dport 443 counter accept comment "HTTPS"
16 fileSystems."/var/www" = {
17 device = "rpool/var/www";
22 package = pkgs.nginx.override {
23 modules = with pkgs.nginxModules; [
28 addresses = [ "127.0.0.1:53" ];
33 useACMEHost = networking.domain;