about summary refs log tree commit diff
path: root/nixos/modules/services/home-automation/home-assistant.nix
AgeCommit message (Collapse)AuthorFilesLines
10 daysnixos/home-assistant: customComponents must use buildHomeAssistantComponentRobert Schütz1-1/+6
2024-06-23nixos/home-assistant: fix symlinking multi-manifest custom componentsKacper Koniuszy1-2/+3
frenck/spook includes a second manifest for an integration. The current copyCustomComponents script assumed that only one component directory will be found, which in this case resulted in a malformed symlink destination: lrwxrwxrwx 1 hass hass 224 Jun 23 17:23 spook -> '/nix/store/r41ics22zs578avzqf7x86plcgn2q71h-python3.12-frenck-spook-v3.0.1/custom_components/spook/integrations/spook_inverse'$'\n''/nix/store/r41ics22zs578avzqf7x86plcgn2q71h-python3.12-frenck-spook-v3.0.1/custom_components/spook'
2024-04-13nixos: remove all uses of lib.mdDocstuebinm1-21/+21
these changes were generated with nixq 0.0.2, by running nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix two mentions of the mdDoc function remain in nixos/, both of which are inside of comments. Since lib.mdDoc is already defined as just id, this commit is a no-op as far as Nix (and the built manual) is concerned.
2024-02-11nixos/home-assistant: always add dependencies for default integrationsMartin Weinelt1-1/+40
These are loaded unconditionally during bootstrap, and home-assistant will now fail to start, if these aren't provided.
2024-02-10home-assistant: 2024.1.6 -> 2024.2.1Martin Weinelt1-0/+1
https://www.home-assistant.io/blog/2024/02/07/release-20242/ https://github.com/home-assistant/core/releases/tag/2024.2.1
2024-01-19nixos: fix remaining services for network-online dep fixJade Lovelace1-0/+1
2023-12-20nixos/home-assistant: fix removing of uninstalled custom componentsSandro Jäckel1-2/+2
Before components was not an array and the first loop did never loop through all entries but through the entire output of find without splitting by new line. Tested by copying the preStart script out of the nix store, doing the change and observing that now the custom-components directory is indeed being cleaned up after removing a custom component.
2023-12-10Merge pull request #272576 from NixOS/home-assistantMartin Weinelt1-2/+1
home-assistant: 2023.11.3 -> 2023.12.0
2023-12-10nixos/home-automation: really fix lovelace card entrypointZhong Jianxin1-1/+1
2023-12-09nixos/home-assistant: fix broken reference in option exampleMartin Weinelt1-1/+1
2023-12-09nixos/home-assistant: update bluetooth componentsMartin Weinelt1-1/+0
eq3btsmart was removed in 2023.12.0.
2023-12-06nixos/home-automation: fix lovelace card entrypointMartin Weinelt1-1/+1
Only append the .js extension to the card pname, not to the specified entrypoint.
2023-12-06Merge pull request #271785 from SuperSandro2000/hass-custom-lovelaceMartin Weinelt1-4/+2
nixos/home-assistant: fix custom lovelace module loading
2023-12-03nixos/home-assistant: fix custom lovelace module loadingSandro Jäckel1-4/+2
based on https://community.home-assistant.io/t/ui-lovelace-yaml-and-custom-resources/240178/4 Tested on a home-assistant server and before the card was not loaded at all. After this it threw an error that my config is wrong.
2023-12-02nixos/home-assistant: fix error when switching between writable and none ↵Sandro Jäckel1-2/+2
writable lovelace config error message before was: cp: not writing through dangling symlink '/var/lib/hass/ui-lovelace.yaml'
2023-11-10nixos/home-assistant: add customComponents supportMartin Weinelt1-2/+38
Allows passing custom component packages, that get installed into home-assistant's state directory. Python depedencies, that are propagated from the custom component get passed into `extraPackages`, so they are available to home-assistant at runtime. This is implemented in a way, that allows coexistence with custom components not managed through the NixOS module.
2023-11-10nixos/home-assistant: add customLovelaceModules supportMartin Weinelt1-2/+44
Allows the installation of custom lovelace modules, that can inject css/js into the frontend and offer a wide variety of widgets.
2023-11-01home-assistant: 2023.10.5 -> 2023.11.0Martin Weinelt1-0/+1
https://www.home-assistant.io/blog/2023/11/01/release-202311/
2023-10-26Merge pull request #261733 from nbdd0121/hassLin Jian1-1/+1
nixos/home-assistant: use runCommandLocal for configuration.yaml
2023-10-20Merge pull request #253764 from linj-fork/fix-ping-wrapperMartin Weinelt1-1/+2
nixos/network-interfaces: stop wrapping ping with cap_net_raw
2023-10-17nixos/home-assistant: use runCommandLocal for configuration.yamlGary Guo1-1/+1
It's a quite trivial operation, no need to query substitutors.
2023-10-05nixos/home-assistant: update bluetooth integrationsMartin Weinelt1-0/+2
2023-09-21nixos/network-interfaces: stop wrapping ping with cap_net_rawLin Jian1-1/+2
From systemd 243 release note[1]: This release enables unprivileged programs (i.e. requiring neither setuid nor file capabilities) to send ICMP Echo (i.e. ping) requests by turning on the "net.ipv4.ping_group_range" sysctl of the Linux kernel for the whole UNIX group range, i.e. all processes. So this wrapper is not needed any more. See also [2] and [3]. This patch also removes: - apparmor profiles in NixOS for ping itself and the wrapped one - other references for the wrapped ping [1]: https://github.com/systemd/systemd/blob/8e2d9d40b33bc8e8f5d3479fb075d3fab32a4184/NEWS#L6457-L6464 [2]: https://github.com/systemd/systemd/pull/13141 [3]: https://fedoraproject.org/wiki/Changes/EnableSysctlPingGroupRange
2023-08-02nixos/home-assistant: allow bluetooth for gardena_bluetooth componentMartin Weinelt1-0/+1
2023-05-04nixos/home-assistant: update bluetooth componentsMartin Weinelt1-0/+1
2023-04-06Merge pull request #224908 from SuperSandro2000/home-assistant-drvRobert Schütz1-1/+4
nixos/home-assistant: fix infinite recursion when derivations are used in config
2023-04-06nixos/home-assistant: Allow serial access for otbrMartin Weinelt1-0/+1
2023-04-06nixos/home-assistant: fix infinite recursion when derivations are used in configSandro Jäckel1-1/+4
2023-03-06treewide: deprecate isNullFelix Buehler1-1/+1
https://nixos.org/manual/nix/stable/language/builtins.html#builtins-isNull
2023-02-20home-assistant: Inject extra dependencies through PYTHONPATHMartin Weinelt1-0/+1
Injecting configuration specific dependencies into the propagatedBuildInputs of the home-assistant package forces alot of rebuilds while setting up home-assistant, which is annoying. By passing optional dependencies into home-assistant via the systemd units PYTHONPATH environment variable, only he concatenation of library paths in the systemd unit requires a rebuild. This also means users can rely heavily on the cached home-assistant package and will rarely have to build from source, if ever.
2023-02-02nixos/home-assistant: Update bluetooth componentsMartin Weinelt1-0/+4
2022-12-08nixos/home-assistant: update bluetooth componentsMartin Weinelt1-0/+4
2022-11-05nixos/home-assistant: update bluetooth componentsMartin Weinelt1-0/+6
2022-09-30nixos/home-assistant: update bluetooth and serial component listMartin Weinelt1-5/+24
And fix the capability logic for bluetooth devices.
2022-08-31nixos/*: automatically convert option descriptionspennae1-1/+1
conversions were done using https://github.com/pennae/nix-doc-munge using (probably) rev f34e145 running nix-doc-munge nixos/**/*.nix nix-doc-munge --import nixos/**/*.nix the tool ensures that only changes that could affect the generated manual *but don't* are committed, other changes require manual review and are discarded.
2022-08-19nixos/*: automatically convert option docspennae1-2/+2
2022-08-19nixos/*: normalize <package> to <literal>pennae1-1/+1
this renders the same in the manpage and a little more clearly in the html manual. in the manpage there continues to be no distinction from regular text, the html manual gets code-type markup (which was probably the intention for most of these uses anyway).
2022-08-04nixos/home-assistant: update hardening for bluetooth componentsMartin Weinelt1-4/+4
A larger number of bluetooth components were introduced in 2022.8.0. To make them work we need to add a hardening exception, so they can discover and use bluetooth devices.
2022-08-02Merge pull request #183491 from pennae/automatic-md-conversionspennae1-33/+33
treewide: automatically md-convert option descriptions
2022-07-30treewide: use isAarch where appropriateAlyssa Ross1-1/+1
2022-07-30treewide: automatically md-convert option descriptionspennae1-33/+33
the conversion procedure is simple: - find all things that look like options, ie calls to either `mkOption` or `lib.mkOption` that take an attrset. remember the attrset as the option - for all options, find a `description` attribute who's value is not a call to `mdDoc` or `lib.mdDoc` - textually convert the entire value of the attribute to MD with a few simple regexes (the set from mdize-module.sh) - if the change produced a change in the manual output, discard - if the change kept the manual unchanged, add some text to the description to make sure we've actually found an option. if the manual changes this time, keep the converted description this procedure converts 80% of nixos options to markdown. around 2000 options remain to be inspected, but most of those fail the "does not change the manual output check": currently the MD conversion process does not faithfully convert docbook tags like <code> and <package>, so any option using such tags will not be converted at all.
2022-07-11nixos/home-assistant: make the reload triggers dependent upon cfg.configKat Inskip1-4/+3
2022-06-22nixos/home-assistant: reload the daemon when configuration changedAndreas Rammhold1-2/+17
Reload the service when configuration changes. This means that we don't have a potentially slow startup for every small configuration change.
2022-05-05nixos/home-assistant: fix openFirewallRobert Schütz1-1/+8
2022-02-22nixos/home-assistant: update package option descriptionMartin Weinelt1-4/+0
Overriding can now happen using module options, which is preferred because it is more discoverable and doesn't require knowledge of overrides in the first place.
2022-02-22nixos/home-assistant: allow null config valueMartin Weinelt1-2/+2
While the documentation said to set this to null, in case an imperative config was supposed to be used, this was not possible with the typing in place.
2022-02-17nixos/home-assistant: fix package overrideMartin Weinelt1-2/+2
The attributes can be missing on the package, since they're optional, so catch that by adding empty defaults.
2022-02-15home-assistant: clean up preStartpiegames1-11/+17
Co-Authored-By: Martin Weinelt <hexa@darmstadt.ccc.de>
2022-02-15nixos/home-assistant: add rpi_power component by default on armMartin Weinelt1-0/+4
The rpi_power integration is part of the onboarding flow on Raspberry Pi SBCs.
2022-02-15nixos/home-assistant: Wait for {mysql,postgresql}.serviceMartin Weinelt1-1/+7
Database provisioning was shown to be racy since adding a recorder test using PostgreSQL. There is no harm in waiting for these services, because if they're not available they will be ignored.