From 3dc05fbe40e192001a5057dd0f514e0c3bf6cbc7 Mon Sep 17 00:00:00 2001 From: Moritz 'e1mo' Fromm Date: Fri, 14 Apr 2023 14:36:06 +0200 Subject: [PATCH] nixos/bird-lg: Add support for traceroute-flags --- nixos/modules/services/networking/bird-lg.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/modules/services/networking/bird-lg.nix b/nixos/modules/services/networking/bird-lg.nix index 8ef14c93a2ea..dc861dbfd11b 100644 --- a/nixos/modules/services/networking/bird-lg.nix +++ b/nixos/modules/services/networking/bird-lg.nix @@ -33,6 +33,7 @@ let "--bird" = px.birdSocket; "--listen" = px.listenAddress; "--traceroute_bin" = px.traceroute.binary; + "--traceroute_flags" = concatStringsSep " " px.traceroute.flags; "--traceroute_raw" = px.traceroute.rawOutput; }; @@ -216,6 +217,12 @@ in description = lib.mdDoc "Traceroute's binary path."; }; + flags = mkOption { + type = with types; listOf str; + default = [ ]; + description = lib.mdDoc "Flags for traceroute process"; + }; + rawOutput = mkOption { type = types.bool; default = false;