AMD GPU Kernel patch

This commit is contained in:
2026-01-28 10:44:47 +00:00
parent ec7ada6ade
commit bc3350f501
2 changed files with 16 additions and 15 deletions

View File

@@ -126,17 +126,17 @@
defaultRuntime = true;
autoStart = true;
};
# Kernel patch for SteamVR performance issues on AMD GPUs
# boot.kernelPatches = [
# {
# name = "amdgpu-ignore-ctx-privileges";
# patch = pkgs.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=";
# };
# }
# ];
# Kernel patch for SteamVR performance issues on AMD GPUs (recompiles the kernel)
boot.kernelPatches = [
{
name = "amdgpu-ignore-ctx-privileges";
patch = pkgs.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=";
};
}
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.

View File

@@ -14,6 +14,7 @@
home.packages = with pkgs; [
nerd-fonts.jetbrains-mono
nixfmt
nil
bat
vscode
@@ -81,17 +82,17 @@
ORANGE='\e[38;5;214m'
RESET='\e[0m'
pushd ~/dotfiles
pushd ~/dotfiles > /dev/null
git diff -U0 *.nix
echo -e "''${ORANGE}NixOS Rebuilding...''${RESET}"
if ! sudo nixos-rebuild switch --flake ./nixos#TrudePC &> ~/.nixos-rebuild.log; then
if ! sudo nixos-rebuild switch --flake ./nixos#TrudePC | tee ~/.nixos-rebuild.log; then
cat ~/.nixos-rebuild.log | grep --color error
exit 1
fi
cat ~/.nixos-rebuild.log | grep --color error
echo
echo -e "''${ORANGE}Cleaning up old generations...''${RESET}"
echo -e "''${GRAY}$(sudo nix-collect-garbage --delete-older-than 15d 2>&1)''${RESET}"
popd
popd > /dev/null
'')
];