nixos/services.monit: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-30 00:46:59 +02:00
parent 5419e3778f
commit faf7fde49e

View File

@ -1,7 +1,4 @@
{config, pkgs, lib, ...}: {config, pkgs, lib, ...}:
with lib;
let let
cfg = config.services.monit; cfg = config.services.monit;
in in
@ -9,17 +6,17 @@ in
{ {
options.services.monit = { options.services.monit = {
enable = mkEnableOption "Monit"; enable = lib.mkEnableOption "Monit";
config = mkOption { config = lib.mkOption {
type = types.lines; type = lib.types.lines;
default = ""; default = "";
description = "monitrc content"; description = "monitrc content";
}; };
}; };
config = mkIf cfg.enable { config = lib.mkIf cfg.enable {
environment.systemPackages = [ pkgs.monit ]; environment.systemPackages = [ pkgs.monit ];
@ -44,5 +41,5 @@ in
}; };
meta.maintainers = with maintainers; [ ryantm ]; meta.maintainers = with lib.maintainers; [ ryantm ];
} }