diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2023-11-27 08:59:40 +0100 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2023-11-27 08:59:40 +0100 |
| commit | aa6f4fa0d87677c6b62b52595e7e3f29b2e06380 (patch) | |
| tree | 64712b06885e9376a76c7e747a1c34c1bac72829 /hosts/underworld/hardware.nix | |
| parent | 6379844a32d8c5378bba2cad2f5b20c9a4fea1d8 (diff) | |
Create underworld host
Diffstat (limited to 'hosts/underworld/hardware.nix')
| -rw-r--r-- | hosts/underworld/hardware.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/hosts/underworld/hardware.nix b/hosts/underworld/hardware.nix new file mode 100644 index 0000000..305d6ce --- /dev/null +++ b/hosts/underworld/hardware.nix @@ -0,0 +1,26 @@ +# 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. +{ config, lib, modulesPath, ... }: + +{ + imports = + [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + # 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`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp9s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} |
