2024-12-12 14:41:43 +01:00
|
|
|
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
|
2023-06-30 18:37:44 +02:00
|
|
|
#
|
2024-12-12 14:41:43 +01:00
|
|
|
# SPDX-License-Identifier: EUPL-1.2
|
2023-06-30 18:37:44 +02:00
|
|
|
|
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
let
|
2024-02-02 10:51:31 +01:00
|
|
|
inherit (lib) mkEnableOption mkIf;
|
2023-06-30 18:37:44 +02:00
|
|
|
|
|
|
|
cfg = config.dgn-acme;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
2024-02-02 10:51:31 +01:00
|
|
|
options.dgn-acme.enable = mkEnableOption "ACME settings." // {
|
|
|
|
default = true;
|
|
|
|
};
|
2023-06-30 18:37:44 +02:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
|
|
|
defaults.email = "acme@dgnum.eu";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|