modules.drv-parts: add deprecation error

This commit is contained in:
DavHau 2023-09-09 15:12:58 +02:00
parent e079a21487
commit 16b9241e2b
2 changed files with 7 additions and 1 deletions

View File

@ -46,7 +46,7 @@ in {
imports = flakePartsModules;
options.flake.modules = mkOption {
type = types.anything;
type = types.lazyAttrsOf types.raw;
};
# generates future flake outputs: `modules.<kind>.<module-name>`

View File

@ -0,0 +1,6 @@
{
flake.modules.drv-parts = throw ''
dream2nix.modules.drv-parts is deprecated.
Use dream2nix.modules.dream2nix instead.
'';
}