NixOS-Config/hosts/extern/hardware/default.nix

35 lines
768 B
Nix
Raw Permalink Normal View History

{ config, lib, modulesPath, ... }:
{
2024-11-12 04:25:51 -05:00
imports = [ (modulesPath + "/profiles/all-hardware.nix") ];
boot = {
initrd = {
availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usbhid"
2024-11-12 04:25:51 -05:00
"uas"
"usb_storage"
"sd_mod"
];
kernelModules = [
"dm-snapshot"
];
};
};
fileSystems = {
# Remote
"/home/jimbo/JimboNFS" = {
2024-11-12 04:25:51 -05:00
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;
}