From adb0c4ecf965bb2f88b4f3c883c83b2551d6ca6a Mon Sep 17 00:00:00 2001 From: Roy Dumblauskas Date: Thu, 17 Apr 2025 13:30:35 -0500 Subject: [PATCH] placeholder ipAddr file --- hardware-configuration.nix | 25 +++++++++++++++++++++++++ nixos/ip-addresses.nix | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 hardware-configuration.nix diff --git a/hardware-configuration.nix b/hardware-configuration.nix new file mode 100644 index 0000000..60e6ce9 --- /dev/null +++ b/hardware-configuration.nix @@ -0,0 +1,25 @@ +# 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, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "ehci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_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..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp9s0f0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/nixos/ip-addresses.nix b/nixos/ip-addresses.nix index 6904e8f..e972293 100644 --- a/nixos/ip-addresses.nix +++ b/nixos/ip-addresses.nix @@ -1,3 +1,3 @@ { - "nixos-homelab-00": "192.168.1.183" + "hostName"= "000.000.0.000" }