mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-08-21 14:47:18 -05:00
22 lines
596 B
Nix
22 lines
596 B
Nix
{ inputs, ... }:
|
|
let
|
|
defaultOverlays =
|
|
# execute and import all overlay files in the current
|
|
# directory with the given args
|
|
builtins.map
|
|
# execute and import the overlay file
|
|
(f: (import (./. + "/${f}") { inherit inputs; }))
|
|
# find all overlay files in the current directory
|
|
(builtins.filter (f: f != "default.nix") (builtins.attrNames (builtins.readDir ./.)));
|
|
in
|
|
{
|
|
nixpkgs.overlays = defaultOverlays ++ [
|
|
(final: _prev: {
|
|
stable = import inputs.stable {
|
|
system = final.system;
|
|
config.allowUnfree = true;
|
|
};
|
|
})
|
|
];
|
|
}
|