Commit graph

181 commits

Author SHA1 Message Date
h7x4 39e93806aa
Revert "various: replace systemd.services.<name>.{script,preStart} with ExecStart{,Pre}" 2025-10-31 11:03:32 +01:00
h7x4 b58e464a7f
nixos/zigbee2mqtt: replace preStart with ExecStartPre 2025-10-27 18:52:17 +09:00
Lukas Wurzinger 1f4c50ab81
lib/cli: deprecate toGNUCommandLine 2025-10-21 21:01:38 +02:00
Martin Weinelt 5f7f58ff8a
wyoming-openwakeword: 1.10.0 -> 2.0.0
https://github.com/rhasspy/wyoming-openwakeword/blob/v2.0.0/CHANGELOG.md
2025-10-20 00:20:55 +02:00
Martin Weinelt 3a4e4f6c3d
nixos/wyoming/piper: relax ProcSubset to all
The onnxruntime library wants to query cpuinfo, which fails when the proc
subset is restricted.

Close: #445723
2025-09-30 00:29:35 +02:00
Martin Weinelt 0b6585086d
nixos/wyoming/piper: remove piper package option
This is not customizable via the wyoming-piper cli anymore.
2025-09-25 22:26:06 +02:00
Martin Weinelt 3ceacb3a64 wyoming-piper: 1.6.3 -> 2.0.0
a9bedf7947/CHANGELOG.md
2025-09-22 23:55:38 +02:00
Martin Weinelt 1753e8b61a
nixos/wyoming/piper: fix cudaSupport reference
This needs to reference the config attribute set from the package set.

Fixes: #444597
2025-09-20 16:49:57 +02:00
Martin Weinelt 5470198dde
nixos/wyoming/piper: fix cuda option reference
Fixes: #443686
2025-09-17 12:13:32 +02:00
Martin Weinelt f00a7cb75e
nixos/wyoming/piper: add per-server CUDA toggle
This is now possible with the underlying piper 1.3.0 upgrade.
2025-09-15 18:22:24 +02:00
MakiseKurisu 4a6c2ff4a0
nixos/home-assistant: set permission for input devices
Currently only keyboard_remote uses evdev.
2025-09-01 23:08:30 +08:00
dish 970dcca69c
treewide: Fix links in module documentation 2025-08-25 12:55:11 -04:00
Ramses 4f54ad8efd
ebusd: change default configpath (#380997) 2025-08-19 23:14:09 +03:00
Niklas Hambüchen 1c6b721b62 nixos/zigbee2mqtt: Update homeassistant setting
This is now no longer a top-level boolean:

* https://www.zigbee2mqtt.io/guide/configuration/homeassistant.html
* ae8965a058 (diff-aa9667dbf49ded55b85667093efbf5f706f30496292182850e7f94bb2e1e0774)
2025-08-10 02:01:12 +02:00
Sandro 29484ab654
nixos/zwave-js: allow non-world-readable secrets (#411496) 2025-08-09 21:53:14 +02:00
Martin Weinelt 0ed62e5f94
nixos/wyoming/faster-whisper: set huggingface home
This is the global prefix for all cache dirs. Everything the library
downloads is expendable, since faster-whisper copies the results over
into `/var/lib/wyoming/faster-whisper/`.

Since that makes the data redundant `/tmp` is preferable to `/var/cache`.

Fixes: #429974
2025-08-01 02:00:00 +02:00
Wolfgang Walther 5a0711127c
treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Frank Moda 12ed2954d4 nixos/homebridge: init 2025-07-22 15:26:19 +05:30
weriomat 82894ff79e
nixos/zwave-js-ui: typo serviceConfig (#418537) 2025-07-21 11:08:36 +08:00
Martin Weinelt 800967e9f5 nixos/home-assistant: support passing lovelace config as file 2025-07-18 08:18:52 +03:00
Sandro 4906a1a36d
nixos/govee2mqtt: start after network-online top hopefully have DNS (#415323) 2025-06-30 14:33:42 +02:00
Martin Weinelt 59f235c79d
nixos/wyoming/faster-whisper: fix eval
Various issues were introduced in the latest update that required module
changes. This can be attributed to an apparent lack of attention for
which I apologize.
2025-06-29 22:19:45 +02:00
Bas Nijholt 06acce89f1
nixos/wyoming-faster-whisper: fix typo in assertion
Fixes typo in assertion: `initialPromt` -> `initialPrompt`

This typo causes the module to fail with:

```
error: A definition for option `assertions' is not of type `list of unspecified value'. Definition values:
- In `/nix/store/.../nixos/modules/services/home-automation/wyoming/faster-whisper.nix': <function>
```

The typo was introduced in the v2.5.0 update.​​​​​​​​​​​​​​​​
2025-06-28 09:55:58 -07:00
Maximilian Bosch a064abed61
Merge: nixos/postgresql: move postStart into separate unit (#403645) 2025-06-27 18:09:54 +02:00
Martin Weinelt 0afcbf81f8
wyoming-faster-whisper: 2.4.0 -> 2.5.0 (#417413) 2025-06-25 05:18:48 +02:00
Martin Weinelt f495eb597f
nixos/wyoming/faster-whisper: update for 2.5.0
Also some light cleanups and subsequent reindent.
2025-06-25 05:07:39 +02:00
Martin Weinelt 797f061205
nixos/wyoming/piper: enable streaming audio
With wyoming-piper 1.6.0 we can enable streaming audio on sentence
boundaries, which should improve the responsiveness.
2025-06-25 03:37:12 +02:00
Wolfgang Walther 41c5662cbe
nixos/postgresql: move postStart into separate unit
This avoids restarting the postgresql server, when only ensureDatabases
or ensureUsers have been changed. It will also allow to properly wait
for recovery to finish later.

To wait for "postgresql is ready" in other services, we now provide a
postgresql.target.

Resolves #400018

Co-authored-by: Marcel <me@m4rc3l.de>
2025-06-24 15:26:47 +02:00
Sandro Jäckel d6591b28b1
nixos/govee2mqtt: start after network-online top hopefully have DNS
Otherwise it crash loops
2025-06-10 18:22:33 +02:00
eV 7ca9f21361
nixos/wyoming-satellite: fix override to use dependencies 2025-05-28 18:15:13 +00:00
Nathan Henrie 18dc3dd0b9 nixos/zwave-js: allow non-world-readable secrets
Currently the module's `DyanmicUser` does not exist at build time and therefore this module's secrets file can't be assigned appropriate (e.g. 0400) permissions without additional configuration.
This change uses `LoadCredential` to read the secrets file with elevated privileges and place then into the service-specific credentials directory, where the dynamic user can access them.

This will allow using standard approaches to nix secrets (such as sops, agenix), which by default provide an out-of-store `0400 root:root` file.

Fixes https://github.com/NixOS/nixpkgs/issues/408780
2025-05-27 12:38:24 -06:00
Robbert Gurdeep Singh 06a3db7552
nixos/wyoming-piper: allow w+x for onnxruntime (#402111)
Before this change, running piper would fail with

> cannot enable executable stack as shared object requires

because the stack is marked rwx on newer libonnxruntime versions.
2025-04-26 22:36:21 +02:00
Martin Weinelt b80382cf91
nixos/evcc: allow avahi discovery of eebus devices (#395686) 2025-04-26 15:27:38 +02:00
Stefan Wiehler 44dd157b6f nixos/home-assistant: add custom components to used components query
There should be no need to add custom components without YAML configuration to
extraComponents for systemd service modifications to become effective (e.g.
serial access).
2025-04-24 19:26:46 +02:00
Stefan Wiehler 27eab49a9e home-assistant-custom-components.benqprojector: init at 0.1.3 2025-04-24 19:26:46 +02:00
Maximilian Staab bef6e42242 nixos/evcc: allow avahi discovery of eebus devices
required for some wallboxes
2025-04-03 09:17:47 +02:00
Silvan Mosberger 374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Jeroen Leeuwestein c842beea8f ebusd: change default configpath
The old web service at cfg.ebusd.eu (https and http) is at its end of life and
will be shutdown soon.
2025-03-26 17:33:31 +01:00
Rob Pilling 329fdc5763 ebusd: update to 24.1 and add new log facility option ("device") 2025-03-21 13:20:14 +00:00
Arne Keller 9b62d5e280
nixos/zwave-js-ui: Add chown to allowed syscalls (#380999) 2025-03-10 08:47:46 +01:00
Martin Weinelt e5d70cfec2
nixos/matter-server: fix permission denied error in 7.0.1 (#384651) 2025-03-09 21:32:31 +01:00
Matt Leon b4f4971b6a
nixos/matter-server: fix permission denied error in initialization with v7.0.1
Signed-off-by: Matt Leon <ml@mattleon.com>
2025-03-08 09:34:46 -05:00
Martin Weinelt 067732921f
nixos/evcc: support passing secrets with envsubst
and apply some newer best practices.
2025-03-07 10:08:55 +01:00
Glib Shpychka 5e2119f033
nixos/wyoming-piper: Remove range validation for numerical options (#384315)
Remove range validation for numerical options
2025-03-04 07:43:39 +01:00
Chris Dombroski 63157e34d8 nixos/zwave-js-ui: Add chown to allowed syscalls
Closes: #379850
2025-03-03 21:34:09 -05:00
Martin Weinelt 99eabc0ab3
zigbee2mqtt_2: init at 2.1.1
https://github.com/Koenkk/zigbee2mqtt/releases/tag/2.0.0
https://github.com/Koenkk/zigbee2mqtt/releases/tag/2.1.0
https://github.com/Koenkk/zigbee2mqtt/releases/tag/2.1.1
2025-02-21 14:14:41 +01:00
Bjørn Forsman 92ea914782 nixos/zigbee2mqtt: set StateDirectory
So that the directory is guaranteed to exist at service startup. This
fixes the scenario where the service is stopped, the state directory
removed and the service started again (for testing / starting fresh).

Set StateDirectoryMode to match the existing directory permissions.
2025-02-16 15:52:37 +01:00
Robert Schütz 6e2dc738a2
nixos/home-assistant: use full path for option in description (#380127) 2025-02-12 15:35:34 -08:00
dish 1d57cecb74 nixos/evcc: fix documentation link formatting 2025-02-12 21:03:21 +01:00
Sandro a7cb5b1ba5
nixos/home-assistant: use full path for option in description 2025-02-07 17:10:35 +01:00