# Hardware configuration file common to all Purism Librem 15 ver 3 TPM devices { config, lib, pkgs, ... }: { imports = [ ]; boot = { initrd = { availableKernelModules = [ "xhci_pci" # xHCI host controller driver PCI Bus Glue "ahci" # AHCI SATA support "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 ]; luks.devices."cryptroot".device = "/dev/disk/by-uuid/c3f585b4-6c9d-4b31-af41-b39ef51a8dc2"; }; kernelModules = [ "kvm-intel" ]; # Enable kvm for libvirtd extraModulePackages = [ ]; }; fileSystems."/" = { device = "/dev/disk/by-uuid/c38b3baf-089b-43ee-bc71-e4f7ce2bc51b"; fsType = "ext4"; }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/2896da91-c0ca-4fcd-8859-30724944efb2"; fsType = "ext4"; }; swapDevices = [ { device = "/dev/disk/by-uuid/0d751693-1582-4975-9224-d5cba89fc83e"; } ]; nix.maxJobs = lib.mkDefault 4; powerManagement = { enable = true; cpuFreqGovernor = lib.mkDefault "powersave"; }; }