summaryrefslogtreecommitdiff
path: root/config/hardware/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'config/hardware/default.nix')
-rw-r--r--config/hardware/default.nix17
1 files changed, 16 insertions, 1 deletions
diff --git a/config/hardware/default.nix b/config/hardware/default.nix
index a6219f8..8bf1e70 100644
--- a/config/hardware/default.nix
+++ b/config/hardware/default.nix
@@ -1,13 +1,28 @@
-{ nixos-hardware, ... }: {
+{ 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;
}