liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 2c7a16d7926cb854a1904464e0ece1c794d341dc
parent d6b06abb6317711dcd96456b8e31519fc40bfc5b
Author: Daniel Barlow <dan@telent.net>
Date:   Wed,  5 Mar 2025 22:36:35 +0000

firewallgen: add extraText param to set

anything in here is added verbatim to the set definition

Diffstat:
Mpkgs/firewallgen/default.nix | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/pkgs/firewallgen/default.nix b/pkgs/firewallgen/default.nix @@ -10,6 +10,7 @@ let splitString hasInfix substring + optionalString ; inherit (lib.lists) groupBy; inherit (lib.attrsets) mapAttrsToList; @@ -56,12 +57,14 @@ let name, type, elements ? [ ], + extraText ? null, ... }: '' set ${name} { type ${type} ${if elements != [ ] then "elements = { ${concatStringsSep ", " (builtins.trace elements elements)} }" else ""} + ${optionalString (extraText != null) extraText} } '';