anchor.diff:          default = false;
           description = "Whether to enable the ACPI daemon.";
         };
  -      
  +
  +      powerEventCommands = mkOption {
  +        default = "";
  +        description = "Shell commands to execute on a button/power.* event.";
  +      };
  +
  +      lidEventCommands = mkOption {
  +        default = "";
  +        description = "Shell commands to execute on a button/lid.* event.";
  +      };
  +
  +      acEventCommands = mkOption {
  +        default = "";
  +        description = "Shell commands to execute on a ac_adapter.* event.";
  +      };
  +
       };
       
     };
  
positive.code:       action = 
          ''
            #! ${pkgs.bash}/bin/sh
          '';
      };
    
  
negative.code:       action =
          ''
            #! ${pkgs.bash}/bin/sh
            ${config.services.acpid.lidEventCommands}
          '';
      };
    
  