Skip to content

Commit

Permalink
lib/modules: Use types.raw for _module.args
Browse files Browse the repository at this point in the history
Fixes NixOS#53458, as types.raw
doesn't allow setting multiple values
  • Loading branch information
infinisil committed Feb 22, 2022
1 parent 665344f commit ff13cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
};
Expand Down

0 comments on commit ff13cd5

Please sign in to comment.