mirror of
https://github.com/callumio/nixfiles.git
synced 2025-12-17 03:29:20 +00:00
39 lines
863 B
Nix
39 lines
863 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
modulesPath,
|
|
...
|
|
}: {
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
boot = {
|
|
initrd.availableKernelModules = ["xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"];
|
|
initrd.kernelModules = [];
|
|
kernelModules = ["kvm-intel"];
|
|
kernelParams = [
|
|
"i915.enable_guc=2"
|
|
];
|
|
extraModulePackages = [];
|
|
};
|
|
|
|
#boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-uuid/c2f5061f-7577-4947-ba1d-f1ba12ec3271";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
|
device = "/dev/disk/by-uuid/57CE-8609";
|
|
fsType = "vfat";
|
|
options = ["fmask=0077" "dmask=0077"];
|
|
};
|
|
|
|
swapDevices = [];
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
}
|