diff --git a/nixos/modules/services/monitoring/hdaps.nix b/nixos/modules/services/monitoring/hdaps.nix index 366367ef835c..ee9b85a50ae4 100644 --- a/nixos/modules/services/monitoring/hdaps.nix +++ b/nixos/modules/services/monitoring/hdaps.nix @@ -1,20 +1,17 @@ { config, lib, pkgs, ... }: - -with lib; - let cfg = config.services.hdapsd; hdapsd = [ pkgs.hdapsd ]; in { options = { - services.hdapsd.enable = mkEnableOption '' + services.hdapsd.enable = lib.mkEnableOption '' Hard Drive Active Protection System Daemon, devices are detected and managed automatically by udev and systemd ''; }; - config = mkIf cfg.enable { + config = lib.mkIf cfg.enable { boot.kernelModules = [ "hdapsd" ]; services.udev.packages = hdapsd; systemd.packages = hdapsd;