From aad65f6ec517814304177a7e284c5c3fc7ba7e0b Mon Sep 17 00:00:00 2001 From: jxnshi Date: Sat, 25 Jan 2025 11:21:41 +0100 Subject: [PATCH] Fix --- hardware-configuration.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/hardware-configuration.nix b/hardware-configuration.nix index f50126c..a92e886 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -1,3 +1,6 @@ +# 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, ... }: { @@ -5,7 +8,7 @@ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "ehci_pci" "ata_piix" "firewire_ohci" "usb_storage" "sd_mod" "sr_mod" "sdhci_pci" ]; + boot.initrd.availableKernelModules = [ "ehci_pci" "ata_piix" "sd_mod" "sr_mod" "sdhci_pci" ]; boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; @@ -21,11 +24,17 @@ options = [ "fmask=0077" "dmask=0077" ]; }; - swapDevices = [ - { device = "/dev/disk/by-label/NIXOS_SWAP"; } - ]; + swapDevices = [ + { device = "/dev/disk/by-label/NIXOS_SWAP"; } + ]; + # 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.enp0s25.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -- 2.49.0