nixos/services.tzupdate: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-30 00:46:52 +02:00
parent f89578e797
commit b04e01279b

View File

@ -1,13 +1,10 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.tzupdate;
in {
options.services.tzupdate = {
enable = mkOption {
type = types.bool;
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Enable the tzupdate timezone updating service. This provides
@ -17,7 +14,7 @@ in {
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
# We need to have imperative time zone management for this to work.
# This will give users an error if they have set an explicit time
# zone, which is better than silently overriding it.