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

View file

@ -2,7 +2,6 @@ builtins.map (path: import path) [
./android-studio.nix
./ccache.nix
./eww.nix
./linux-lava.nix
./material-icons.nix
./rofi.nix
./steam.nix

View file

@ -1,11 +1,12 @@
{
callPackage,
linuxLavaNixpkgs,
inputs
}: rec {
discord-tokyonight = callPackage ./discord-tokyonight { inherit inputs; };
discover-overlay = callPackage ./discover { inherit inputs; };
epson-201112j = callPackage ./epson-201112j { };
linux-lava = callPackage ./linux-lava { inherit inputs; };
linux-lava = linuxLavaNixpkgs.callPackage ./linux-lava { inherit inputs; };
nvim-treesitter-nightly = callPackage ./nvim-treesitter-nightly { inherit inputs; };
packwiz = callPackage ./packwiz { inherit inputs; };
psensor = callPackage ./psensor { };