blob: 8bf1e70ac9a946389aabfc54407f9f53d5b7518d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{ nixos-hardware, ... }:
{
imports = [
./hardware-configuration.nix
nixos-hardware.nixosModules.pcengines-apu
nixos-hardware.nixosModules.common-pc-ssd
nixos-hardware.nixosModules.common-cpu-amd
];
personal.hardware = {
usb.enable = true;
firmwareNonFree.enable = true;
};
swapDevices = [{ device = "/swap"; }];
# The CPU frequency should stay at the minimum until the router has
# some load to compute.
powerManagement.cpuFreqGovernor = "ondemand";
services.acpid.enable = true;
# The service irqbalance is useful as it assigns certain IRQ calls
# to specific CPUs instead of letting the first CPU core to handle
# everything. This is supposed to increase performance by hitting
# CPU cache more often.
services.irqbalance.enable = true;
}
|