From 102dd41888bfae9e86233d384613756407b4ce57 Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sat, 25 Mar 2023 16:08:07 +0100 Subject: add basic ap stuff: hostapd, dhcpd --- config/hardware/default.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'config/hardware') 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; } -- cgit v1.2.3