From 5f335cfb8f9d6fb894392029f68b579f13902887 Mon Sep 17 00:00:00 2001 From: Julien Moutinho Date: Thu, 25 Jul 2024 23:36:10 +0200 Subject: [PATCH 1/2] nixos/radicle: fix node.listenAddress to support both IPv4 and IPv6 --- nixos/modules/services/misc/radicle.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/radicle.nix b/nixos/modules/services/misc/radicle.nix index 69cac81ee65f..d6b74f4edb67 100644 --- a/nixos/modules/services/misc/radicle.nix +++ b/nixos/modules/services/misc/radicle.nix @@ -137,7 +137,7 @@ in node = { listenAddress = mkOption { type = types.str; - default = "0.0.0.0"; + default = "[::]"; example = "127.0.0.1"; description = "The IP address on which `radicle-node` listens."; }; From d8401bc5778aca1a1ed2fdfb831097eac2db3820 Mon Sep 17 00:00:00 2001 From: Julien Moutinho Date: Fri, 26 Jul 2024 01:06:41 +0200 Subject: [PATCH 2/2] nixos/radicle: add a settings example --- nixos/modules/services/misc/radicle.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/modules/services/misc/radicle.nix b/nixos/modules/services/misc/radicle.nix index d6b74f4edb67..247bb0cc2c1d 100644 --- a/nixos/modules/services/misc/radicle.nix +++ b/nixos/modules/services/misc/radicle.nix @@ -180,6 +180,14 @@ in See https://app.radicle.xyz/nodes/seed.radicle.garden/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5/tree/radicle/src/node/config.rs#L275 ''; default = { }; + example = literalExpression '' + { + web.pinned.repositories = [ + "rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" # heartwood + "rad:z3trNYnLWS11cJWC6BbxDs5niGo82" # rips + ]; + } + ''; type = types.submodule { freeformType = json.type; };