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.

Marcel 14d4a883 62b852f6

Changed files
+1 -1
nixos
modules
services
networking
+1 -1
nixos/modules/services/networking/bird.nix
···
checkPhase = optionalString cfg.checkConfig ''
ln -s $out bird.conf
${cfg.preCheckConfig}
-
bird -d -p -c bird.conf
'';
};
···
checkPhase = optionalString cfg.checkConfig ''
ln -s $out bird.conf
${cfg.preCheckConfig}
+
bird -d -p -c bird.conf || { exit=$?; cat -n bird.conf; exit $exit; }
'';
};