This commit is contained in:
mjallen18
2026-04-16 12:38:07 -05:00
parent 95f08a258e
commit 1767debfd8
13 changed files with 104 additions and 95 deletions

View File

@@ -11,10 +11,6 @@ let
name = "otbr";
cfg = config.${namespace}.services.${name};
otbrPackage =
pkgs.callPackage "${inputs.nixpkgs-otbr}/pkgs/by-name/op/openthread-border-router/package.nix"
{ };
otbrConfig = lib.${namespace}.mkModule {
inherit config name;
description = "Openthread border router";
@@ -24,8 +20,9 @@ let
moduleConfig = {
services.openthread-border-router = {
enable = true;
backboneInterface = "enp2s0";
package = otbrPackage;
backboneInterfaces = [
"enp2s0"
];
rest = {
inherit (cfg) listenAddress;
listenPort = cfg.restPort;
@@ -45,7 +42,6 @@ let
in
{
imports = [
"${inputs.nixpkgs-otbr}/nixos/modules/services/home-automation/openthread-border-router.nix"
otbrConfig
];
}