nixos/services.automatic-timezoned: remove `with lib;`

+4 -7
+4 -7
nixos/modules/services/system/automatic-timezoned.nix
··· 4 pkgs, 5 ... 6 }: 7 - 8 - with lib; 9 - 10 let 11 cfg = config.services.automatic-timezoned; 12 in 13 { 14 options = { 15 services.automatic-timezoned = { 16 - enable = mkOption { 17 - type = types.bool; 18 default = false; 19 description = '' 20 Enable `automatic-timezoned`, simple daemon for keeping the system ··· 28 to make the choice deliberate. An error will be presented otherwise. 29 ''; 30 }; 31 - package = mkPackageOption pkgs "automatic-timezoned" { }; 32 }; 33 }; 34 35 - config = mkIf cfg.enable { 36 # This will give users an error if they have set an explicit time 37 # zone, rather than having the service silently override it. 38 time.timeZone = null;
··· 4 pkgs, 5 ... 6 }: 7 let 8 cfg = config.services.automatic-timezoned; 9 in 10 { 11 options = { 12 services.automatic-timezoned = { 13 + enable = lib.mkOption { 14 + type = lib.types.bool; 15 default = false; 16 description = '' 17 Enable `automatic-timezoned`, simple daemon for keeping the system ··· 25 to make the choice deliberate. An error will be presented otherwise. 26 ''; 27 }; 28 + package = lib.mkPackageOption pkgs "automatic-timezoned" { }; 29 }; 30 }; 31 32 + config = lib.mkIf cfg.enable { 33 # This will give users an error if they have set an explicit time 34 # zone, rather than having the service silently override it. 35 time.timeZone = null;