mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 04:38:44 +08:00
清理代码
This commit is contained in:
parent
e14f57bf54
commit
4973985312
10
flake.lock
10
flake.lock
@ -229,15 +229,15 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1686592866,
|
"lastModified": 1686806693,
|
||||||
"narHash": "sha256-riGg89eWhXJcPNrQGcSwTEEm7CGxWC06oSX44hajeMw=",
|
"narHash": "sha256-fV02i234CjvgAuJ3fgsqxeB3PjZG1tOSnPON0CdaR2A=",
|
||||||
"owner": "NixOS",
|
"owner": "CHN-beta",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0eeebd64de89e4163f4d3cf34ffe925a5cf67a05",
|
"rev": "a837e80e8ef20f174b1537e082c84f2ac8ec7473",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "CHN-beta",
|
||||||
"ref": "nixos-unstable",
|
"ref": "nixos-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
inputs =
|
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";
|
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.05";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
flake-compat = { url = "github:edolstra/flake-compat"; flake = false; };
|
flake-compat = { url = "github:edolstra/flake-compat"; flake = false; };
|
||||||
|
@ -4,19 +4,6 @@
|
|||||||
{
|
{
|
||||||
boot =
|
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;
|
kernelPackages = inputs.pkgs.linuxPackages_xanmod_latest;
|
||||||
initrd.availableKernelModules =
|
initrd.availableKernelModules =
|
||||||
[
|
[
|
||||||
|
@ -11,12 +11,5 @@
|
|||||||
alsa = { enable = true; support32Bit = true; };
|
alsa = { enable = true; support32Bit = true; };
|
||||||
pulse.enable = 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"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user