feat: add outbound firewall to server & add helix and zellij

This commit is contained in:
danny 2025-10-22 16:24:33 +08:00
parent d273765b99
commit 7fcf26263a
23 changed files with 769 additions and 145 deletions

View file

@ -9,6 +9,7 @@ let
optionalString
toUpper
substring
concatStringsSep
;
inherit (builtins) toJSON;
in
@ -98,4 +99,10 @@ in
};
capitalize = text: "${toUpper (substring 0 1 text)}${substring 1 (-1) text}";
nftables = {
mkElementsStatement =
elements:
optionalString (builtins.length elements > 0) "elements = { ${concatStringsSep "," elements} }";
};
}