summaryrefslogtreecommitdiff
path: root/config/hardware/default.nix
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2023-03-25 16:08:07 +0100
committerquentin@aristote.fr <quentin@aristote.fr>2023-03-26 23:10:57 +0200
commit102dd41888bfae9e86233d384613756407b4ce57 (patch)
tree14b07cdae72b680cdbd0a55ae7a2721f180aeb09 /config/hardware/default.nix
parent27baf9433f65d1f645a4899faa08922edb6147fb (diff)
add basic ap stuff: hostapd, dhcpd
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;
}