nixos/nix-darwin: switch sharedModules type to anything with custom check (#1880)
functionTo tries to evaluate functions too quickly and prevents modules from accessing pkgs argument. fixes #1878. Co-authored-by: Pacman99 <pachum99@gmail.com>
This commit is contained in:
parent
ddcd476603
commit
fedfd430f9
|
@ -68,7 +68,11 @@ in
|
|||
};
|
||||
|
||||
sharedModules = mkOption {
|
||||
type = with types; listOf (oneOf [ attrs (functionTo attrs) path ]);
|
||||
type = with types;
|
||||
listOf (anything // {
|
||||
inherit (submodule { }) check;
|
||||
description = "Home Manager modules";
|
||||
});
|
||||
default = [ ];
|
||||
example = literalExample "[ { home.packages = [ nixpkgs-fmt ]; } ]";
|
||||
description = ''
|
||||
|
|
|
@ -75,7 +75,11 @@ in {
|
|||
};
|
||||
|
||||
sharedModules = mkOption {
|
||||
type = with types; listOf (oneOf [ attrs (functionTo attrs) path ]);
|
||||
type = with types;
|
||||
listOf (anything // {
|
||||
inherit (submodule { }) check;
|
||||
description = "Home Manager modules";
|
||||
});
|
||||
default = [ ];
|
||||
example = literalExample "[ { home.packages = [ nixpkgs-fmt ]; } ]";
|
||||
description = ''
|
||||
|
|
Loading…
Reference in a new issue