All checks were successful
Check flake / build-amd64-linux (push) Successful in 2m53s
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
modulesPath,
|
|
...
|
|
}:
|
|
|
|
{
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
boot = {
|
|
initrd.availableKernelModules = [
|
|
"xhci_pci"
|
|
"ahci"
|
|
"usbhid"
|
|
"usb_storage"
|
|
"sd_mod"
|
|
];
|
|
kernel.sysctl = {
|
|
"kernel.nmi_watchdog" = 0;
|
|
"vm.laptop_mode" = 5;
|
|
};
|
|
kernelModules = [
|
|
"applesmc"
|
|
"kvm-intel"
|
|
"wl"
|
|
];
|
|
extraModulePackages = [
|
|
config.boot.kernelPackages.broadcom_sta
|
|
config.boot.kernelPackages.nvidiaPackages.legacy_470
|
|
];
|
|
};
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
hardware = {
|
|
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
nvidia = {
|
|
package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
|
|
modesetting.enable = true;
|
|
powerManagement.enable = true;
|
|
};
|
|
graphics = {
|
|
enable = true;
|
|
extraPackages = with pkgs; [
|
|
libvdpau-va-gl
|
|
];
|
|
enable32Bit = true;
|
|
};
|
|
};
|
|
}
|