nixos-config/modules/nixos/system/time/default.nix
2024-04-04 19:37:06 +02:00

20 lines
324 B
Nix

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