nixos-config/modules/nixos/system/time/default.nix

20 lines
341 B
Nix

{
config,
lib,
namespace,
options,
...
}:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.system.time;
in
{
options.${namespace}.system.time = with types; {
enable = mkBoolOpt false "Whether or not to configure timezone information.";
};
config = mkIf cfg.enable { time.timeZone = "Europe/Berlin"; };
}