upd
This commit is contained in:
@@ -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
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user