guix-homeassistant
Home Assistant platform for GNU Guix
git clone https://repo.pisemsky.site/git/guix-homeassistant
Sun Mar 02 21:33:23+0300 2025
2241124
| name | last commit | date |
| Add modules | Sat Dec 07 21:45:35+0300 2024 | |
| Add modules | Sat Dec 07 21:45:35+0300 2024 | |
| Add modules | Sat Dec 07 21:45:35+0300 2024 | |
| Inherit python-securetar | Sun Feb 02 20:00:21+0300 2025 | |
| Change requirements of the shepherd service | Sun Mar 02 21:33:23+0300 2025 |
README
| 1 | # SPDX-FileCopyrightText: 2024 Evgeny Pisemsky <mail@pisemsky.site> |
| 2 | # SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | |
| 4 | #+title: guix-homeassistant |
| 5 | #+subtitle: Home Assistant platform for GNU Guix |
| 6 | |
| 7 | * Setup |
| 8 | |
| 9 | This is a guix channel that provides package and service definitions |
| 10 | for the Home Assistant platform. To use it, add the following record: |
| 11 | |
| 12 | #+begin_example |
| 13 | (channel |
| 14 | (name 'homeassistant) |
| 15 | (url "https://repo.pisemsky.site/git/guix-homeassistant") |
| 16 | (introduction |
| 17 | (make-channel-introduction |
| 18 | "afdbb5ae25c050882424682eb5474baf00589e27" |
| 19 | (openpgp-fingerprint |
| 20 | "15FF37F790C1BADB35B3752BE3D3B72AB5733021")))) |
| 21 | #+end_example |
| 22 | |
| 23 | to your guix channel configuration file, save it, and run =guix pull=. |
| 24 | |
| 25 | * Modules |
| 26 | |
| 27 | The =(homeassistant-package)= module contains definitions of the |
| 28 | =homeassistant= package (quite outdated to match python version in |
| 29 | guix) and its dependencies (enough for default configuration). This |
| 30 | module is overall messy with mostly disabled tests and unhandled |
| 31 | synopses/descriptions to get a working package as soon as possible. |
| 32 | |
| 33 | The =(homeassistant-service)= module provides definitions of the |
| 34 | =homeassistant-service-type= and the =homeassistant-configuration= - |
| 35 | the latter can be optionally passed as a value of the former to |
| 36 | override default configuration which is set by the following fields: |
| 37 | |
| 38 | - =package= (default: =homeassistant=) :: |
| 39 | The homeassistant package to use. |
| 40 | |
| 41 | - =yaml-file= (default: =(plain-file "configuration.yaml" "default_config:\n")=) :: |
| 42 | The configuration yaml file as a file-like object. |
| 43 | |
| 44 | * Usage |
| 45 | |
| 46 | #+begin_example |
| 47 | (service homeassistant-service-type |
| 48 | (homeassistant-configuration |
| 49 | (yaml-file (plain-file "configuration.yaml" |
| 50 | "default_config: |
| 51 | http: |
| 52 | server_port: 8765 |
| 53 | ")))) |
| 54 | #+end_example |
| 55 | |
| 56 | # Local Variables: |
| 57 | # mode: org |
| 58 | # End: |
| 59 |