anchor.diff: -{pkgs, config, ...}:
  +{ config, pkgs, ... }:
   
  -###### interface
  -let
  -  inherit (pkgs.lib) mkOption mkIf;
  -
  -  options = {
  -    powerManagement = {
  -
  -      enable = mkOption {
  -        default = false;
  -        description = "Whether to enable power management (ACPI daemon)";
  -      };
  -    };
  -  };
  -in
  -
  -###### implementation
  +with pkgs.lib;
   
   let
   
  
positive.code:       action =
          ''
            #! ${pkgs.bash}/bin/sh
  
            # Suspend to RAM if the lid is closed.  (We also get this event
            # when the lid just opened, in which case we obviously don't
            # want to suspend again.) 
            if grep -q closed /proc/acpi/button/lid/LID/state; then
                sync
                echo mem > /sys/power/state
            fi
          '';
      };
    
  
negative.code:       }
      '';
    
    events = [powerEvent lidEvent acEvent];
    
    # Called when the power button is pressed.
    powerEvent =
      { name = "power-button";
  