mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 06:03:15 -06:00
33 lines
795 B
Nix
33 lines
795 B
Nix
{ inputs, ... }:
|
|
let
|
|
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; });
|
|
# map
|
|
# (f: (import (./. + "/${f}") { inherit inputs; }))
|
|
# (filter (f: f != "default.nix") (attrNames (readDir ./.)));
|
|
in
|
|
{
|
|
nixpkgs.overlays = overlays ++ [
|
|
(final: _prev: {
|
|
stable = import inputs.stable {
|
|
system = final.system;
|
|
config.allowUnfree = true;
|
|
};
|
|
})
|
|
];
|
|
}
|