Adding recommended changes to hass.nix for pull request
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user