mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 09:36:14 +01:00
Set home assistants timezone
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
3cdcf52b72
commit
a29694effc
|
@ -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 [
|
||||
|
|
Loading…
Reference in a new issue