oizys/overlays/default.nix

31 lines
667 B
Nix
Raw Normal View History

2024-05-06 14:32:00 -05:00
{ inputs, ... }:
let
2024-08-14 09:50:26 -05:00
inherit (builtins)
map
filter
attrNames
readDir
;
# execute and import all overlay files in the current
# directory with the given args
# overlays =
# map
# (f: (import (./. + "/${f}") { inherit inputs; }))
# (filter (f: f != "default.nix") (attrNames (readDir ./.)));
overlays =
readDir ./.
|> attrNames
|> filter (f: f != "default.nix")
|> map (f: import (./. + "/${f}") { inherit inputs; });
2024-05-06 14:32:00 -05:00
in
{
2024-08-14 09:50:26 -05:00
nixpkgs.overlays = overlays ++ [
2024-05-06 14:32:00 -05:00
(final: _prev: {
stable = import inputs.stable {
system = final.system;
config.allowUnfree = true;
};
})
];
2024-02-15 12:01:08 -06:00
}