mio-ops/hardware/purism_librem_15.nix

42 lines
1.2 KiB
Nix
Raw Normal View History

2020-05-05 13:51:28 +00:00
# Hardware configuration file common to all Purism Librem 15 ver 3 TPM devices
2020-05-05 13:41:28 +00:00
{
2022-03-07 14:26:15 +00:00
config,
lib,
pkgs,
...
}: {
imports = [<nixpkgs/nixos/modules/installer/scan/not-detected.nix>];
2020-05-05 13:41:28 +00:00
boot = {
initrd = {
availableKernelModules = [
2021-11-16 04:57:23 +00:00
"xhci_pci" # xHCI host controller driver PCI Bus Glue
"ahci" # AHCI SATA support
2020-10-27 07:02:06 +00:00
"nvme"
2021-11-16 04:57:23 +00:00
"usbhid" # USB HID transport layer
"usb_storage" # USB Mass Storage support
"sd_mod" # SCSI disk support
"aesni_intel" # AES-NI + SSE2 implementation of AEGIS-128
"cryptd" # Software async crypto daemon
2020-05-05 13:41:28 +00:00
];
2022-03-07 14:26:15 +00:00
kernelModules = ["dm-snapshot"];
luks.devices."cryptroot".device = "/dev/disk/by-uuid/52040288-dea9-4e74-9438-d0946b48a1f4";
2020-05-05 13:41:28 +00:00
};
2022-03-07 14:26:15 +00:00
kernelModules = ["kvm-intel"]; # Enable kvm for libvirtd
2020-05-05 13:41:28 +00:00
};
2021-11-16 04:57:23 +00:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/848e15eb-992b-499f-89b1-be8bc59af41c";
fsType = "ext4";
};
2020-05-05 13:41:28 +00:00
2021-11-16 04:57:23 +00:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/a9d48855-edaf-40b9-9296-58e9b7c7eb96";
fsType = "ext4";
};
2020-05-05 13:41:28 +00:00
2022-03-07 14:26:15 +00:00
swapDevices = [{device = "/dev/disk/by-uuid/ac308d76-cc12-4a73-83ee-64a2ad07b91e";}];
2020-05-05 13:41:28 +00:00
nix.maxJobs = lib.mkDefault 4;
}