mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
nixos: replace types.anything with submodule type (#2396)
As discussed in this issue: https://github.com/NixOS/nixpkgs/issues/140879 `types.anything` was never meant to be used for arbitrary modules. Co-authored-by: Silvan Mosberger <github@infinisil.com>
This commit is contained in:
parent
cfe82d9f44
commit
8278c14f5f
2 changed files with 8 additions and 2 deletions
|
@ -70,8 +70,11 @@ in
|
|||
|
||||
sharedModules = mkOption {
|
||||
type = with types;
|
||||
listOf (anything // {
|
||||
# TODO: use types.raw once this PR is merged: https://github.com/NixOS/nixpkgs/pull/132448
|
||||
listOf (mkOptionType {
|
||||
name = "submodule";
|
||||
inherit (submodule { }) check;
|
||||
merge = lib.options.mergeOneOption;
|
||||
description = "Home Manager modules";
|
||||
});
|
||||
default = [ ];
|
||||
|
|
|
@ -81,8 +81,11 @@ in {
|
|||
|
||||
sharedModules = mkOption {
|
||||
type = with types;
|
||||
listOf (anything // {
|
||||
# TODO: use types.raw once this PR is merged: https://github.com/NixOS/nixpkgs/pull/132448
|
||||
listOf (mkOptionType {
|
||||
name = "submodule";
|
||||
inherit (submodule { }) check;
|
||||
merge = lib.options.mergeOneOption;
|
||||
description = "Home Manager modules";
|
||||
});
|
||||
default = [ ];
|
||||
|
|
Loading…
Reference in a new issue