From 16b9241e2b08c707b975549a343a558da3bed368 Mon Sep 17 00:00:00 2001 From: DavHau Date: Sat, 9 Sep 2023 15:12:58 +0200 Subject: [PATCH] modules.drv-parts: add deprecation error --- modules/flake-parts/all-modules.nix | 2 +- modules/flake-parts/drv-parts-deprecated.nix | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 modules/flake-parts/drv-parts-deprecated.nix diff --git a/modules/flake-parts/all-modules.nix b/modules/flake-parts/all-modules.nix index 1aa6b06e..76825f21 100644 --- a/modules/flake-parts/all-modules.nix +++ b/modules/flake-parts/all-modules.nix @@ -46,7 +46,7 @@ in { imports = flakePartsModules; options.flake.modules = mkOption { - type = types.anything; + type = types.lazyAttrsOf types.raw; }; # generates future flake outputs: `modules..` diff --git a/modules/flake-parts/drv-parts-deprecated.nix b/modules/flake-parts/drv-parts-deprecated.nix new file mode 100644 index 00000000..23e12ac2 --- /dev/null +++ b/modules/flake-parts/drv-parts-deprecated.nix @@ -0,0 +1,6 @@ +{ + flake.modules.drv-parts = throw '' + dream2nix.modules.drv-parts is deprecated. + Use dream2nix.modules.dream2nix instead. + ''; +}