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:
LavaDesu 2025-03-15 01:39:55 +11:00
parent 24aa8d0174
commit 82839373bf
Signed by: cilly
GPG key ID: 6500251E087653C9
3 changed files with 14 additions and 5 deletions

View file

@ -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