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.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/config/hardware/default.nix b/config/hardware/default.nix
index 5b4f50f..3abd1bf 100644
--- a/config/hardware/default.nix
+++ b/config/hardware/default.nix
@@ -1,6 +1,8 @@
-{ nixos-hardware, modulesPath, ... }:
-
{
+ nixos-hardware,
+ modulesPath,
+ ...
+}: {
imports = [
(modulesPath + "/profiles/headless.nix")
./hardware-configuration.nix
@@ -12,9 +14,10 @@
personal.hardware = {
usb.enable = true;
firmwareNonFree.enable = true;
+ disks.crypted = "/dev/disk/by-uuid/47e77d74-1aad-4d99-9aa7-568d8524b305";
};
- swapDevices = [{ device = "/swap"; }];
+ swapDevices = [{device = "/swap";}];
# The CPU frequency should stay at the minimum until the router has
# some load to compute.
@@ -24,7 +27,7 @@
# 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.
+ # CPU cache more often.
services.irqbalance.enable = true;
# Re-enable the serial console, disabled by the headless profile