]> Git — Sourcephile - sourcephile-nix.git/blob - servers/mermet/nginx/sourcephile.fr.nix
nix: rewrite deploy.sh into an install nix attribute
[sourcephile-nix.git] / servers / mermet / nginx / sourcephile.fr.nix
1 { pkgs, lib, config, ... }:
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/lemoutona5pattes.nix
8 sourcephile.fr/covid19.nix
9 ];
10 security.acme.certs."${domain}" = {
11 postRun = "systemctl reload nginx";
12 };
13 systemd.services.dovecot2 = {
14 wants = [ "acme-selfsigned-${domain}.service" "acme-${domain}.service"];
15 after = [ "acme-selfsigned-${domain}.service" ];
16 };
17 }