From 14d4a883e8b14e795755039d7ba741e8c89fb2a6 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 28 May 2025 02:29:49 +0200 Subject: [PATCH] nixos/bird: print config file with line numbers during config check Bird configuration errors only print the line number without context. Printing the configuration file with line numbers helps to identify the faulty expression. --- nixos/modules/services/networking/bird.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/bird.nix b/nixos/modules/services/networking/bird.nix index 7003ec892d27..8a76926dbae5 100644 --- a/nixos/modules/services/networking/bird.nix +++ b/nixos/modules/services/networking/bird.nix @@ -86,7 +86,7 @@ in checkPhase = optionalString cfg.checkConfig '' ln -s $out bird.conf ${cfg.preCheckConfig} - bird -d -p -c bird.conf + bird -d -p -c bird.conf || { exit=$?; cat -n bird.conf; exit $exit; } ''; };