diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2025-03-22 21:47:10 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2025-03-22 21:47:10 +0100 |
| commit | 4a5a9700dd5f60ce95fd53a24e99362ce5be6049 (patch) | |
| tree | e6bf9ce1212a63e312cd8866c8333417d18cf081 /config/hardware/default.nix | |
| parent | e7c2472f62a1b395301c03c83cf93b436fb3a76d (diff) | |
hardware: use generic config for crypted disk
Diffstat (limited to 'config/hardware/default.nix')
| -rw-r--r-- | config/hardware/default.nix | 11 |
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 |
