anchor.diff:  with lib;
   
   let
  +
  +  canonicalHandlers = {
  +    powerEvent = {
  +      event = "button/power.*";
  +      action = config.services.acpid.powerEventCommands;
  +    };
  +
  +    lidEvent = {
  +      event = "button/lid.*";
  +      action = config.services.acpid.lidEventCommands;
  +    };
  +
  +    acEvent = {
  +      event = "ac_adapter.*";
  +      action = config.services.acpid.acEventCommands;
  +    };
  +  };
   
     acpiConfDir = pkgs.runCommand "acpi-events" {}
       ''
  
positive.code:         type = types.bool;
          default = false;
          description = "Whether to enable the ACPI daemon.";
        };
  
        powerEventCommands = mkOption {
  
negative.code:         type = types.lines;
          default = "";
          description = "Shell commands to execute on an ac_adapter.* event.";
        };
  
      };
  