From fb31348d4dff29ae614ef0072fe978ae7bb96c72 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 29 Dec 2024 21:50:39 +0100 Subject: [PATCH] nixos/services.automatic-timezoned: remove `with lib;` --- nixos/modules/services/system/automatic-timezoned.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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;