36 lines
770 B
Nix
36 lines
770 B
Nix
{ config, lib, modulesPath, ... }:
|
|
{
|
|
boot = {
|
|
initrd = {
|
|
availableKernelModules = [
|
|
"nvme"
|
|
"xhci_pci"
|
|
"ahci"
|
|
"usbhid"
|
|
"usb_storage"
|
|
"sd_mod"
|
|
];
|
|
kernelModules = [
|
|
"dm-snapshot"
|
|
"vfio"
|
|
"vfio_pci"
|
|
"vfio_iommu_type1"
|
|
"kvm-amd"
|
|
];
|
|
};
|
|
};
|
|
|
|
fileSystems = {
|
|
# Remote
|
|
"/home/jimbo/JimboNFS" = {
|
|
device = "10.100.0.1:/export/JimboNFS";
|
|
fsType = "nfs4";
|
|
options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ];
|
|
};
|
|
};
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
}
|