1
0
Fork 0
forked from foxora/nix
flake-foxora/hosts/nixarawrui/modules/amdgpu-ignore-ctx-privileges.nix

35 lines
866 B
Nix
Raw Normal View History

2026-02-12 18:53:24 +00:00
{
2026-02-13 23:27:35 +10:00
upkgs,
2026-02-12 18:53:24 +00:00
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 {
2026-02-13 23:27:35 +10:00
nixpkgs.channels.default = {
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=";
};
})
];
};
2026-02-12 18:53:24 +00:00
boot.kernelPatches = [
{
name = "amdgpu-ignore-ctx-privileges";
2026-02-13 23:27:35 +10:00
patch = upkgs.amdgpu-ignore-ctx-privileges;
2026-02-12 18:53:24 +00:00
}
];
};
}