1 { config, lib, pkgs, ... }:
6 cfg = config.services.hdapsd;
7 hdapsd = [ pkgs.hdapsd ];
11 services.hdapsd.enable = mkEnableOption
13 Hard Drive Active Protection System Daemon,
14 devices are detected and managed automatically by udev and systemd
18 config = mkIf cfg.enable {
19 boot.kernelModules = [ "hdapsd" ];
20 services.udev.packages = hdapsd;
21 systemd.packages = hdapsd;