Initial commit
This commit is contained in:
parent
16a2e68c29
commit
c94e028e83
49
hardware/purism_librem_15.nix
Normal file
49
hardware/purism_librem_15.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
# Hardware configuration file common to all Purism Librem 15 devices
|
||||
|
||||
{ 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
|
||||
"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;
|
||||
|
||||
powerManagementdli = {
|
||||
enable = true;
|
||||
cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue