Add watchdog and reolink_aio to list of Hass python modules

Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
magic_rb 2024-01-09 14:56:53 +01:00
parent f026c3e26f
commit 9e9f243218
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -1,17 +1,22 @@
{ makeSystem
, nixpkgs
{
makeSystem,
nixpkgs,
}:
makeSystem {
system = "x86_64-linux";
name = "nixng-home-assistant";
inherit nixpkgs;
config =
{ pkgs, lib, nglib, ... }:
let
inherit (lib)
singleton;
in
{
config = {
pkgs,
lib,
nglib,
...
}: let
inherit
(lib)
singleton
;
in {
config = {
dumb-init = {
enable = true;
@ -20,8 +25,13 @@ makeSystem {
init.services.home-assistant = {
shutdownOnExit = true;
environment.PATH = with pkgs; pkgs.lib.makeBinPath [
coreutils git ffmpeg bash runit
environment.PATH = with pkgs;
pkgs.lib.makeBinPath [
coreutils
git
ffmpeg
bash
runit
];
ensureSomething.create."media" = {
type = "directory";
@ -56,8 +66,8 @@ makeSystem {
trusted_proxies = ["127.0.0.1"];
};
logger.default = "info";
homeassistant =
{ name = "Home";
homeassistant = {
name = "Home";
latitude = "\${LATITUDE}";
longitude = "\${LONGTITUDE}";
elevation = "\${ELEVATION}";
@ -116,7 +126,8 @@ makeSystem {
"recorder"
];
extraPackages = ps: with ps; [
extraPackages = ps:
with ps; [
xmodem
psycopg2
aiohttp-cors
@ -124,6 +135,8 @@ makeSystem {
psutil-home-assistant
bluetooth-auto-recovery
croniter
reolink-aio
watchdog
];
};
};