external: one kmein per ssh key

This commit is contained in:
Kierán Meinhardt 2022-01-24 16:03:45 +01:00
parent 62431bd8b9
commit b846210a1c
3 changed files with 11 additions and 4 deletions

View File

@ -19,9 +19,16 @@ let
ssh-for = name: builtins.readFile (./ssh + "/${name}.pub"); ssh-for = name: builtins.readFile (./ssh + "/${name}.pub");
in in
{ {
users.kmein = { users = rec {
kmein = kmein-kabsa;
kmein-kabsa = {
mail = "kmein@posteo.de"; mail = "kmein@posteo.de";
pubkey = ssh-for "kmein"; pubkey = ssh-for "kmein.kabsa";
};
kmein-manakish = {
inherit (kmein-kabsa) mail;
pubkey = ssh-for "kmein.manakish";
};
}; };
hosts = mapAttrs hostDefaults { hosts = mapAttrs hostDefaults {
kabsa = { kabsa = {

View File

@ -1,2 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDyTnGhFq0Q+vghNhrqNrAyY+CsN7nNz8bPfiwIwNpjk ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDyTnGhFq0Q+vghNhrqNrAyY+CsN7nNz8bPfiwIwNpjk
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOiQEc8rTr7C7xVLYV7tQ99BDDBLrJsy5hslxtCEatkB

View File

@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOiQEc8rTr7C7xVLYV7tQ99BDDBLrJsy5hslxtCEatkB