nixos/nix-daemon: allow registry paths to be... paths

Currently paths are handled by `types.package`, whose semantics are a
bit of a mess. In particular, it converts path values to derivations
using `toDerivation`, which will lead to problems when flake `outPath`s
become paths in https://github.com/NixOS/nix/pull/6530.

This change makes the "incompatible changes" section in the above PR
obsolete: `nix.registry.nixpkgs.flake = nixpkgs;` works as expected (the
flake is copied to the store).

(cherry picked from commit bcb5f0decc)
This commit is contained in:
Naïm Favier
2022-11-29 14:09:41 +01:00
committed by github-actions[bot]
parent 99779ed818
commit d9449adefa

View File

@@ -414,6 +414,7 @@ in
str
int
bool
path
package
]);
in