32 lines
687 B
Nix
32 lines
687 B
Nix
{ inputs, ... }:
|
|
|
|
{
|
|
imports = [ inputs.quadlet-nix.nixosModules.quadlet ];
|
|
|
|
virtualisation.podman.enable = true;
|
|
|
|
virtualisation.quadlet = {
|
|
containers.homeassistant = {
|
|
containerConfig = {
|
|
image = "ghcr.io/home-assistant/home-assistant:stable";
|
|
|
|
exposePorts = [ "8123" ];
|
|
networks = [ "host" ];
|
|
|
|
addCapabilities = [
|
|
"NET_ADMIN"
|
|
"NET_RAW"
|
|
];
|
|
|
|
volumes = [
|
|
"/var/lib/homeassistant/config:/config"
|
|
"/etc/localtime:/etc/localtime:ro"
|
|
"/run/dbus:/run/dbus:ro"
|
|
];
|
|
environments.TZ = "Europe/Berlin";
|
|
};
|
|
|
|
serviceConfig.Restart = "always";
|
|
};
|
|
};
|
|
}
|