iru on Nostr: Ugly hack it is. let hostname = builtins.readFile ./whereami; hostConfigPath = ...
Ugly hack it is.
let
hostname = builtins.readFile ./whereami;
hostConfigPath = ./${hostname};
hostConfig = if builtins.pathExists hostConfigPath
then import hostConfigPath
else {};
in
Published at
2024-11-17 19:43:22Event JSON
{
"id": "bd31a6ab85470c7cd207974fa325e057ce86c13744756ef44018658fddae96bb",
"pubkey": "9eeca894b2e8830e05ec86f4d119de411a2dd3abcb65525db69c486f4afe5882",
"created_at": 1731872602,
"kind": 1,
"tags": [
[
"e",
"02785d1c61a6d9aa6429557b2a688ca42e5e8a468ff72bc6551a01aa5c32c957",
"",
"root"
],
[
"e",
"172f59cca32f60243c15fb8a31ef9d59f6c0fd123983eaeb81f9e5221fd4f16e",
"",
"reply"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
],
[
"p",
"9eeca894b2e8830e05ec86f4d119de411a2dd3abcb65525db69c486f4afe5882"
],
[
"client",
"Nostur",
"31990:9be0be0fc079548233231614e4e1efc9f28b0db398011efeecf05fe570e5dd33:1685868693432"
]
],
"content": "Ugly hack it is.\n\nlet\n hostname = builtins.readFile ./whereami;\n hostConfigPath = ./${hostname};\n hostConfig = if builtins.pathExists hostConfigPath\n then import hostConfigPath\n else {};\nin\n",
"sig": "fe3ec58a9d6910e0f8abaf9263d3e5a1a8face0fb16216793836cf31ed8a56509b8acb08c642e89ac157dd4867e92479a95c2ef29aa80368a488f0ba29bd48b8"
}