清理代码

This commit is contained in:
陈浩南 2023-06-15 12:58:33 +08:00
parent e14f57bf54
commit 4973985312
4 changed files with 6 additions and 26 deletions

View File

@ -229,15 +229,15 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1686592866,
"narHash": "sha256-riGg89eWhXJcPNrQGcSwTEEm7CGxWC06oSX44hajeMw=",
"owner": "NixOS",
"lastModified": 1686806693,
"narHash": "sha256-fV02i234CjvgAuJ3fgsqxeB3PjZG1tOSnPON0CdaR2A=",
"owner": "CHN-beta",
"repo": "nixpkgs",
"rev": "0eeebd64de89e4163f4d3cf34ffe925a5cf67a05",
"rev": "a837e80e8ef20f174b1537e082c84f2ac8ec7473",
"type": "github"
},
"original": {
"owner": "NixOS",
"owner": "CHN-beta",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"

View File

@ -3,7 +3,7 @@
inputs =
{
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:CHN-beta/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = { url = "github:edolstra/flake-compat"; flake = false; };

View File

@ -4,19 +4,6 @@
{
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_zen;
# kernelPackages = inputs.pkgs.linuxPackages_zen;
kernelPackages = inputs.pkgs.linuxPackages_xanmod_latest;
initrd.availableKernelModules =
[

View File

@ -11,12 +11,5 @@
alsa = { enable = true; support32Bit = true; };
pulse.enable = true;
};
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"
];
};
}