| @@ -27,4 +27,6 @@ | |||
| 27 | 27 | network.wait-online.enable = false; | |
| 28 | 28 | tpm2.enable = false; | |
| 29 | 29 | }; | |
| 30 | + | ||
| 31 | + | # dbus-broker ??? | |
| 30 | 32 | } | |
aquafire / performance.nix
Last active 6 months ago
aquafire revised this gist 8 months ago · fb1d791
1 file changed, 2 insertions
aquafire revised this gist 8 months ago · 223e998
1 file changed, 30 insertions
| @@ -0,0 +1,30 @@ | |||
| 1 | + | { | |
| 2 | + | pkgs, | |
| 3 | + | lib, | |
| 4 | + | config, | |
| 5 | + | ... | |
| 6 | + | }: | |
| 7 | + | { | |
| 8 | + | # auto-nice daemon | |
| 9 | + | services.ananicy = with pkgs; { | |
| 10 | + | package = ananicy-cpp; | |
| 11 | + | enable = true; | |
| 12 | + | }; | |
| 13 | + | ||
| 14 | + | # eBPF optimizer | |
| 15 | + | services.bpftune.enable = true; | |
| 16 | + | ||
| 17 | + | # entropy generator | |
| 18 | + | services.haveged.enable = true; | |
| 19 | + | ||
| 20 | + | # interrupt balancer | |
| 21 | + | services.irqbalance.enable = true; | |
| 22 | + | ||
| 23 | + | # systemd tunning | |
| 24 | + | systemd = { | |
| 25 | + | # Due to a bug in systemd-networkd: https://github.com/systemd/systemd/issues/29388 | |
| 26 | + | # we cannot use systemd-networkd-wait-online. | |
| 27 | + | network.wait-online.enable = false; | |
| 28 | + | tpm2.enable = false; | |
| 29 | + | }; | |
| 30 | + | } | |