modules(acme-dns): add enable option

This commit is contained in:
Raito Bezarius 2021-07-24 23:09:12 +02:00
parent a52e253b4c
commit 173e961eef

View file

@ -9,6 +9,7 @@ let
in in
{ {
options.services.acme-dns = { options.services.acme-dns = {
enable = mkEnableOption "ACME DNS server";
package = mkOption { package = mkOption {
type = types.package; type = types.package;
default = pkgs.rz.acme-dns; default = pkgs.rz.acme-dns;
@ -84,7 +85,7 @@ in
}; };
}; };
config = { config = mkIf cfg.enable {
systemd.services.acme-dns = { systemd.services.acme-dns = {
description = "ACME-DNS name server for ACME DNS challenges"; description = "ACME-DNS name server for ACME DNS challenges";