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};
|
|
|
|
};
|
2023-02-25 20:43:29 +00:00
|
|
|
|
|
|
|
overlay-aarch64-linux = final: prev:
|
|
|
|
{
|
|
|
|
fd =
|
|
|
|
if prev.system == "aarch64-linux" then
|
|
|
|
prev.fd.overrideAttrs
|
|
|
|
(attrs:
|
|
|
|
{
|
|
|
|
preBuild = ''
|
|
|
|
export JEMALLOC_SYS_WITH_LG_PAGE=16
|
|
|
|
'';
|
|
|
|
}) else prev.fd;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
overlay-asahi = inputs.nixos-m1.overlays.default;
|
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
|
2023-02-25 20:43:29 +00:00
|
|
|
overlay-asahi
|
|
|
|
overlay-aarch64-linux
|
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
|
|
|
|