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, ...}:
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 ];
}