I did some research, seems like this is a false positive bug; there actually is no issue with the boot loader so it should be safe to ignore the error, so following this person’s advice, setting boot.loader.systemd-boot.graceful = true; in my configuration.nix fixed my issues.
Links related to the issue if you’re curious:
- `bootctl update` exits with code 1 despite succeeding · Issue #37664 · systemd/systemd · GitHub
- bootctl recognizes the file it just updated as already up-to-date and fails · Issue #33392 · systemd/systemd · GitHub
- bootctl: do not fail when the same file is updated multiple times by yuwata · Pull Request #33400 · systemd/systemd · GitHub
- Can't deploy nixos config due to systemd-boot · Issue #331170 · NixOS/nixpkgs · GitHub
- systemd-boot: installation hard-fails when no bootloader was previously installed · Issue #201677 · NixOS/nixpkgs · GitHub
- systemd: bootctl --root --install-source=image still dereferences NixOS /nix/store path inside foreign image roots · Issue #510074 · NixOS/nixpkgs · GitHub
- `bootctl update` exits with code 1 despite succeeding · Issue #37664 · systemd/systemd · GitHub
- 'bootctl update --graceful' does not ignore EFI variable errors as documented · Issue #26773 · systemd/systemd · GitHub