anchor.diff:  let
   
     cfg = config.powerManagement;
  -
  -  sleepHook = pkgs.writeScript "sleep-hook.sh"
  -    ''
  -      #! ${pkgs.stdenv.shell}
  -      action="$1"
  -      case "$action" in
  -          hibernate|suspend)
  -              ${cfg.powerDownCommands}
  -              ;;
  -          thaw|resume)
  -              ${cfg.resumeCommands}
  -              ${cfg.powerUpCommands}
  -              ;;
  -      esac
  -    '';
   
   in
   
  
positive.code: 
      powerManagement.cpuFreqGovernor = mkDefault "ondemand";
      powerManagement.scsiLinkPolicy = mkDefault "min_power";
      
    };
  
  }
  
negative.code:     # Enable the ACPI daemon.  Not sure whether this is essential.
      services.acpid.enable = true;
  
      boot.kernelModules =
        [ "acpi_cpufreq" "cpufreq_performance" "cpufreq_powersave" "cpufreq_ondemand"
          "cpufreq_conservative"
  