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

31 lines
711 B
Nix
Raw Normal View History

2024-11-06 11:49:40 -05:00
{ config, lib, pkgs, modulesPath, ... }:
{
boot = {
kernelModules = [ "kvm-intel" ];
initrd = {
2024-11-06 11:54:19 -05:00
availableKernelModules = [
"ehci_pci"
"ata_piix"
"usbhid"
"usb_storage"
"sd_mod"
"sr_mod"
];
2024-11-06 11:49:40 -05:00
kernelModules = [ "dm-snapshot" ];
};
};
2024-11-06 11:54:19 -05:00
fileSystems = {
# Network mounts
"/home/jimbo/JimboNFS" = {
device = "${config.ips.server}:/export/JimboNFS";
fsType = "nfs4";
options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ];
};
};
2024-11-06 11:49:40 -05:00
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}