nixos/flake/overlays.nix

22 lines
334 B
Nix
Raw Normal View History

{
self,
inputs,
lib,
rootPath,
...
2025-07-13 06:04:55 +08:00
}:
let
inherit (self) outputs;
2025-07-13 06:04:55 +08:00
importWithArgs = lib.flip import { inherit inputs outputs; };
in
{
flake.overlays =
with lib;
pipe
[
"modifications"
"additions"
]
[ (flip genAttrs (name: importWithArgs (rootPath + "/overlays/${name}"))) ];
}