nixos-configuration/hosts/jalr-t520/hardware-configuration.nix
2023-11-08 23:46:20 +00:00

61 lines
1.3 KiB
Nix

{ lib, pkgs, modulesPath, ... }:
{
imports = [
"${modulesPath}/installer/scan/not-detected.nix"
];
boot = {
initrd = {
availableKernelModules = [
"aes_generic"
"aesni_intel"
"ahci"
"cryptd"
"ehci_pci"
"firewire_ohci"
"i915"
"sd_mod"
"sdhci_pci"
"usb_storage"
"usbhid"
];
kernelModules = [ "dm-snapshot" ];
luks.devices = {
pvcrypt = {
device = "/dev/disk/by-uuid/3a1a8fec-b028-45c0-8432-7fcbe4615f44";
preLVM = true;
};
};
};
kernelModules = [ "kvm-intel" ];
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/62e31097-dc6e-4f91-a043-1a6b8a154201";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-uuid/c4df83d7-8985-47df-b5cd-bf18bd490a50";
fsType = "ext2";
options = [ "nodev" "nosuid" "noexec" ];
};
};
boot.loader.grub.devices = [ "/dev/disk/by-id/ata-INTEL_SSDSC2BB016T4_BTWD531101JM1P6HGN" ];
nix.settings.max-jobs = 4;
hardware.cpu.intel.updateMicrocode = true;
powerManagement.cpuFreqGovernor = "performance";
environment.systemPackages = with pkgs; [
intel-media-driver
libva
libva-utils
libva1
];
hardware.opengl.extraPackages = lib.singleton pkgs.vaapiIntel;
}