mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 01:09:24 +08:00
try to fix rtkit
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user