Adding recommended changes to hass.nix for pull request

This commit is contained in:
eli
2023-09-10 18:23:52 +03:00
parent 56ae1b085c
commit 6d3712cd5c
+2 -2
View File
@@ -1,11 +1,11 @@
{ config, pkgs, ... }:
let vars = import ./vars.nix;
{
# Home Assistant
virtualisation.oci-containers.containers."homeassistant" = {
autoStart = true;
volumes = [ "home-assistant:/config" ];
environment.TZ = "Europe/Athens";
environment.TZ = vars.tz;
image = "ghcr.io/home-assistant/home-assistant:stable"; # Warning: if the tag does not change, the image will not be updated
extraOptions = [
"--network=host"