Switch Home Assistant to container-based setup

This commit is contained in:
Trevor Vallender 2023-09-14 07:40:30 +01:00
parent 5ac49db985
commit 07c627673b
3 changed files with 13 additions and 11 deletions

View File

@ -1,15 +1,16 @@
{ config, pkgs, inputs, ... }:
{
services.home-assistant = {
enable = true;
extraComponents = [
"esphome"
"met"
"radio_browser"
];
config = {
default_config = {};
virtualisation.oci-containers = {
backend = "podman";
containers.homeassistant = {
volumes = [ "home-assistant:/config" ];
environment.TZ = "Europe/Berlin";
image = "ghcr.io/home-assistant/home-assistant:stable";
extraOptions = [
"--network=host"
"--device=/dev/ttyUSB0:/dev/ttyUSB0"
];
};
};
}

View File

@ -24,8 +24,7 @@ in
networking = {
hostName = "ritchie";
firewall = {
enable = true;
allowedTCPPorts = [ 2222 ];
enable = false;
};
};
users.users.foxsoft = {

View File

@ -56,9 +56,11 @@
rubyPackages_3_1.dip
rubyPackages_3_1.solargraph
rofi-wayland
sshfs
smartmontools # HDD health
spotify
termpdfpy
texlive.combined.scheme-small
thunderbird
timg
toot