anchor.diff:        "time-sync.target"
         #"cryptsetup.target"
         "sigpwr.target"
  +
  +      # Rescue/emergency.
  +      "rescue.target"
  +      "rescue.service"
  +      "emergency.target"
  +      "emergency.service"
   
         # Udev.
         "systemd-udevd-control.socket"
  
positive.code:       };
  
      boot.systemd.units =
        { "rescue.service".text = rescueService; }
        // mapAttrs' (n: v: nameValuePair "${n}.target" (targetToUnit n v)) cfg.targets
        // mapAttrs' (n: v: nameValuePair "${n}.service" (serviceToUnit n v)) cfg.services
        // mapAttrs' (n: v: nameValuePair "${n}.socket" (socketToUnit n v)) cfg.sockets
        // listToAttrs (map
  
negative.code:       "shutdown.target.wants"
      ];
  
    makeJobScript = name: text:
      let x = pkgs.writeTextFile { name = "unit-script"; executable = true; destination = "/bin/${name}"; inherit text; };
      in "${x}/bin/${name}";
  