infrastructure/modules/nixos/dgn-acme.nix

25 lines
425 B
Nix
Raw Normal View History

# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
2023-06-30 18:37:44 +02:00
#
# SPDX-License-Identifier: EUPL-1.2
2023-06-30 18:37:44 +02:00
{ config, lib, ... }:
let
inherit (lib) mkEnableOption mkIf;
2023-06-30 18:37:44 +02:00
cfg = config.dgn-acme;
in
{
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";
};
};
}