1 { lib, pkgs, config, mylibs, ... }:
3 options.services.myCertificates = {
4 certConfig = lib.mkOption {
6 webroot = "/var/lib/acme/acme-challenge";
7 email = "ismael@bouya.org";
9 systemctl reload httpdTools.service httpdInte.service httpdProd.service
11 plugins = [ "cert.pem" "chain.pem" "fullchain.pem" "full.pem" "key.pem" "account_key.json" ];
13 description = "Default configuration for certificates";
18 # FIXME: doesn't work with httpd?
19 security.acme.preliminarySelfsigned = true;
21 security.acme.certs = {
22 # FIXME: /!\ To create a new certificate, create it before using
24 "eldiron" = config.services.myCertificates.certConfig // {
25 domain = "eldiron.immae.eu";