try to fix rtkit

This commit is contained in:
2023-06-15 09:56:25 +08:00
parent 46ca9a2fd3
commit 6f2127c8f8
2 changed files with 20 additions and 13 deletions

View File

@@ -1,21 +1,22 @@
inputs:
{ pkgs, ... }@inputs:
{
config =
{
boot =
{
kernelPackages = ( inputs.inputs.nixpkgs.lib.nixosSystem
{
system = "x86_64-linux";
modules =
[{
nixpkgs =
{
hostPlatform = { system = "x86_64-linux"; gcc = { arch = "alderlake"; tune = "alderlake"; }; };
config.allowUnfree = true;
};
}];
} ).pkgs.linuxPackages_xanmod_latest;
# kernelPackages = ( inputs.inputs.nixpkgs.lib.nixosSystem
# {
# system = "x86_64-linux";
# modules =
# [{
# nixpkgs =
# {
# hostPlatform = { system = "x86_64-linux"; gcc = { arch = "alderlake"; tune = "alderlake"; }; };
# config.allowUnfree = true;
# };
# }];
# } ).pkgs.linuxPackages_zen;
kernelPackages = inputs.pkgs.linuxPackages_zen;
initrd.availableKernelModules =
[
"ahci" "i915" "intel_cstate" "nvidia" "nvidia_drm" "nvidia_modeset" "nvidia_uvm" "nvme" "sr_mod"

View File

@@ -1,3 +1,4 @@
{ pkgs, ... }@inputs:
{
config =
{
@@ -12,5 +13,10 @@
};
systemd.user.services.pipewire.serviceConfig.Nice = -20;
systemd.user.services.pipewire-pulse.serviceConfig.Nice = -20;
systemd.services.rtkit-daemon.serviceConfig.ExecStart =
[
""
"${inputs.pkgs.rtkit.outPath}/libexec/rtkit-daemon --our-realtime-priority=90 --max-realtime-priority=89 --min-nice-level=-19 --scheduling-policy=RR --rttime-usec-max=2000000 --users-max=100 --processes-per-user-max=1000 --threads-per-user-max=10000 --actions-burst-sec=10 --actions-per-burst-max=1000 --canary-cheep-msec=30000 --canary-watchdog-msec=60000"
];
};
}