mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: moves home-assistant to docker since otherwise it wouldn't work :p
This commit is contained in:
parent
75d23f5ca9
commit
ec6119f46c
1 changed files with 11 additions and 12 deletions
|
|
@ -1,16 +1,15 @@
|
||||||
{
|
{
|
||||||
services.home-assistant = {
|
networking.firewall.allowedTCPPorts = [ 8123 ];
|
||||||
enable = true;
|
virtualisation.oci-containers = {
|
||||||
extraComponents = [
|
backend = "docker";
|
||||||
# Components required to complete the onboarding
|
containers.homeassistant = {
|
||||||
"esphome"
|
volumes = [ "home-assistant:/config" ];
|
||||||
"met"
|
environment.TZ = "Europe/Amsterdam";
|
||||||
"radio_browser"
|
image = "ghcr.io/home-assistant/home-assistant:stable"; # Warning: if the tag does not change, the image will not be updated
|
||||||
|
extraOptions = [
|
||||||
|
"--network=host"
|
||||||
|
# "--device=/dev/ttyACM0:/dev/ttyACM0" # Example, change this to match your own hardware
|
||||||
];
|
];
|
||||||
config = {
|
|
||||||
# Includes dependencies for a basic setup
|
|
||||||
# https://www.home-assistant.io/integrations/default_config/
|
|
||||||
default_config = { };
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue