please work

This commit is contained in:
Sakooooo 2024-02-05 14:11:59 +04:00
parent 6a448c52ab
commit 0b3cb89dc0
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -1,4 +1,10 @@
{inputs, ...}: {
{
inputs,
config,
...
}: let
nvidiaDriverPackage = config.boot.kernelPackages.nvidiaPackages.stable;
in {
# This one brings our custom packages from the 'pkgs' directory
additions = final: _prev: import ../packages {pkgs = final;};
@ -24,6 +30,16 @@
dwm = prev.dwm.overrideAttrs (old: {
src = ../config/dwm;
});
nvidiaDriverPackage = prev.nvidiaDriverPackage.overrideAttrs (old: {
patches =
(old.patches or [])
++ [
(prev.fetchpatch {
url = "https://github.com/gentoo/gentoo/raw/c64caf53/x11-drivers/nvidia-drivers/files/nvidia-drivers-470.223.02-gpl-pfn_valid.patch";
hash = "sha256-eZiQQp2S/asE7MfGvfe6dA/kdCvek9SYa/FFGp24dVg=";
})
];
});
};
# lmao when did i add this