]> Git — Sourcephile - sourcephile-nix.git/blob - hosts/mermet/nginx/sourcephile.fr.nix
nix: update to nixos-24.11
[sourcephile-nix.git] / hosts / mermet / nginx / sourcephile.fr.nix
1 { ... }:
2 let domain = "sourcephile.fr"; in
3 {
4 imports = map (m: import m { inherit domain; }) [
5 sourcephile.fr/www.nix
6 sourcephile.fr/git.nix
7 sourcephile.fr/public-inbox.nix
8 sourcephile.fr/whoami.nix
9 ];
10 security.acme.certs."${domain}" = {
11 postRun = "systemctl reload nginx";
12 };
13 systemd.services.nginx = {
14 wants = [ "acme-selfsigned-${domain}.service" "acme-${domain}.service" ];
15 after = [ "acme-selfsigned-${domain}.service" ];
16 };
17 }