David Arnold a791442a31 nixos/nix-daemon: fix registry flake type
Before this commit, the `flake` option was typed with `types.unspecified`.

This type get's merged via [`mergeDefaultOption`](ebb592a04c/lib/options.nix (L119-L128)), which has a line
```nix
else if all isFunction list then x: mergeDefaultOption loc (map (f: f x) list)
```

`lib.isFunction` detects an attrs in the shape of `{__functor = ...}` as
a function and hence this line substitutes such attrs with a function
(f: f x).

If now, a flake input has a `__functor` as it's output, this will
coerce the once attrs to a function. This breaks a lot of things later
in the stack, for example a later `lib.filterAttrs seive <LAMBDA>` will
fail for obious reasons.

According to @infinisil, `types.unspecified` is due to deprecation. In
the meantime this PR provides a specific fix for the specific problem
discovered.

(cherry picked from commit ecae25c3ef137d972e909eb0e85960d90481789e)
2021-08-01 22:09:08 +00:00
..
2021-05-03 09:41:04 -06:00
2020-03-10 22:45:33 +01:00
2021-01-24 13:17:07 +01:00
2021-04-30 01:48:19 +02:00
2021-01-26 12:24:48 +01:00
2021-04-27 10:41:07 -07:00
2019-10-12 22:25:28 +02:00
2021-02-17 10:43:08 +01:00
2019-12-25 10:33:50 -05:00
2021-01-27 11:44:59 -08:00
2021-04-30 01:48:19 +02:00
2021-04-30 01:48:19 +02:00
2020-11-28 06:50:52 +01:00
2020-10-11 15:55:50 -07:00
2019-10-20 21:20:53 +02:00
2021-03-03 11:15:35 -08:00
2021-04-30 01:48:19 +02:00
2020-10-08 16:04:11 +02:00
2020-12-05 11:02:40 +01:00
2020-12-21 19:41:24 +01:00
2021-04-29 10:52:02 +03:00
2019-10-12 22:25:28 +02:00
2021-02-23 15:35:16 +01:00
2021-04-15 20:57:21 +00:00
2021-02-03 15:59:17 +08:00
2020-11-23 08:42:51 +10:00
2020-08-24 10:10:47 -04:00
2021-01-31 12:17:41 +01:00
2021-01-31 12:59:04 +01:00