packages/linux-lava: hack further to only overlay for linux-lava specifically
wowie wowzers, this is a terrible hack. All this is needed only because I couldn't for the life of me find a way to override rust-bindgen from buildLinux. Simply including the overlay would require rebuilding a crapton of things that depend on rust-bindgen, so well, this'll have to do for now.
This commit is contained in:
parent
24aa8d0174
commit
82839373bf
3 changed files with 14 additions and 5 deletions
15
flake.nix
15
flake.nix
|
|
@ -60,12 +60,21 @@
|
|||
me = prev.callPackage ./packages { inherit inputs; } // { inherit inputs; };
|
||||
})];
|
||||
|
||||
patchOverlaysWithLinuxLava = nixpkgs: arch: ([(self: super: {
|
||||
linuxLavaNixpkgs = import nixpkgs {
|
||||
overlays = [ (import ./overlays/linux-lava.nix) ] ++ overlays;
|
||||
system = arch;
|
||||
};
|
||||
})] ++ overlays);
|
||||
|
||||
mkSystem =
|
||||
if !(self ? rev) then throw "Dirty git tree detected." else
|
||||
nixpkgs: name: arch: enableGUI: extraModules: nixpkgs.lib.nixosSystem {
|
||||
system = arch;
|
||||
modules = [
|
||||
{ nixpkgs.overlays = overlays; }
|
||||
({
|
||||
nixpkgs.overlays = patchOverlaysWithLinuxLava nixpkgs arch;
|
||||
})
|
||||
agenix.nixosModules.age
|
||||
catppuccin.nixosModules.catppuccin
|
||||
(./hosts + "/${name}")
|
||||
|
|
@ -93,8 +102,8 @@
|
|||
|
||||
packages."x86_64-linux" =
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit overlays;
|
||||
pkgs = import nixpkgs rec {
|
||||
overlays = patchOverlaysWithLinuxLava nixpkgs system;
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue