diff --git a/nixos/modules/services/system/automatic-timezoned.nix b/nixos/modules/services/system/automatic-timezoned.nix index aa84a8887c87..8fc87fb93cd0 100644 --- a/nixos/modules/services/system/automatic-timezoned.nix +++ b/nixos/modules/services/system/automatic-timezoned.nix @@ -4,17 +4,14 @@ pkgs, ... }: - -with lib; - let cfg = config.services.automatic-timezoned; in { options = { services.automatic-timezoned = { - enable = mkOption { - type = types.bool; + enable = lib.mkOption { + type = lib.types.bool; default = false; description = '' Enable `automatic-timezoned`, simple daemon for keeping the system @@ -28,11 +25,11 @@ in to make the choice deliberate. An error will be presented otherwise. ''; }; - package = mkPackageOption pkgs "automatic-timezoned" { }; + package = lib.mkPackageOption pkgs "automatic-timezoned" { }; }; }; - config = mkIf cfg.enable { + config = lib.mkIf cfg.enable { # This will give users an error if they have set an explicit time # zone, rather than having the service silently override it. time.timeZone = null;