diff options
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..86ed20f --- /dev/null +++ b/flake.nix @@ -0,0 +1,22 @@ +{ + outputs = { self }: + let + nixFiles = builtins.filter + (f: f != "flake.nix" && builtins.match ".*\\.nix" f != null) + (builtins.attrNames (builtins.readDir ./.)); + + # Исправленная функция создания overlay + makeOverlay = file: { + name = builtins.replaceStrings [ ".nix" ] [ "" ] file; + value = inputs: (import (./. + "/${file}") { +# inherit inputs final prev; + inherit inputs; + }); + }; + + in { + overlays = builtins.listToAttrs (map makeOverlay nixFiles); +# allOverlays = builtins.attrValues overlaysSet; + }; +} + |