mio-ops/hardware/purism_librem_15.nix

51 lines
1.4 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
{ config, lib, pkgs, ... }:
{
imports = [
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
boot = {
initrd = {
availableKernelModules = [
"xhci_pci" # xHCI host controller driver PCI Bus Glue
"ahci" # AHCI SATA support
2020-10-27 07:02:06 +00:00
"nvme"
2020-05-05 13:41:28 +00:00
"usbhid" # USB HID transport layer
"usb_storage" # USB Mass Storage support
"sd_mod" # SCSI disk support
"aes_x86_64" # AES Cipher Algorithm
"aesni_intel" # AES-NI + SSE2 implementation of AEGIS-128
"cryptd" # Software async crypto daemon
];
2020-10-27 07:02:06 +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
};
kernelModules = [ "kvm-intel" ]; # Enable kvm for libvirtd
};
fileSystems."/" =
2020-10-27 07:02:06 +00:00
{ device = "/dev/disk/by-uuid/848e15eb-992b-499f-89b1-be8bc59af41c";
2020-05-05 13:41:28 +00:00
fsType = "ext4";
};
fileSystems."/boot" =
2020-10-27 07:02:06 +00:00
{ device = "/dev/disk/by-uuid/a9d48855-edaf-40b9-9296-58e9b7c7eb96";
2020-05-05 13:41:28 +00:00
fsType = "ext4";
};
swapDevices =
2020-10-27 07:02:06 +00:00
[ { device = "/dev/disk/by-uuid/ac308d76-cc12-4a73-83ee-64a2ad07b91e"; }
2020-05-05 13:41:28 +00:00
];
nix.maxJobs = lib.mkDefault 4;
2020-05-05 13:51:28 +00:00
powerManagement = {
2020-05-05 13:41:28 +00:00
enable = true;
cpuFreqGovernor = lib.mkDefault "powersave";
};
}