From b27dc1ebf37a4e159cdfec8a8d5b04af336206db Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Thu, 25 Mar 2021 13:03:31 -0600 Subject: [PATCH] shareModules: fix module args `functionTo` type causes eager module eval before `_module.args` is passed. Relax submodule type constraint to fix #1878. --- nixos/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/default.nix b/nixos/default.nix index 4b58d154cd43..e6b695767250 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -75,7 +75,7 @@ in { }; sharedModules = mkOption { - type = with types; listOf (oneOf [ attrs (functionTo attrs) path ]); + type = with types; listOf anything; default = [ ]; example = literalExample "[ { home.packages = [ nixpkgs-fmt ]; } ]"; description = ''