fix(nixos): senttinèlla-probe: module args

This commit is contained in:
2025-10-12 03:58:43 +00:00
parent 6dd7d112c5
commit dc6ca7a0a9
6 changed files with 152 additions and 46 deletions

View File

@@ -1,4 +1,4 @@
{ symlinkJoin, writeShellApplication, socat, dash, hectic, curl }:
{ symlinkJoin, writeShellApplication, socat, dash, hectic, curl, gawk }:
let
shell = "${dash}/bin/dash";
bashOptions = [
@@ -13,19 +13,18 @@ let
text = builtins.readFile ./base64.sh;
};
# TODO: writeDashApplication
probe = hectic.writeShellApplication {
inherit shell bashOptions;
name = "probe";
runtimeInputs = [ socat dash probe-loop ];
runtimeInputs = [ socat dash router ];
text = builtins.readFile ./probe.sh;
};
probe-loop = hectic.writeShellApplication {
router = hectic.writeShellApplication {
inherit shell bashOptions;
name = "probe-loop";
runtimeInputs = [ base64 ];
text = builtins.readFile ./probe-loop.sh;
name = "router";
runtimeInputs = [ base64 gawk ];
text = builtins.readFile ./router.sh;
};
sentinel = hectic.writeShellApplication {