mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 03:29:45 +01:00
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
2 changed files with 10 additions and 2 deletions
|
@ -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