Do not deprecate directory argument

This commit is contained in:
Jörg Thalheim
2025-02-02 16:10:51 +07:00
committed by clan-bot
parent fe6cca3c47
commit 8634087309
7 changed files with 75 additions and 39 deletions

View File

@@ -2,8 +2,9 @@
lib,
nixpkgs,
clan-core,
specialArgs ? { },
self,
directory ? null,
specialArgs ? { },
}:
# Returns a function that takes self, which should point to the directory of the flake
module:
@@ -14,6 +15,9 @@ module:
modules = [
./interface.nix
module
{ inherit specialArgs; }
{
inherit specialArgs;
directory = lib.mkIf (directory != null) directory;
}
];
}).config