43 lines
855 B
Nix
43 lines
855 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
modulesPath,
|
|
...
|
|
}: {
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
wireless.bluetooth.enable = true;
|
|
|
|
services.logind = {
|
|
lidSwitch = "ignore";
|
|
powerKey = "suspend";
|
|
};
|
|
|
|
boot = {
|
|
kernelModules = ["kvm-amd"];
|
|
extraModulePackages = [];
|
|
initrd = {
|
|
systemd.enable = true; # needed for auto-unlocking with TPM
|
|
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
|
|
kernelModules = [
|
|
"i915"
|
|
];
|
|
};
|
|
};
|
|
|
|
hardware.graphics = {
|
|
enable = true;
|
|
extraPackages = with pkgs; [
|
|
intel-media-driver
|
|
vaapiIntel
|
|
vpl-gpu-rt
|
|
];
|
|
};
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
}
|