feat: generalize SSH key config
This commit is contained in:
@@ -17,8 +17,8 @@ in
|
||||
scope:
|
||||
let
|
||||
email = account.emails.${scope}.address;
|
||||
key = machine.sourceControl.${scope};
|
||||
hasSigningKey = key != null && key.publicKey != null;
|
||||
key = lib.attrByPath [ scope ] null machine.sshKeys;
|
||||
hasSigningKey = key != null;
|
||||
in
|
||||
{
|
||||
allowedSigners = lib.optional hasSigningKey "${email} ${key.publicKey}";
|
||||
|
||||
Reference in New Issue
Block a user