mirror of https://gitlab.crans.org/nounous/nixos
29 lines
495 B
Nix
29 lines
495 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.crans.services.acme;
|
|
|
|
inherit (lib) mkEnableOption mkIf;
|
|
in
|
|
|
|
{
|
|
options.crans.services.acme = {
|
|
enable = mkEnableOption "Activer les certificats ACME via let's encrypt.";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
age.secrets = {
|
|
acme-env.file = ../../secrets/acme/env.age;
|
|
};
|
|
|
|
security.acme = {
|
|
acceptTerms = true;
|
|
|
|
defaults = {
|
|
email = "root@crans.org";
|
|
dnsPropagationCheck = false;
|
|
};
|
|
};
|
|
};
|
|
}
|