machine_setup/nix/configuration/hosts/hydra/hardware-configuration.nix

32 lines
883 B
Nix
Raw Normal View History

2025-03-23 15:28:49 -04:00
{
2025-11-27 17:51:08 -05:00
config,
2025-03-23 15:28:49 -04:00
lib,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
config = {
boot.initrd.availableKernelModules = [
"nvme"
2025-11-27 17:51:08 -05:00
"xhci_pci"
"thunderbolt"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
2025-03-23 15:28:49 -04:00
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
2025-11-27 17:51:08 -05:00
# networking.useDHCP = lib.mkDefault true;
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp58s0.useDHCP = lib.mkDefault true;
};
2025-03-23 15:28:49 -04:00
}