diff options
Diffstat (limited to 'config/hardware')
| -rw-r--r-- | config/hardware/default.nix | 17 |
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; } |
