1
0
Fork 0
forked from foxora/nix
flake-foxora/hosts/nixarawrui/modules/amdgpu-ignore-ctx-privileges.nix
2026-03-08 03:11:23 +10:00

34 lines
858 B
Nix

{
upkgs,
lib,
config,
...
}: let
enabled = config.boot.kernelPatchesOptions.amd-ignore-ctx-privileges;
in {
options = {
boot.kernelPatchesOptions.amd-ignore-ctx-privileges =
lib.mkEnableOption "amd-ignore-ctx-privileges";
};
config = lib.mkIf enabled {
nixpkgs.channels = {
upkgs.overlays = [
(self: super: {
amdgpu-ignore-ctx-privileges = super.fetchpatch {
name = "cap_sys_nice_begone.patch";
url = "https://github.com/Frogging-Family/community-patches/raw/master/linux61-tkg/cap_sys_nice_begone.mypatch";
hash = "sha256-Y3a0+x2xvHsfLax/uwycdJf3xLxvVfkfDVqjkxNaYEo=";
};
})
];
};
boot.kernelPatches = [
{
name = "amdgpu-ignore-ctx-privileges";
patch = upkgs.amdgpu-ignore-ctx-privileges;
}
];
};
}