3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/services
David Arnold ecae25c3ef
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.
2021-08-01 14:56:13 -05:00
..
admin
amqp
audio slimserver: Fix user creation 2021-07-01 11:33:38 +02:00
backup Merge pull request #110742 from siraben/deprecate-fold 2021-07-27 15:13:31 +07:00
blockchain/ethereum
cluster kubernetes: make corefile configurable 2021-07-28 20:15:57 +01:00
computing
continuous-integration treewide: convert phases that contain ":" to dont* = true (#130500) 2021-07-18 23:42:48 +02:00
databases nixos/postgresql: use postgres 13 for 21.11 (#131018) 2021-07-24 19:12:08 +02:00
desktops nixos/pipewire: add bluez hardware database 2021-07-04 16:20:57 -07:00
development
display-managers
editors
games
hardware sane: Add support for the unfree Fujitsu ScanSnap drivers 2021-08-01 13:45:46 +02:00
logging
mail Merge pull request #110742 from siraben/deprecate-fold 2021-07-27 15:13:31 +07:00
misc nixos/nix-daemon: fix registry flake type 2021-08-01 14:56:13 -05:00
monitoring nixos/prometheus-influxdb-exporter: init 2021-07-26 16:00:01 +02:00
network-filesystems nixos/litestream: init 2021-07-30 17:41:54 +02:00
networking nixos/syncthing: fix curl not retrying on network errors 2021-08-01 15:03:41 +02:00
printing
scheduling
search
security nixos/hockeypuck: Add service for hockeypuck 2021-07-19 07:33:01 +02:00
system
torrent
ttys nixos/agetty: allow overriding the login program 2021-07-19 16:02:46 -07:00
video Merge branch 'master' of https://github.com/nixos/nixpkgs 2021-07-13 10:09:12 -07:00
wayland
web-apps Merge pull request #116578 from MatthewCroughan/node-red-service 2021-07-31 22:57:26 -04:00
web-servers Merge master into staging-next 2021-06-30 12:04:22 +00:00
x11 nixos/gdm: expand gdm.autoSuspend description 2021-06-29 19:35:26 -07:00