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,
|
2024-02-16 03:26:46 +00:00
|
|
|
modulesPath,
|
2022-03-07 14:26:15 +00:00
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-02-16 03:26:46 +00:00
|
|
|
imports = [(modulesPath + "/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
|
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
|
|
|
};
|
|
|
|
|
2024-02-16 03:26:46 +00:00
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
|
|
|
device = "/dev/disk/by-uuid/0bdc11fc-c497-47ff-bcc2-3044f81f40be";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
"/home" = {
|
|
|
|
device = "/dev/disk/by-uuid/9c8a9dd1-b234-4a6d-ad62-3962e85d4063";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2021-11-16 04:57:23 +00:00
|
|
|
};
|
2020-05-05 13:41:28 +00:00
|
|
|
|
2024-02-16 03:26:46 +00:00
|
|
|
swapDevices = [{device = "/dev/disk/by-uuid/05aed0b0-3a79-44f2-aa4d-e5e5724643f2";}];
|
2020-05-05 13:41:28 +00:00
|
|
|
|
2024-02-16 03:26:46 +00:00
|
|
|
networking.useDHCP = lib.mkDefault true;
|
2020-05-05 13:41:28 +00:00
|
|
|
|
2022-12-02 00:17:28 +00:00
|
|
|
nix.settings.max-jobs = lib.mkDefault 4;
|
2024-02-16 03:26:46 +00:00
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2020-05-05 13:41:28 +00:00
|
|
|
}
|