diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 4045263..4cbaf83 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -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 diff --git a/hosts/home-server/default.nix b/hosts/home-server/default.nix index d346a9c..16fe631 100644 --- a/hosts/home-server/default.nix +++ b/hosts/home-server/default.nix @@ -20,6 +20,7 @@ in imports = [ ./disk-config.nix ../../hardware/base.nix + ../../hardware/bluetooth.nix ../../desktop/x11.nix ../../system/server.nix ../../virtualisation/containers.nix diff --git a/services/home-assistant/default.nix b/services/home-assistant/default.nix index 0e43a5c..a289daa 100644 --- a/services/home-assistant/default.nix +++ b/services/home-assistant/default.nix @@ -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