Switch Home Assistant to container-based setup
This commit is contained in:
parent
5ac49db985
commit
07c627673b
|
@ -1,15 +1,16 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
services.home-assistant = {
|
||||
enable = true;
|
||||
extraComponents = [
|
||||
"esphome"
|
||||
"met"
|
||||
"radio_browser"
|
||||
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"
|
||||
];
|
||||
config = {
|
||||
default_config = {};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -24,8 +24,7 @@ in
|
|||
networking = {
|
||||
hostName = "ritchie";
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 2222 ];
|
||||
enable = false;
|
||||
};
|
||||
};
|
||||
users.users.foxsoft = {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue