2021-11-25 11:55:30 +00:00
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
2023-01-31 08:48:10 +00:00
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
2021-11-25 11:55:30 +00:00
|
|
|
|
2024-03-02 04:43:39 +00:00
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
2021-11-25 11:55:30 +00:00
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
2023-02-06 13:19:56 +00:00
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
|
|
boot.loader.systemd-boot = {
|
|
|
|
enable = true;
|
|
|
|
netbootxyz.enable = true;
|
|
|
|
};
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
2021-11-25 11:55:30 +00:00
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
2024-02-02 04:40:16 +00:00
|
|
|
hardware.cpu.intel.updateMicrocode =
|
|
|
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2024-06-07 02:02:52 +00:00
|
|
|
|
|
|
|
boot.initrd.services.udev.rules = ''
|
|
|
|
KERNELS=="input0", SUBSYSTEMS=="input", ATTRS{id/product}=="0001", ATTRS{id/vendor}=="0001", ATTRS{id/version}=="ab83", ENV{LIBINPUT_IGNORE_DEVICE}="1"
|
|
|
|
'';
|
|
|
|
|
|
|
|
services.udev.extraRules = ''
|
|
|
|
KERNELS=="input0", SUBSYSTEMS=="input", ATTRS{id/product}=="0001", ATTRS{id/vendor}=="0001", ATTRS{id/version}=="ab83", ENV{LIBINPUT_IGNORE_DEVICE}="1"
|
|
|
|
'';
|
2021-11-25 11:55:30 +00:00
|
|
|
}
|