nixos/flake/overlays.nix

20 lines
310 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 =
[
"modifications"
"additions"
]
|> (with lib; flip genAttrs (name: importWithArgs (rootPath + "/overlays/${name}")));
}