From fe07adef7f4a4053a32d61351f0bc5f2ecbb3a80 Mon Sep 17 00:00:00 2001 From: Jeff Slight Date: Wed, 13 May 2020 20:52:26 -0700 Subject: [PATCH] nixos/logrotate: add newline before extraConfig Co-authored-by: Ryan Mulligan --- nixos/modules/services/logging/logrotate.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/services/logging/logrotate.nix b/nixos/modules/services/logging/logrotate.nix index 5b0af8e3349..565618b27a8 100644 --- a/nixos/modules/services/logging/logrotate.nix +++ b/nixos/modules/services/logging/logrotate.nix @@ -51,8 +51,7 @@ let ''; configFile = pkgs.writeText "logrotate.conf" ( - (concatStringsSep "\n" (map pathConfig cfg.paths)) + - cfg.extraConfig + (concatStringsSep "\n" ((map pathConfig cfg.paths) ++ [cfg.extraConfig])) ); in