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 [