monado: Add amdgpu patch + disable for perso-desktop
All checks were successful
check / check (push) Successful in 34s
All checks were successful
check / check (push) Successful in 34s
This commit is contained in:
parent
1c2010abdc
commit
00f0381893
3 changed files with 19 additions and 4 deletions
|
@ -55,8 +55,6 @@
|
||||||
printing.enable = true;
|
printing.enable = true;
|
||||||
steering-wheel.enable = true;
|
steering-wheel.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.monado.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
chaotic.mesa-git = {
|
chaotic.mesa-git = {
|
||||||
|
|
|
@ -9,8 +9,6 @@
|
||||||
kitty.enable = true;
|
kitty.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
configs.monado.enable = true;
|
|
||||||
|
|
||||||
editors = {
|
editors = {
|
||||||
neovim.enable = true;
|
neovim.enable = true;
|
||||||
vscode.enable = true;
|
vscode.enable = true;
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
|
cfgAmdgpu = config.modules.system.hardware.graphics.amdgpu;
|
||||||
cfg = config.modules.system.services.monado;
|
cfg = config.modules.system.services.monado;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -9,8 +10,15 @@ in
|
||||||
enable = mkEnableOption ''
|
enable = mkEnableOption ''
|
||||||
Enable monado with my custom configurations
|
Enable monado with my custom configurations
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
enableAmdgpuPatch = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
description = "Patch kernel to disable CAP_SYS_NICE on amdgpu. Required to allow high priority queues.";
|
||||||
|
default = cfgAmdgpu.enable;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
# https://wiki.nixos.org/wiki/VR
|
||||||
# https://github.com/NixOS/nixpkgs/issues/258196
|
# https://github.com/NixOS/nixpkgs/issues/258196
|
||||||
services.monado = {
|
services.monado = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -28,5 +36,16 @@ in
|
||||||
XRT_COMPOSITOR_COMPUTE = "1";
|
XRT_COMPOSITOR_COMPUTE = "1";
|
||||||
WMR_HANDTRACKING = "0";
|
WMR_HANDTRACKING = "0";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.kernelPatches = mkIf cfg.enableAmdgpuPatch [
|
||||||
|
{
|
||||||
|
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=";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue