2024-07-03 19:22:10 +05:30
|
|
|
{ lib, pkgs, ... }: {
|
|
|
|
imports = [ ./filesystem.nix ];
|
|
|
|
|
|
|
|
hardware = {
|
|
|
|
cpu.intel.updateMicrocode = lib.mkDefault true;
|
|
|
|
enableRedistributableFirmware = true;
|
2024-09-14 12:41:59 +05:30
|
|
|
graphics = {
|
|
|
|
enable = true;
|
|
|
|
extraPackages = with pkgs; [ intel-media-driver vpl-gpu-rt libvdpau-va-gl ];
|
|
|
|
};
|
2024-07-03 19:22:10 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
boot = {
|
2024-07-03 22:30:12 +05:30
|
|
|
consoleLogLevel = 4;
|
2024-07-03 19:22:10 +05:30
|
|
|
initrd = {
|
|
|
|
availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "uas" "sd_mod" ];
|
2024-07-03 22:30:12 +05:30
|
|
|
kernelModules = [ "i915" ];
|
2024-07-03 19:22:10 +05:30
|
|
|
systemd.enable = true;
|
|
|
|
};
|
|
|
|
kernelModules = [ "kvm-intel" ];
|
|
|
|
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
|
2024-09-14 12:41:59 +05:30
|
|
|
kernelParams = [ "i915.enable_fbc=1" "i915.enable_psr=2" ];
|
2024-07-03 19:22:10 +05:30
|
|
|
kernel.sysctl = {
|
|
|
|
"vm.swappiness" = 10;
|
|
|
|
"vm.dirty_ratio" = 3;
|
|
|
|
};
|
|
|
|
loader = {
|
|
|
|
efi.canTouchEfiVariables = true;
|
2024-07-05 00:45:04 +05:30
|
|
|
systemd-boot = {
|
|
|
|
enable = true;
|
|
|
|
configurationLimit = 15;
|
|
|
|
};
|
2024-07-03 19:22:10 +05:30
|
|
|
};
|
|
|
|
};
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
|
|
|
}
|