diff --git a/nixos/modules/services/monitoring/monit.nix b/nixos/modules/services/monitoring/monit.nix index 379ee967620e..3fa4e178b113 100644 --- a/nixos/modules/services/monitoring/monit.nix +++ b/nixos/modules/services/monitoring/monit.nix @@ -1,7 +1,4 @@ {config, pkgs, lib, ...}: - -with lib; - let cfg = config.services.monit; in @@ -9,17 +6,17 @@ in { options.services.monit = { - enable = mkEnableOption "Monit"; + enable = lib.mkEnableOption "Monit"; - config = mkOption { - type = types.lines; + config = lib.mkOption { + type = lib.types.lines; default = ""; description = "monitrc content"; }; }; - config = mkIf cfg.enable { + config = lib.mkIf cfg.enable { environment.systemPackages = [ pkgs.monit ]; @@ -44,5 +41,5 @@ in }; - meta.maintainers = with maintainers; [ ryantm ]; + meta.maintainers = with lib.maintainers; [ ryantm ]; }