diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2023-03-25 16:08:07 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2023-03-26 23:10:57 +0200 |
| commit | 102dd41888bfae9e86233d384613756407b4ce57 (patch) | |
| tree | 14b07cdae72b680cdbd0a55ae7a2721f180aeb09 /config/hardware | |
| parent | 27baf9433f65d1f645a4899faa08922edb6147fb (diff) | |
add basic ap stuff: hostapd, dhcpd
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; } |
