From bb4662b3455ca6f6f862cc7266babd4d993d562b Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 26 Aug 2024 18:37:14 +0200 Subject: [PATCH] modules/snakeoil-certs: fix lmao --- modules/snakeoil-certs.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/snakeoil-certs.nix b/modules/snakeoil-certs.nix index b98d127e..61f086a6 100644 --- a/modules/snakeoil-certs.nix +++ b/modules/snakeoil-certs.nix @@ -50,7 +50,7 @@ in serviceConfig.Type = "oneshot"; script = let openssl = lib.getExe pkgs.openssl; - in lib.concatMapStringsSep "\n----------------\n" ({ name, value }: '' + in lib.concatMapStringsSep "\n" ({ name, value }: '' mkdir -p $(dirname "${value.certificate}") $(dirname "${value.certificateKey}") if ! ${openssl} x509 -checkend 86400 -noout -in ${value.certificate} then @@ -69,6 +69,8 @@ in chown "${value.owner}:${value.group}" "${value.certificateKey}" chmod "${value.mode}" "${value.certificate}" chmod "${value.mode}" "${value.certificateKey}" + + echo "\n-----------------\n" '') (lib.attrsToList cfg); }; systemd.timers."generate-snakeoil-certs" = {