2022-07-04 19:41:04 +00:00
|
|
|
{ nixpkgs, nixpkgs-unstable, nur, ... }@inputs:
|
2021-10-29 17:31:16 +00:00
|
|
|
let
|
|
|
|
overlay-unstable = final: prev: {
|
|
|
|
unstable = import nixpkgs-unstable { config.allowUnfree = true; system = prev.system; };
|
2022-07-04 19:41:04 +00:00
|
|
|
x86 = import nixpkgs-unstable { system = prev.system; config.allowUnsupportedSystem = true; };
|
2021-10-29 17:31:16 +00:00
|
|
|
};
|
|
|
|
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: {
|
2022-07-04 19:41:04 +00:00
|
|
|
rnix-lsp = inputs.rnix-lsp.defaultPackage."${prev.system}";
|
2022-07-06 20:26:50 +00:00
|
|
|
|
|
|
|
# A list of source-style inputs.
|
|
|
|
sources = final.lib.attrsets.filterAttrs (name: f: !(builtins.hasAttr "outputs" f)) inputs;
|
2021-10-29 17:31:16 +00:00
|
|
|
};
|
2022-07-06 19:56:28 +00:00
|
|
|
|
2022-07-15 00:15:49 +00:00
|
|
|
overlay-versioning = final: prev: { };
|
2022-09-02 21:07:53 +00:00
|
|
|
|
|
|
|
overlay-libs = final: prev: {
|
|
|
|
libs.crane = inputs.crane.lib.${prev.system};
|
|
|
|
};
|
2021-10-29 17:31:16 +00:00
|
|
|
in
|
2022-07-04 19:41:04 +00:00
|
|
|
[
|
|
|
|
(import ./overlays/openrazer)
|
|
|
|
overlay-unstable
|
|
|
|
overlay-needs-unstable
|
|
|
|
overlay-imported
|
2022-07-06 19:56:28 +00:00
|
|
|
overlay-versioning
|
2022-09-02 21:07:53 +00:00
|
|
|
overlay-libs
|
2022-07-04 19:41:04 +00:00
|
|
|
nur.overlay
|
2021-11-29 18:17:20 +00:00
|
|
|
|
2022-07-04 19:41:04 +00:00
|
|
|
# Bug fixes
|
|
|
|
] # we assign the overlay created before to the overlays of nixpkgs.
|
2021-10-29 17:31:16 +00:00
|
|
|
|