modules(acme-dns): add enable option
This commit is contained in:
parent
a52e253b4c
commit
173e961eef
1 changed files with 2 additions and 1 deletions
|
@ -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";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue