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
|
@ -70,8 +70,11 @@ in
|
||||||
|
|
||||||
sharedModules = mkOption {
|
sharedModules = mkOption {
|
||||||
type = with types;
|
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;
|
inherit (submodule { }) check;
|
||||||
|
merge = lib.options.mergeOneOption;
|
||||||
description = "Home Manager modules";
|
description = "Home Manager modules";
|
||||||
});
|
});
|
||||||
default = [ ];
|
default = [ ];
|
||||||
|
|
|
@ -81,8 +81,11 @@ in {
|
||||||
|
|
||||||
sharedModules = mkOption {
|
sharedModules = mkOption {
|
||||||
type = with types;
|
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;
|
inherit (submodule { }) check;
|
||||||
|
merge = lib.options.mergeOneOption;
|
||||||
description = "Home Manager modules";
|
description = "Home Manager modules";
|
||||||
});
|
});
|
||||||
default = [ ];
|
default = [ ];
|
||||||
|
|
Loading…
Reference in a new issue