summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2021-08-02 21:47:34 +0200
committerSilvan Mosberger <contact@infinisil.com>2022-02-22 15:54:45 +0100
commitff13cd5d3e39fb6dbe456e92e28beb7e8f637f3c (patch)
treefb8ba593432026420aa21218cbe36bcc5c8ab0a9 /lib
parent665344f14839ea286a7aeb329fbf4f44da268ce4 (diff)
downloadnixpkgs-ff13cd5d3e39fb6dbe456e92e28beb7e8f637f3c.tar
nixpkgs-ff13cd5d3e39fb6dbe456e92e28beb7e8f637f3c.tar.gz
nixpkgs-ff13cd5d3e39fb6dbe456e92e28beb7e8f637f3c.tar.bz2
nixpkgs-ff13cd5d3e39fb6dbe456e92e28beb7e8f637f3c.tar.lz
nixpkgs-ff13cd5d3e39fb6dbe456e92e28beb7e8f637f3c.tar.xz
nixpkgs-ff13cd5d3e39fb6dbe456e92e28beb7e8f637f3c.tar.zst
nixpkgs-ff13cd5d3e39fb6dbe456e92e28beb7e8f637f3c.zip
lib/modules: Use types.raw for _module.args
Fixes https://github.com/NixOS/nixpkgs/issues/53458, as types.raw
doesn't allow setting multiple values
Diffstat (limited to 'lib')
-rw-r--r--lib/modules.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/modules.nix b/lib/modules.nix
index f1125aca0a3..e9fc1007fc2 100644
--- a/lib/modules.nix
+++ b/lib/modules.nix
@@ -138,7 +138,7 @@ rec {
             # support for that, in turn it's lazy in its values. This means e.g.
             # a `_module.args.pkgs = import (fetchTarball { ... }) {}` won't
             # start a download when `pkgs` wasn't evaluated.
-            type = types.lazyAttrsOf types.unspecified;
+            type = types.lazyAttrsOf types.raw;
             internal = true;
             description = "Arguments passed to each module.";
           };