Compare commits

...

6 commits

3 changed files with 29 additions and 3 deletions

View file

@ -8,7 +8,7 @@ env:
jobs:
tests:
runs-on: native
runs-on: ubuntu-latest
steps:
- uses: https://code.forgejo.org/actions/checkout@v4
# - uses: https://github.com/cachix/cachix-action@v15

View file

@ -20,6 +20,7 @@ in
imports = [
./disk-config.nix
../../hardware/base.nix
../../hardware/bluetooth.nix
../../desktop/x11.nix
../../system/server.nix
../../virtualisation/containers.nix

View file

@ -76,6 +76,14 @@ in
# HACS
aiogithubapi
];
customComponents = with pkgs.unstable.home-assistant-custom-components; [
alarmo
adaptive_lighting
ingress
];
customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [
auto-entities
];
config = {
homeassistant = {
name = "Home";
@ -118,12 +126,30 @@ in
conversation = {
intents = { };
};
ingress = {
"matter" = {
title = "Matter Server";
icon = "mdi:home-automation";
ui_mode = "toolbar";
url = "http://127.0.0.1:${toString config.services.matter-server.port}/";
};
"otbr" = {
title = "OpenThread Border Router";
icon = "mdi:home-automation";
ui_mode = "toolbar";
url = "http://127.0.0.1:${toString config.services.openthread-border-router.web.listenPort}/";
};
};
};
# configWritable = true; # doesn't work atm
};
services.matter-server = {
enable = true;
extraArgs = [
"--storage-path=/var/lib/matter-server"
"--bluetooth-adapter=0"
];
};
services.openthread-border-router = {
@ -135,8 +161,7 @@ in
extraDevices = [ "trel://enp2s0" ];
};
backboneInterface = "enp2s0";
rest.listenPort = 58081;
web.listenPort = 58082;
web.enable = true;
};
# systemd-resolved is already providing mDNS, but avahi seems to be required for otbr