nixos-config/modules/nixos/system/time/default.nix
2024-03-26 22:05:03 +01:00

21 lines
336 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";
};
}