From a29694effc25bb6fa65356698d11c8b221e1185f Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Sun, 3 Sep 2023 19:17:10 +0200 Subject: [PATCH] Set home assistants timezone Signed-off-by: Magic_RB --- nixng/containers/home-assistant/home-assistant.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nixng/containers/home-assistant/home-assistant.nix b/nixng/containers/home-assistant/home-assistant.nix index 1770116..dd6ca56 100644 --- a/nixng/containers/home-assistant/home-assistant.nix +++ b/nixng/containers/home-assistant/home-assistant.nix @@ -6,7 +6,7 @@ makeSystem { name = "nixng-home-assistant"; inherit nixpkgs; config = - { pkgs, lib, ... }: + { pkgs, lib, nglib, ... }: let inherit (lib) singleton; @@ -18,6 +18,12 @@ makeSystem { type.services = {}; }; + system.activation."tzdata" = nglib.dag.dagEntryAnywhere '' + mkdir -m 0755 -p /etc/ssl/certs + ln -s ${pkgs.tzdata}/share/zoneinfo /etc/zoneinfo + ln -s /etc/zoneinfo/Europe/Amsterdam /etc/localtime + ''; + init.services.home-assistant = { shutdownOnExit = true; environment.PATH = with pkgs; pkgs.lib.makeBinPath [