Set home assistants timezone

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-09-03 19:17:10 +02:00
parent 3cdcf52b72
commit a29694effc
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -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 [