system: set rescue password in systemd initrd

This commit is contained in:
NullBite 2024-07-05 18:34:31 -04:00
parent f5fd9b7187
commit 1e6fe4a8ef
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -129,6 +129,10 @@ in
enableSSHSupport = lib.mkDefault false;
};
# initrd rescue password (can store plain hash since it is extremely
# unlikely to be brute forced)
boot.initrd.systemd.emergencyAccess = "$2b$15$jljA4yma8GrD2LmvhrlUkuXWBry/0jhMnXs1qB1y/byBGXKq74wMK";
boot.loader.systemd-boot.configurationLimit = lib.mkDefault 15;
# see: