mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +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";
|
name = "nixng-home-assistant";
|
||||||
inherit nixpkgs;
|
inherit nixpkgs;
|
||||||
config =
|
config =
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, nglib, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
singleton;
|
singleton;
|
||||||
|
@ -18,6 +18,12 @@ makeSystem {
|
||||||
type.services = {};
|
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 = {
|
init.services.home-assistant = {
|
||||||
shutdownOnExit = true;
|
shutdownOnExit = true;
|
||||||
environment.PATH = with pkgs; pkgs.lib.makeBinPath [
|
environment.PATH = with pkgs; pkgs.lib.makeBinPath [
|
||||||
|
|
Loading…
Reference in a new issue