diff options
author | Naïm Favier <n@monade.li> | 2022-01-20 23:01:41 +0100 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2022-01-20 23:28:09 +0100 |
commit | 1147d724813cb9dbb8cd8728cf7ad195fa2155ca (patch) | |
tree | ef928b1d50a230725e3b89c933c90b8a0944a9ab /nixos/modules/system/activation/top-level.nix | |
parent | 8e517fc7eabdd78d950db8504991bc7ad5dbda64 (diff) | |
download | nixpkgs-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.nix | 2 |
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. ''; |