blob: b62a3233663eea9afb813b491e3fc2cab7f6c517 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ config, lib, inputs, pkgs, modulesPath, ... }:
let
powerMode = "performance";
in
{
imports = [
./disks.nix
"${modulesPath}/profiles/all-hardware.nix"
];
boot = {
initrd = {
availableKernelModules = [ "xhci_pci" "usb_storage" "sd_mod" "sdhci_acpi" "aesni_intel" "cryptd" ];
kernelModules = [ ];
};
kernelPackages = pkgs.linuxPackages_latest;
kernelModules = [ "kvm_intel" "amdgpu" ];
extraModulePackages = [ ];
kernelParams = [ "boot.shell_on_fail" "net.ifnames=0" "biosdevname=0" "iomem=relaxed" "mitigations=off" ];
};
powerManagement.cpuFreqGovernor = powerMode;
services = {
xserver = {
videoDrivers = [ "amdgpu" ];
};
fstrim.enable = true;
};
hardware = {
cpu.intel.updateMicrocode = true;
graphics = {
enable = true;
};
};
}
|