Files
frank-nix/hosts/vergil/hardware.nix
T

53 lines
1.2 KiB
Nix

{
config,
lib,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
../shared/fs-layouts/single-disk-xfs.nix
];
boot = {
initrd = {
availableKernelModules = [
"uhci_hcd"
"ehci_pci"
"ata_piix"
"megaraid_sas"
"usb_storage"
"usbhid"
"sd_mod"
"sr_mod"
];
kernelModules = [ ];
};
kernelModules = [ ];
extraModulePackages = [ ];
};
# DO NOT mount by partlabel or other value other than UUID.
# Disk is a child of a VM disk from PROXMOX and WILL NOT
# be picked up automatically elsewise.
fileSystems."/mnt" = {
device = "/dev/disk/by-uuid/1432aeae-71e9-4f34-97dc-cf0fe74a4e00";
fsType = "xfs";
options = [
"noauto"
"x-systemd.automount"
"x-systemd.after=mount-vm-disk.service"
];
};
# Vergil doesn't have a swap device but ../shared/fs-layouts/single-disk-xfs.nix defines one.
# This shouldn't be an issue at runtime but explicit removal reduces log spam.
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}