From faf7fde49ebd389bd51b10666e667bee04ad5aa4 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Fri, 30 Aug 2024 00:46:59 +0200 Subject: [PATCH] nixos/services.monit: remove `with lib;` --- nixos/modules/services/monitoring/monit.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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 ]; }