Hi
Following the https://nixos.org/nixos/manual/index.html#sec-installation and the UEFI-steps led to a failure. The nixos-generate-config
made a configuration file that contains the following two lines:
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
The nixos-install
fails quite similarly to what is described in the issue. It leaves the machine in state that the os does not start.
In the issue thread there is a hint to set canTouchEfiVariables = false
and then the installation works.
The current installation instructions don’t mention anything about that canTouchEfiVariables
and the example 2.4 that contains very short configuration.nix
does not show up canTouchEfiVariables
.
As a user, I trusted that the nixos-generate-config
does it’s job as it should and I was really confused on how to even find out the cause of the problem and how to fix it.
So, are there any chances to either
- change what the
nixos-generate-config
outputs, or - update the installation instructions?
(Or both.) If having that
boot.loader.efi.canTouchEfiVariables = true;
on by default is better than removing or commenting it, there might could be a comment line for the user stating that # In case of efi-related installation failure, try commenting the following line and re-running nixos-install.
or something similar.
And also the installation instructions could might have something about this. The problem of course is that listing different kinds of problem cases can be vast and many and why choose to describe this and that and leaving out some other problem cases. Anyhow, installation problems are something that one sees in the very beginning and can leave a bit shaky experience.