init
This commit is contained in:
commit
a07bd5fd9b
66 changed files with 6115 additions and 0 deletions
32
hosts/nixarawrui/modules/amdgpu-ignore-ctx-privileges.nix
Normal file
32
hosts/nixarawrui/modules/amdgpu-ignore-ctx-privileges.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
pkgs,
|
||||
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.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 = pkgs.amdgpu-ignore-ctx-privileges;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue