Revert "Fix: forward meta attributes in flake-parts module"

This reverts commit e7c6333e06.

The propagated `self` attribute can be an error in non `flake-parts`
modules.
This commit is contained in:
a-kenji
2024-08-07 12:34:03 +02:00
committed by kenji
parent 40ea12610c
commit 10f7509a5f
4 changed files with 29 additions and 26 deletions

View File

@@ -11,7 +11,6 @@
directory, # The directory containing the machines subdirectory # allows to include machine-specific modules i.e. machines.${name} = { ... }
# A map from arch to pkgs, if specified this nixpkgs will be only imported once for each system.
# This improves performance, but all nipxkgs.* options will be ignored.
# deadnix: skip
inventory ? { },
## Sepcial inputs (not passed to the module system as config)
specialArgs ? { }, # Extra arguments to pass to nixosSystem i.e. useful to make self available # A set containing clan meta: name :: string, icon :: string, description :: string
@@ -28,9 +27,14 @@ let
;
self = directory;
};
rest = builtins.removeAttrs attrs [ "specialArgs" ];
meta = attrs.meta or { };
rest = builtins.removeAttrs attrs [
"meta"
"specialArgs"
];
in
eval {
inventory.meta = lib.mapAttrs (_: lib.mkDefault) meta;
imports = [
rest
# implementation