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, ... }: { config, pkgs, inputs, ... }:
{ {
services.home-assistant = { virtualisation.oci-containers = {
enable = true; backend = "podman";
extraComponents = [ containers.homeassistant = {
"esphome" volumes = [ "home-assistant:/config" ];
"met" environment.TZ = "Europe/Berlin";
"radio_browser" image = "ghcr.io/home-assistant/home-assistant:stable";
extraOptions = [
"--network=host"
"--device=/dev/ttyUSB0:/dev/ttyUSB0"
]; ];
config = {
default_config = {};
}; };
}; };
} }

View File

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

View File

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