!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

523 Members
Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant136 Servers

Load older messages


SenderMessageTime
25 Nov 2024
@hexa:lossy.network@hexa:lossy.networkdoes that happen to you all the time, too?01:40:28
@spacekitteh:matrix.orgspacekittehcan you share the nix code for that? :301:40:59
@hexa:lossy.network@hexa:lossy.networkin a minute01:42:56
@spacekitteh:matrix.orgspacekittehcheers01:43:41
@hexa:lossy.network@hexa:lossy.networkcan't get it to install the systemd units 🤷01:50:00
@hexa:lossy.network@hexa:lossy.networkalso uses a vendored submodule for openthread01:50:23
@hexa:lossy.network@hexa:lossy.network
{
  lib,
  stdenv,
  fetchFromGitHub,
  cmake,
  ninja,
  pkg-config,
  avahi,
  cjson,
  http-parser,
  systemd,
  cpputest,
}:

stdenv.mkDerivation rec {
  pname = "ot-br-posix";
  version = "20230710";

  src = fetchFromGitHub {
    owner = "openthread";
    repo = "ot-br-posix";
    rev = "thread-reference-${version}";
    hash = "sha256-q7SHmFLfCUYPB7WEUSyYL6hI8/tbkkJkDJ0FBJVwffw=";
    fetchSubmodules = true;
  };

  postPatch = ''
    rm -rf third_party/{cJSON,http-parser}
  '';

  nativeBuildInputs = [
    cmake
    ninja
    pkg-config
  ];

  cmakeFlags = [
    "-Dsystemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
    "-DOTBR_SYSTEMD_UNIT_DIR=${placeholder "out"}/lib/systemd/system"
  ];

  buildInputs = [
    avahi
    http-parser
    cjson
    #systemd
  ];

  # greps /var/log/syslog in the build sandbox
  doCheck = false;

  nativeCheckInputs = [ cpputest ];

  meta = {
    description = "OpenThread Border Router, a Thread border router for POSIX-based platforms";
    homepage = "https://github.com/openthread/ot-br-posix";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ ];
    mainProgram = "ot-br-posix";
    platforms = lib.platforms.all;
  };
}
01:50:41
@spacekitteh:matrix.orgspacekitteh
In reply to @hexa:lossy.network
also uses a vendored submodule for openthread
yeah that seems to be the case always
01:50:44
@hexa:lossy.network@hexa:lossy.networkand the tests don't work01:50:46
@spacekitteh:matrix.orgspacekittehcheers, i'll get to working on it :)01:51:21
@hexa:lossy.network@hexa:lossy.networkhm, it doesn't use cjson and http-parser as passed in01:58:04
@hexa:lossy.network@hexa:lossy.networkI though it would at least complain about the missing deps https://github.com/openthread/ot-br-posix/blob/thread-reference-20230710/.gitmodules01:58:15
@hexa:lossy.network@hexa:lossy.network * I though it would at least complain about the missing deps after removing them https://github.com/openthread/ot-br-posix/blob/thread-reference-20230710/.gitmodules01:58:21
@hexa:lossy.network@hexa:lossy.networkthe systemd unit is also beautiful01:58:53
@hexa:lossy.network@hexa:lossy.network
ExecStartPre=service avahi-daemon start
01:58:59
@hexa:lossy.network@hexa:lossy.network just add service-wrapper into environment.systemPackages 02:04:59
@hexa:lossy.network@hexa:lossy.networkRedacted or Malformed Event02:05:10
@spacekitteh:matrix.orgspacekitteh
otbr-agent[948518]: [NOTE]-AGENT---: Running 0.3.0
otbr-agent[948518]: [NOTE]-AGENT---: Thread version: 1.3.0
otbr-agent[948518]: [NOTE]-AGENT---: Thread interface: wpan0
otbr-agent[948518]: [NOTE]-AGENT---: Radio URL: spinel+hdlc+uart:///dev/ttyACM0
otbr-agent[948518]: [NOTE]-AGENT---: Radio URL: trel://lo
otbr-agent[948518]: [NOTE]-ILS-----: Infra link selected: lo
otbr-agent[948518]: [INFO]-NCP-----: OpenThread log level changed to 4
otbr-agent[948518]: 51d.05:14:46.770 [I] Platform------: RCP reset: RESET_POWER_ON
otbr-agent[948518]: 51d.05:14:46.770 [I] Platform------: Software reset RCP successfully
otbr-agent[948518]: 51d.05:14:46.770 [I] Platform------: RCP reset: RESET_POWER_ON
otbr-agent[948518]: 51d.05:14:46.772 [I] Platform------: [netif] Sent request#1 to set addr_gen_mode to 1
otbr-agent[948518]: 00:00:00.003 [I] ChildSupervsn-: Timeout: 0 -> 190
otbr-agent[948518]: [INFO]-UTILS---: Set state callback: OK
otbr-agent[948518]: [INFO]-MDNS----: Avahi client state changed to 101
otbr-agent[948518]: [INFO]-MDNS----: Avahi client is connecting to the server
otbr-agent[948518]: [INFO]-BA------: Start Thread Border Agent: OK
otbr-agent[948518]: [INFO]-APP-----: Thread Border Router started on AIL lo.
otbr-agent[948518]: 00:00:00.004 [I] Notifier------: StateChanged (0x00038200) [NetData PanId NetName ExtPanId]
sh: line 1: ipset: command not found
otbr-agent[948518]: 00:00:00.006 [I] Platform------: Execute command `ipset flush otbr-ingress-allow-dst-swap` = 32512
otbr-agent[948518]: 00:00:00.006 [I] Platform------: Got an error when executing command `ipset flush otbr-ingress-allow-dst-swap`: `Resource temporarily unavailable`
otbr-agent[948518]: 00:00:00.006 [W] Platform------: Failed to update ipsets: Failed
otbr-agent[948518]: [INFO]-BA------: Publish meshcop service OpenThread BorderRouter #0B34._meshcop._udp.local.
otbr-agent[948518]: 00:00:00.006 [I] Settings------: Read BorderAgentId {id:e742a5c2b74409078488017c10f7403d}
otbr-agent[948518]: [WARN]-BA------: Result of publish meshcop service OpenThread BorderRouter #0B34._meshcop._udp.local: Invalid state
otbr-agent[948518]: 00:00:00.006 [I] RouterTable---: Route table
otbr-agent[948518]: 00:00:00.007 [I] Platform------: [netif] Host netif is down
otbr-agent[948518]: 00:00:00.007 [I] Platform------: [netif] Succeeded to process request#1
otbr-agent[948518]: 00:00:31.507 [I] Platform------: Session socket is ready

progress!

03:26:16
@spacekitteh:matrix.orgspacekitteh
In reply to @hexa:lossy.network
I though it would at least complain about the missing deps after removing them https://github.com/openthread/ot-br-posix/blob/thread-reference-20230710/.gitmodules
oh yeah, those are optional deps depending on compile flags
03:28:38
@spacekitteh:matrix.orgspacekittehhmm, i'm trying to include support for the web gui and now it hangs while linking :/03:47:01
@spacekitteh:matrix.orgspacekittehah, 'cus npm tried to access the internet lmao03:55:58
@spacekitteh:matrix.orgspacekittehhmm, cmake isn't picking up cJSON04:40:20
@spacekitteh:matrix.orgspacekittehso i've got it up and running but i'm yet to figure out how to actually get devices to join it. hmm.08:25:37
@spacekitteh:matrix.orgspacekittehI can't be the first person trying to use matter over thread on nixos, right?10:54:27
@hexa:lossy.network@hexa:lossy.networkhttps://developers.home-assistant.io/docs/core/integration-quality-scale/15:23:10
@hexa:lossy.network@hexa:lossy.networknew quality scale15:23:12
@hexa:lossy.network@hexa:lossy.networklegacy quality means it is configurable only via YAML15:23:30
@hexa:lossy.network@hexa:lossy.networkbronze (the new minimum to get accepted) requires a config-flow15:23:45
@hexa:lossy.network@hexa:lossy.networkin practice this has been the case for years15:23:50
@hexa:lossy.network@hexa:lossy.networkhrm 😕17:25:27

Show newer messages


Back to Room ListRoom Version: 6