refactor: keys & emails
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
pkgs,
|
||||
username,
|
||||
userfullname,
|
||||
useremail,
|
||||
emails,
|
||||
hosts,
|
||||
...
|
||||
}:
|
||||
let
|
||||
@@ -21,14 +22,18 @@ in
|
||||
enable = true;
|
||||
settings = {
|
||||
gpg.ssh.allowedSignersFile =
|
||||
(pkgs.writeText "allowed_signers" ''
|
||||
imxyy1soope1@gmail.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOEFLUkyeaK8ZPPZdVNEmtx8zvoxi7xqS2Z6oxRBuUPO imxyy@imxyy-nix
|
||||
imxyy@imxyy.top ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOEFLUkyeaK8ZPPZdVNEmtx8zvoxi7xqS2Z6oxRBuUPO imxyy@imxyy-nix
|
||||
'').outPath;
|
||||
hosts
|
||||
|> lib.mapAttrsToList (
|
||||
host: key: map (email: "${email} ${key} ${host}") (builtins.attrValues emails)
|
||||
)
|
||||
|> lib.flatten
|
||||
|> lib.concatStringsSep "\n"
|
||||
|> pkgs.writeText "allowed-signers"
|
||||
|> toString;
|
||||
push.autoSetupRemote = true;
|
||||
user = {
|
||||
name = userfullname;
|
||||
email = useremail;
|
||||
email = emails.default;
|
||||
};
|
||||
};
|
||||
signing = {
|
||||
|
||||
Reference in New Issue
Block a user