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