Freeze on boot after update

Hello,

I have a Dell Latitude E6520. I recently ran sudo nixos-rebuild --upgrade boot, and now, whenever I boot, it freezes before getting to the login screen. Older generations still work, but all of the new generations that I create have this problem. I tried checking my journalctl logs, but the machine freezes before journald writes anything to persistent storage. I reverted to the most minimal configuration.nix possible but am still having this problem.

configuration.nix

{ config, pkgs, ... }:

{
  nixpkgs.config.allowUnfree = true;
  imports =
	[ # Include the results of the hardware scan.
  	./hardware-configuration.nix
  	#./include/nixos-test.nix
	];

  # Use the systemd-boot EFI boot loader.
  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;
  system.stateVersion = "22.11";
}

hardware-configuration.nix

{ config, lib, pkgs, modulesPath, ... }:

{
  imports =
	[ (modulesPath + "/installer/scan/not-detected.nix")
	];

  boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "firewire_ohci" "usb_storage" "sd_mod" "sr_mod" "sdhci_pci" ];
  boot.initrd.kernelModules = [ ];
  boot.kernelModules = [ "kvm-intel" "wl" ];
  boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];

  fileSystems."/" =
	{ device = "/dev/disk/by-uuid/eddf4b0e-842e-416d-8197-fadbcc225a6e";
  	fsType = "ext4";
	};

  fileSystems."/boot" =
	{ device = "/dev/disk/by-uuid/BEDD-0168";
  	fsType = "vfat";
	};

  swapDevices =
	[ { device = "/dev/disk/by-uuid/3ba560a2-43c7-4c4e-965e-a921ca046d7b"; }
	];

  networking.useDHCP = lib.mkDefault true;
  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
  hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

What should I do?

1 Like