Things should work for macbook too
This commit is contained in:
parent
4f635b3cd3
commit
d37f6808f5
6 changed files with 86 additions and 75 deletions
19
overlay.nix
Normal file
19
overlay.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ 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
|
||||
{
|
||||
nixpkgs.overlays = [ overlay-unstable overlay-needs-unstable overlay-imported nur.overlay ]; # we assign the overlay created before to the overlays of nixpkgs.
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue