format with prettier formatter :3
This commit is contained in:
parent
8b1a6aca39
commit
211fa03252
18 changed files with 480 additions and 500 deletions
|
|
@ -1,5 +1,4 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
services.home-assistant = {
|
||||
enable = true;
|
||||
configDir = "/var/lib/hass/hass";
|
||||
|
|
@ -21,28 +20,29 @@
|
|||
"mobile_app"
|
||||
];
|
||||
|
||||
extraPackages = python3Packages: with python3Packages; [
|
||||
getmac
|
||||
aiohue
|
||||
numpy
|
||||
aiodhcpwatcher
|
||||
async-upnp-client
|
||||
gtts
|
||||
numpy
|
||||
plexapi
|
||||
pyipp
|
||||
paho-mqtt
|
||||
pyturbojpeg
|
||||
];
|
||||
extraPackages = python3Packages:
|
||||
with python3Packages; [
|
||||
getmac
|
||||
aiohue
|
||||
numpy
|
||||
aiodhcpwatcher
|
||||
async-upnp-client
|
||||
gtts
|
||||
numpy
|
||||
plexapi
|
||||
pyipp
|
||||
paho-mqtt
|
||||
pyturbojpeg
|
||||
];
|
||||
};
|
||||
|
||||
# configures the config directory to be mounted
|
||||
# correctly with the right permissions
|
||||
systemd.services.hass-permissions = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "var-lib-hass.mount" ];
|
||||
requires = [ "var-lib-hass.mount" ];
|
||||
before = [ "home-assistant.service" ];
|
||||
wantedBy = ["multi-user.target"];
|
||||
after = ["var-lib-hass.mount"];
|
||||
requires = ["var-lib-hass.mount"];
|
||||
before = ["home-assistant.service"];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.bash}/bin/bash -c 'mkdir -p /var/lib/hass/hass && chown hass:hass /var/lib/hass/hass'";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue