I am unable to access anything on boot. neovim does not exist. hyprland exist but does not boot. I would like for my system to not break on boot.
Github Repo: https://github.com/reyioa/nixconf.
sudo reboot now
sudo nixos-rebuild build
error: flake 'path:/etc/nixos' does not provide attribute 'packages.x86_64-linux.nixosConfigurations."nixos".config.system.build.nixos-rebuild', 'legacyPackages.x86_64-linux.nixosConfigurations."nixos".config.system.build.nixos-rebuild' or 'nixosConfigurations."nixos".config.system.build.nixos-rebuild'
It is unable to run those commands when it breaks, after I fixed the issue by going to the same generation and run the sudden nixos-rebuild switch the error still persists on reboot
I sincerely doubt that was the fix, the error is clearly that you don’t have the correct hostname in your flake:
You probably just happened to fix that issue when you also changed the bootloader. Using grub doesn’t hurt, so whatever, but for anyone reading by, flipping bootloaders doesn’t solve problems like this.
No, that couldn’t have been the issue. I’ve tried to switch hostnames and running the flake before starting using systemd boot. ive tried switching the hostname to nixos also using
It seemed that the grub didn’t properly load my configuration on my system. If switching from grub to systemd boot fixed my problem, it fixed my problem. If I reloaded the configuration everything started working as previously stated. If you want to look at my configuration it is linked up in the first post but your solution didn’t help me at all.