2023-06-01 14:39:07 -05:00
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
2023-06-08 21:25:22 -05:00
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
2023-06-01 14:39:07 -05:00
|
|
|
|
2023-06-27 19:41:33 -05:00
|
|
|
boot = {
|
|
|
|
initrd = {
|
|
|
|
availableKernelModules =
|
|
|
|
[ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ];
|
|
|
|
kernelModules = [ ];
|
|
|
|
};
|
|
|
|
kernelModules = [ "kvm-intel" ];
|
|
|
|
extraModulePackages = [ ];
|
2023-06-08 21:25:22 -05:00
|
|
|
};
|
2023-06-01 14:39:07 -05:00
|
|
|
|
2023-06-27 19:41:33 -05:00
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
|
|
|
device = "/dev/disk/by-label/NIXROOT";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
2023-07-01 16:10:22 -05:00
|
|
|
"/nix" = {
|
2023-06-27 19:41:33 -05:00
|
|
|
device = "/dev/disk/by-label/SDA-EXT";
|
|
|
|
fsType = "ext4";
|
2023-07-01 16:10:22 -05:00
|
|
|
neededForBoot = true;
|
|
|
|
options = [ "noatime" ];
|
2023-06-27 19:41:33 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/disk/by-label/NIXBOOT";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2023-06-08 21:25:22 -05:00
|
|
|
};
|
2023-06-01 14:39:07 -05:00
|
|
|
|
|
|
|
swapDevices = [ ];
|
|
|
|
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
2023-06-08 21:25:22 -05:00
|
|
|
hardware.cpu.intel.updateMicrocode =
|
|
|
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2023-06-01 14:39:07 -05:00
|
|
|
}
|