From a2a741d27e1fea379f96146c5ee93e7048359dfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Thu, 10 Aug 2023 10:48:34 +0300 Subject: [PATCH] fmt and formatting; nsd-acme is less verbose --- modules/services/nsd-acme/default.nix | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/modules/services/nsd-acme/default.nix b/modules/services/nsd-acme/default.nix index b1b6614..b6e3cb3 100644 --- a/modules/services/nsd-acme/default.nix +++ b/modules/services/nsd-acme/default.nix @@ -16,7 +16,7 @@ NOW=$(date +%y%m%d%H%M) DIR="/var/lib/nsd/acmezones" - [ "$TYPE" != "dns-01" ] && { echo "Skipping $TYPE"; exit 1; } + [ "$TYPE" != "dns-01" ] && { exit 1; } write_zone() { cat < "$DIR/${fullZone}.zone" - - echo "Activating ${fullZone}" nsd-control addzone ${fullZone} acme ;; done) - echo "ACME request successful, cleaning up" cleanup ;; failed) - echo "ACME request failed, cleaning up" cleanup ;; esac @@ -86,9 +81,7 @@ in { zonefile: "/var/lib/nsd/acmezones/%s.zone" ''; - systemd.tmpfiles.rules = [ - "d /var/lib/nsd/acmezones 0755 nsd nsd -" - ]; + systemd.tmpfiles.rules = ["d /var/lib/nsd/acmezones 0755 nsd nsd -"]; systemd.services = { @@ -203,7 +196,7 @@ in { lib.mkIf config.mj.base.unitstatus.enable ( ["nsd-control-setup"] - ++ map (n: "nsd-acme-${n}") + ++ map (z: "nsd-acme-${z}") (lib.attrNames config.mj.services.nsd-acme.zones) ); };