2021-10-29 17:31:16 +00:00
|
|
|
{ nixpkgs, nixpkgs-unstable, nur, ... }@inputs: system:
|
|
|
|
let
|
|
|
|
overlay-unstable = final: prev: {
|
|
|
|
unstable = import nixpkgs-unstable { config.allowUnfree = true; system = prev.system; };
|
|
|
|
unfree = import nixpkgs { config.allowUnfree = true; system = prev.system; };
|
|
|
|
x86 = import nixpkgs-unstable { system = "${system}"; config.allowUnsupportedSystem = true; };
|
|
|
|
};
|
|
|
|
overlay-needs-unstable = final: prev: {
|
|
|
|
# override some packages that needs unstable that cannot be changed in the setup.
|
|
|
|
nix-direnv = prev.unstable.nix-direnv;
|
|
|
|
};
|
|
|
|
overlay-imported = final: prev: {
|
|
|
|
rnix-lsp = inputs.rnix-lsp.defaultPackage."${system}";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
2021-11-29 18:17:20 +00:00
|
|
|
nixpkgs.overlays = [
|
2021-11-30 05:17:15 +00:00
|
|
|
(import ./overlays/openrazer)
|
2021-11-29 18:17:20 +00:00
|
|
|
overlay-unstable
|
|
|
|
overlay-needs-unstable
|
|
|
|
overlay-imported
|
|
|
|
nur.overlay
|
|
|
|
|
|
|
|
# Bug fixes
|
|
|
|
(import ./overlays/bugfixes/delta)
|
|
|
|
]; # we assign the overlay created before to the overlays of nixpkgs.
|
2021-10-29 17:31:16 +00:00
|
|
|
}
|
|
|
|
|