oizys/overlays/default.nix

34 lines
724 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
2024-09-10 14:13:00 -05:00
elem
2024-08-14 09:50:26 -05:00
;
# 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 ./.)));
2024-09-10 14:13:00 -05:00
ignore = ["nimlangserver"];
2024-08-14 09:50:26 -05:00
overlays =
readDir ./.
|> attrNames
2024-09-10 14:13:00 -05:00
|> filter (f: f != "default.nix" || elem f ignore)
2024-08-14 09:50:26 -05:00
|> map (f: import (./. + "/${f}") { inherit inputs; });
2024-09-10 14:13:00 -05:00
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
}