forked from ners/NixOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardware-configuration.nix
55 lines (49 loc) · 983 Bytes
/
hardware-configuration.nix
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
initrd.availableKernelModules = [
"xhci_pci"
"nvme"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
"nouveau"
];
initrd.kernelModules = [ ];
extraModulePackages = [ ];
loader = {
};
kernelModules = [ "amdgpu" "fuse" ];
/*fuck spectre and meltdown*/
/* #makelinuxgreatagain */
kernelParams = [
"noibrs"
"noibpb"
"nopti"
"nospectre_v2"
"nospectre_v1"
"l1tf=off"
"nospec_store_bypass_disable"
"no_stf_barrier"
"mds=off"
"tsx=on"
"tsx_async_abort=off"
"mitigations=off"
];
};
powerManagement = {
enable = true;
cpuFreqGovernor = lib.mkDefault "performance";
};
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
extraPackages32 = with pkgs.pkgsi686Linux; [ libva ];
setLdLibraryPath = true;
};
hardware.cpu.intel.updateMicrocode = true;
}