nixos: use uniq in the type of system.build

`unspecified` will happily concatenate strings together from two
unrelated modules, causing spurious errors (see #155925).
This commit is contained in:
Naïm Favier
2022-01-20 23:28:09 +01:00
parent 8e517fc7ea
commit 1147d72481
@@ -148,7 +148,7 @@ in
system.build = mkOption {
internal = true;
default = {};
type = types.lazyAttrsOf types.unspecified;
type = with types; lazyAttrsOf (uniq unspecified);
description = ''
Attribute set of derivations used to setup the system.
'';