xin/hosts/router/hardware-configuration.nix

31 lines
907 B
Nix
Raw Permalink Normal View History

2022-10-04 21:17:52 -06:00
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
2023-07-11 09:12:50 -06:00
config,
lib,
modulesPath,
...
}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
2022-10-04 21:17:52 -06:00
2022-10-14 16:55:25 -06:00
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.useOSProber = true;
2023-07-11 09:12:50 -06:00
boot.initrd.availableKernelModules = ["ehci_pci" "ahci" "xhci_pci" "usb_storage" "usbhid" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["nf_tables" "nf_tables_ipv6" "nf_conntrack_tftp"];
boot.extraModulePackages = [];
2022-10-04 21:17:52 -06:00
2022-10-04 21:57:49 -06:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/4c84fd36-f143-4db8-bfe5-65de0287f894";
2022-10-04 21:57:49 -06:00
fsType = "ext4";
};
2022-10-04 21:17:52 -06:00
2023-07-11 09:12:50 -06:00
swapDevices = [];
2022-10-04 21:17:52 -06:00
2022-10-04 21:57:49 -06:00
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
2022-10-04 21:17:52 -06:00
}