Archived
0
0
Fork 0
This repository has been archived on 2024-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
flake/devices/skynet/hardware.nix

35 lines
839 B
Nix
Raw Normal View History

2022-12-31 09:27:24 +00:00
{
2023-01-02 07:09:38 +00:00
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
2022-12-31 09:27:24 +00:00
2023-01-02 07:09:38 +00:00
boot = {
initrd = {
availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"];
kernelModules = [];
};
kernelModules = ["kvm-intel"];
kernelParams = ["i915.force_probe=46a6"];
2023-01-02 07:09:38 +00:00
extraModulePackages = [];
};
2022-12-31 09:27:24 +00:00
2023-01-02 07:09:38 +00:00
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/d0dfd8f7-355c-4d81-a20b-52b522914b96";
fsType = "xfs";
};
"/boot/efi" = {
device = "/dev/disk/by-uuid/FD80-0AEA";
fsType = "vfat";
};
};
2022-12-31 09:27:24 +00:00
2023-01-02 07:09:38 +00:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2022-12-31 09:27:24 +00:00
}