!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

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

Load older messages


SenderMessageTime
24 Jan 2025
@hexa:lossy.network@hexa:lossy.networkthe download dir is passed on17:24:01
@hexa:lossy.network@hexa:lossy.networkthe data dir … isn't17:24:04
@hexa:lossy.network@hexa:lossy.networklmao17:24:05
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/home-assistant/addons/blob/master/piper/rootfs/etc/s6-overlay/s6-rc.d/piper/run#L26C1-L28C2517:25:15
@hexa:lossy.network@hexa:lossy.networkfor piper they pass multiple data dirs, one of which is the download dir17:25:23
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/home-assistant/addons/blob/master/whisper/rootfs/etc/s6-overlay/s6-rc.d/whisper/run#L32-L3317:25:48
@hexa:lossy.network@hexa:lossy.networkthe same for faster-whisper17:25:52
@hexa:lossy.network@hexa:lossy.network so the --download-dir is useless 17:26:13
@hexa:lossy.network@hexa:lossy.network just pass a --data-dir 17:26:18
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/NixOS/nixpkgs/pull/37644717:29:31
@laurynasp:matrix.orglaurynaspThanks hexa for pushing a fix so quickly18:20:23
@hexa:lossy.network@hexa:lossy.networkthanks for appreciating my contributions18:20:52
@laurynasp:matrix.orglaurynaspRedacted or Malformed Event18:24:49
@hexa:lossy.network@hexa:lossy.networkhm?18:25:13
@laurynasp:matrix.orglaurynaspI can see this as well, but I don't think this is related to whisper. For me it comes up when enabling services.wyoming.openwakeword.enable. 18:26:42
@laurynasp:matrix.orglaurynaspsorry, failed to reference original message. reposeted below18:27:09
@hexa:lossy.network@hexa:lossy.networkah18:27:17
@laurynasp:matrix.orglaurynasp* sorry, I failed to reference original message. reposeted below18:27:19
@laurynasp:matrix.orglaurynasp I think the brackets for concatMap are closing too late (after the list rather than after the function definition) in https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/home-automation/wyoming/openwakeword.nix
I am happy to create a PR, althought it will be my first one for nixpkgs so will probably take me a while to familiarise myself with the procedure#
18:27:33
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/NixOS/nixpkgs/pull/37579818:27:41
@hexa:lossy.network@hexa:lossy.networkshould have fixed that18:27:44
@hexa:lossy.network@hexa:lossy.networkhttps://nixpk.gs/pr-tracker.html?pr=37579818:29:12
@hexa:lossy.network@hexa:lossy.networkhas landed in all unstable branches18:29:16
@laurynasp:matrix.orglaurynasphm.. I had an impression that the error was seperate from the warning, and the PR seems to fix the warning18:29:43
@laurynasp:matrix.orglaurynaspok, I will update my flake and try again18:29:57
@laurynasp:matrix.orglaurynasp

I have updated to nixos-unstable to the most recent commit (i.e. 0aa475546ed21629c4f5bbf90e38c846a99ec9e9) and I am still getting the error (which i think is the same that uep mentioned)

The error is

error:
       … while calling the 'head' builtin
         at /nix/store/8dh0832snzamw6wk2rdfjz29xdzgma49-source/lib/attrsets.nix:1574:11:
         1573|         || pred here (elemAt values 1) (head values) then
         1574|           head values
             |           ^
         1575|         else

       … while evaluating the attribute 'value'
         at /nix/store/8dh0832snzamw6wk2rdfjz29xdzgma49-source/lib/modules.nix:846:9:
          845|     in warnDeprecation opt //
          846|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          847|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `system.build.toplevel':

       … while evaluating definitions from `/nix/store/8dh0832snzamw6wk2rdfjz29xdzgma49-source/nixos/modules/system/activation/top-level.nix':

       … while evaluating the option `warnings':

       … while evaluating definitions from `/nix/store/8dh0832snzamw6wk2rdfjz29xdzgma49-source/nixos/modules/system/boot/systemd.nix':

       … while evaluating the option `systemd.services.wyoming-openwakeword.serviceConfig':

       … while evaluating definitions from `/nix/store/8dh0832snzamw6wk2rdfjz29xdzgma49-source/nixos/modules/services/home-automation/wyoming/openwakeword.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: expected a list but found the partially applied built-in function 'concatMap': «partially applied primop concatMap»

18:52:35
@laurynasp:matrix.orglaurynaspI am fairly certain it is the the brackets for concatMap in https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/home-automation/wyoming/openwakeword.nix I will try that locally18:53:49
@hexa:lossy.network@hexa:lossy.networkThat fix has not yet landed in a channel I'm afraid19:01:59
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/NixOS/nixpkgs/pull/37638119:02:40
@laurynasp:matrix.orglaurynaspoh that's great it has been merged already19:44:40

Show newer messages


Back to Room ListRoom Version: 6