mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 09:36:14 +01:00
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:
parent
f026c3e26f
commit
9e9f243218
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue