Skip to content

Commit

Permalink
nixos: use uniq in the type of system.build
Browse files Browse the repository at this point in the history
`unspecified` will happily concatenate strings together from two
unrelated modules, causing spurious errors (see NixOS#155925).
  • Loading branch information
ncfavier committed Jan 20, 2022
1 parent 8e517fc commit 1147d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/system/activation/top-level.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.
'';
Expand Down

0 comments on commit 1147d72

Please sign in to comment.