summary refs log tree commit diff
path: root/nixos/modules/system/activation/top-level.nix
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2022-01-20 23:01:41 +0100
committerNaïm Favier <n@monade.li>2022-01-20 23:28:09 +0100
commit1147d724813cb9dbb8cd8728cf7ad195fa2155ca (patch)
treeef928b1d50a230725e3b89c933c90b8a0944a9ab /nixos/modules/system/activation/top-level.nix
parent8e517fc7eabdd78d950db8504991bc7ad5dbda64 (diff)
downloadnixpkgs-1147d724813cb9dbb8cd8728cf7ad195fa2155ca.tar
nixpkgs-1147d724813cb9dbb8cd8728cf7ad195fa2155ca.tar.gz
nixpkgs-1147d724813cb9dbb8cd8728cf7ad195fa2155ca.tar.bz2
nixpkgs-1147d724813cb9dbb8cd8728cf7ad195fa2155ca.tar.lz
nixpkgs-1147d724813cb9dbb8cd8728cf7ad195fa2155ca.tar.xz
nixpkgs-1147d724813cb9dbb8cd8728cf7ad195fa2155ca.tar.zst
nixpkgs-1147d724813cb9dbb8cd8728cf7ad195fa2155ca.zip
nixos: use `uniq` in the type of system.build
`unspecified` will happily concatenate strings together from two
unrelated modules, causing spurious errors (see #155925).
Diffstat (limited to 'nixos/modules/system/activation/top-level.nix')
-rw-r--r--nixos/modules/system/activation/top-level.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix
index 1c588ff9691..8e53ec1ffab 100644
--- a/nixos/modules/system/activation/top-level.nix
+++ b/nixos/modules/system/activation/top-level.nix
@@ -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.
       '';