Today, I noticed that my audio wasn’t working quite right and I couldn’t reboot pipewire (this could be another issue with systemd and systemctl). After a lot of debugging, I decided it may be a nixos-unstable moment (I switched because there were nvidia driver bugs that weren’t being rolled back to 24.05) to try rebuilding with upgrade and restarting. Here is the output of the build attempt:
$ sudo nixos-rebuild switch --upgrade --cores 6
[sudo] password for user:
unpacking channels...
building Nix...
building the system configuration...
Traceback (most recent call last):
File "/nix/store/7qdqmw4vpgf94rpp5xdnnbhwc54cgznc-systemd-boot", line 546, in <module>
main()
File "/nix/store/7qdqmw4vpgf94rpp5xdnnbhwc54cgznc-systemd-boot", line 529, in main
install_bootloader(args)
File "/nix/store/7qdqmw4vpgf94rpp5xdnnbhwc54cgznc-systemd-boot", line 462, in install_bootloader
remove_old_entries(gens, entries)
File "/nix/store/7qdqmw4vpgf94rpp5xdnnbhwc54cgznc-systemd-boot", line 354, in remove_old_entries
os.unlink(disk_entry.path)
FileNotFoundError: [Errno 2] No such file or directory: '/boot/loader/entries/nixos-generation-182-specialisation-multi.conf'
warning: error(s) occurred while switching to the new configuration
For context, I had a specialization, “multi-monitor” bc the nvidia drivers have a major issue that still aren’t fixed at all yet to my understanding. I was told that there may be an issue with the hyphen in the name so I renamed it to “multimonitor” but I still get the same error. There was also a configuration option for counting boot entries (?) that people suggested may be an issue but to my understanding it is disabled by default and I don’t have anywhere in my config or hardware-config that enable it.