* modules/rosenthal/utils/nix.scm (<nix-wrapper>): New data type.
(nix-expressions->profile-build-wrapper, nix-shell-wrapper): Return a value of
it.
(nix-shell-wrapper->package, with-nix-profile): Use it.
* modules/rosenthal/utils/nix.scm (nix-expressions->profile-build-wrapper):
Remove #:link-to argument and get it from command-line instead.
(with-nix-profile): Remove path argument.
* modules/rosenthal/utils/nix.scm (%nix-shell-wrapper-for-profile?): New
parameter.
(with-nix-profile): New macro.
(nix-expressions->profile-build-wrapper, nix-shell-wrapper)
(nix-shell-wrapper->package): Adjust for it.
* modules/rosenthal/utils/nix.scm (%nix-build-profile-paths)
(%nix-build-profile-extra-outputs): New variables.
(ensure-list, installables->nix-expressions)
(nix-expressions->profile-build-wrapper): New procedures.
(nix-shell-wrapper): Use ensure-list.