Home assistant
This commit is contained in:
parent
f18cd49b01
commit
22233d2a30
1 changed files with 12 additions and 3 deletions
|
@ -172,10 +172,19 @@
|
||||||
extraOptions = [ "--network=www" "--device=/dev/ttyACM0:/dev/zwave" ];
|
extraOptions = [ "--network=www" "--device=/dev/ttyACM0:/dev/zwave" ];
|
||||||
};
|
};
|
||||||
homeassistant = {
|
homeassistant = {
|
||||||
image = "lscr.io/linuxserver/homeassistant:latest";
|
image = "my-homeassistant:latest";
|
||||||
volumes = [ "homeassistant-config:/config" ];
|
iamgeFile = pkgs.dockerTools.buildLayeredImage {
|
||||||
|
name = "my-homeassistant";
|
||||||
|
tag = "latest";
|
||||||
|
config.Cmd = [ "${pkgs.home-assistant}/bin/hass" ];
|
||||||
|
};
|
||||||
|
volumes = [ "homeassistant-config:/var/lib/hass" ];
|
||||||
environment.TZ = "America/New_York";
|
environment.TZ = "America/New_York";
|
||||||
labels.swag = "enable";
|
labels = {
|
||||||
|
swag = "enable";
|
||||||
|
swag_url = "homeassistant.icanttype.org";
|
||||||
|
swag_port = "8123";
|
||||||
|
};
|
||||||
extraOptions = [ "--pull=newer" "--network=www" "--network=lan" ];
|
extraOptions = [ "--pull=newer" "--network=www" "--network=lan" ];
|
||||||
};
|
};
|
||||||
postgres = {
|
postgres = {
|
||||||
|
|
Loading…
Reference in a new issue