Switch Home Assistant to container-based setup
This commit is contained in:
parent
5ac49db985
commit
07c627673b
|
@ -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 = [
|
||||||
config = {
|
"--network=host"
|
||||||
default_config = {};
|
"--device=/dev/ttyUSB0:/dev/ttyUSB0"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue