From 5b5a6d823b9a5516cea3fea5197e48f3d1c60da8 Mon Sep 17 00:00:00 2001 From: Myned Date: Sat, 21 Dec 2024 13:44:44 -0500 Subject: [PATCH] tzupdate: initial service switch from static timezone Signed-off-by: Myned --- options/custom/services/default.nix | 1 + options/custom/services/tzupdate.nix | 15 +++++++++++++++ options/custom/settings/environment.nix | 3 --- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 options/custom/services/tzupdate.nix diff --git a/options/custom/services/default.nix b/options/custom/services/default.nix index 3b61e74..2caa3be 100644 --- a/options/custom/services/default.nix +++ b/options/custom/services/default.nix @@ -10,6 +10,7 @@ with lib; { #// agenix.enable = true; #// netbird.enable = true; tailscale.enable = true; + tzupdate.enable = true; }) (mkIf config.custom.minimal { diff --git a/options/custom/services/tzupdate.nix b/options/custom/services/tzupdate.nix new file mode 100644 index 0000000..5b4b3e6 --- /dev/null +++ b/options/custom/services/tzupdate.nix @@ -0,0 +1,15 @@ +{ + config, + lib, + ... +}: +with lib; let + cfg = config.custom.services.tzupdate; +in { + options.custom.services.tzupdate.enable = mkOption {default = false;}; + + config = mkIf cfg.enable { + # https://github.com/cdown/tzupdate + services.tzupdate.enable = true; + }; +} diff --git a/options/custom/settings/environment.nix b/options/custom/settings/environment.nix index a448267..0e0b8ae 100644 --- a/options/custom/settings/environment.nix +++ b/options/custom/settings/environment.nix @@ -9,13 +9,10 @@ in { options.custom.settings.environment = { enable = mkOption {default = false;}; builder = mkOption {default = config.custom.full;}; - timezone = mkOption {default = "America/Chicago";}; wayland = mkOption {default = config.custom.minimal;}; }; config = mkIf cfg.enable { - time.timeZone = cfg.timezone; - # https://wiki.nixos.org/wiki/Cross_Compiling boot.binfmt.emulatedSystems = mkIf cfg.builder ["aarch64-linux"]; # Emulate architecture #// nixpkgs.buildPlatform = "x86_64-linux"; # Binary caches often not available