From 271ad5c7ce0085df1ec43d66f92d1a44c8b89b88 Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 23 Oct 2022 23:03:04 +0200 Subject: [PATCH] pkgs/switch-report: eliminate group column --- nix/pkgs/switch-report.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/nix/pkgs/switch-report.nix b/nix/pkgs/switch-report.nix index 04ac2fe..61e577e 100644 --- a/nix/pkgs/switch-report.nix +++ b/nix/pkgs/switch-report.nix @@ -28,21 +28,20 @@ let `${model}` @ **${location}** - |Name|Ports|Group|Trunk|Networks| - |-:|-:|:-:|:-:|:-| + |Name|Ports|Trunk|Networks| + |-:|-:|:-:|:-| ${lib.concatMapStrings (ports: let linkName = linksByPorts.${ports}; link = links.${linkName}; in '' - |**${ + |${ + lib.optionalString (link.group != null) + "Group ${toString link.group}: " + }**${ linkName }**|${ ports - }|${ - lib.optionalString (link.group != null) ( - toString link.group - ) }|${ lib.optionalString link.trunk "✓" }|${