nix-home/overlay.nix

27 lines
884 B
Nix
Raw Normal View History

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; };
unfree = import nixpkgs { 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}";
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
nur.overlay
2021-11-29 18:17:20 +00:00
2022-07-04 19:41:04 +00:00
# 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