diff options
author | Kierán Meinhardt <kmein@posteo.de> | 2022-01-24 16:03:45 +0100 |
---|---|---|
committer | Kierán Meinhardt <kmein@posteo.de> | 2022-01-24 16:03:47 +0100 |
commit | b846210a1cd5ae96ec46fc4026ec13f80307751e (patch) | |
tree | 8953172ecaed09c751b0b451873cea2e0b9361dc /krebs/3modules | |
parent | 62431bd8b934a83e476ac0c364362cd755c8242e (diff) |
external: one kmein per ssh key
Diffstat (limited to 'krebs/3modules')
-rw-r--r-- | krebs/3modules/external/kmein.nix | 13 | ||||
-rw-r--r-- | krebs/3modules/external/ssh/kmein.kabsa.pub (renamed from krebs/3modules/external/ssh/kmein.pub) | 1 | ||||
-rw-r--r-- | krebs/3modules/external/ssh/kmein.manakish.pub | 1 |
3 files changed, 11 insertions, 4 deletions
diff --git a/krebs/3modules/external/kmein.nix b/krebs/3modules/external/kmein.nix index 51bb183b5..2c84509bb 100644 --- a/krebs/3modules/external/kmein.nix +++ b/krebs/3modules/external/kmein.nix @@ -19,9 +19,16 @@ let ssh-for = name: builtins.readFile (./ssh + "/${name}.pub"); in { - users.kmein = { - mail = "kmein@posteo.de"; - pubkey = ssh-for "kmein"; + users = rec { + kmein = kmein-kabsa; + kmein-kabsa = { + mail = "kmein@posteo.de"; + pubkey = ssh-for "kmein.kabsa"; + }; + kmein-manakish = { + inherit (kmein-kabsa) mail; + pubkey = ssh-for "kmein.manakish"; + }; }; hosts = mapAttrs hostDefaults { kabsa = { diff --git a/krebs/3modules/external/ssh/kmein.pub b/krebs/3modules/external/ssh/kmein.kabsa.pub index 8eade3498..a3cec5f8f 100644 --- a/krebs/3modules/external/ssh/kmein.pub +++ b/krebs/3modules/external/ssh/kmein.kabsa.pub @@ -1,2 +1 @@ ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDyTnGhFq0Q+vghNhrqNrAyY+CsN7nNz8bPfiwIwNpjk -ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOiQEc8rTr7C7xVLYV7tQ99BDDBLrJsy5hslxtCEatkB diff --git a/krebs/3modules/external/ssh/kmein.manakish.pub b/krebs/3modules/external/ssh/kmein.manakish.pub new file mode 100644 index 000000000..8be09d407 --- /dev/null +++ b/krebs/3modules/external/ssh/kmein.manakish.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOiQEc8rTr7C7xVLYV7tQ99BDDBLrJsy5hslxtCEatkB |