emergencyMode, emergencyAccess: cross reference options in docs.

I was confused why I could not get an emergency access console despite setting systemd.emergencyMode=true.

Turns out there is another similar option `boot.initrd.systemd.emergencyAccess` that I should have used.

This is confusing and this change should make it more clear vie the docs of both these options.

DavHau d5d323a9 2795c506

Changed files
+10 -1
nixos
modules
system
+8 -1
nixos/modules/system/boot/emergency-mode.nix
···
-
{ config, lib, ... }:
{
###### interface
···
instances) have no console of any kind, emergency mode doesn't
make sense, and it's better to continue with the boot insofar
as possible.
'';
};
···
+
{
+
config,
+
lib,
+
options,
+
...
+
}:
{
###### interface
···
instances) have no console of any kind, emergency mode doesn't
make sense, and it's better to continue with the boot insofar
as possible.
+
+
For initrd emergency access, use ${options.boot.initrd.systemd.emergencyAccess} instead.
'';
};
+2
nixos/modules/system/boot/systemd/initrd.nix
···
Can also be set to a hashed super user password to allow
authenticated access to the emergency mode.
'';
default = false;
};
···
Can also be set to a hashed super user password to allow
authenticated access to the emergency mode.
+
+
For emergency access after initrd, use `${options.systemd.enableEmergencyMode}` instead.
'';
default = false;
};