From c0a2a13c848c7ac06bb2e2846423b37d88258f81 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 12 Sep 2022 10:02:51 -0700 Subject: [PATCH] feat(wpcarro/ssh): Support iPhone SSH key For termius access Change-Id: Ic91b80bfc8deb816b5a7634ca5e74bb026729067 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6542 Reviewed-by: wpcarro Autosubmit: wpcarro Tested-by: BuildkiteCI --- users/wpcarro/keys.nix | 2 ++ users/wpcarro/nixos/ava/default.nix | 14 ++++++++------ users/wpcarro/nixos/tarasco/default.nix | 14 ++++++++------ 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/users/wpcarro/keys.nix b/users/wpcarro/keys.nix index 001ca30ce..f004bc31d 100644 --- a/users/wpcarro/keys.nix +++ b/users/wpcarro/keys.nix @@ -4,6 +4,7 @@ rec { ava = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB/5Fuo7wi8rNXVXgNaCK2X6ePCh9LQs/9h7Tj6UeXrl wpcarro@ava"; diogenes = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILFDRfpNXDxQuTJAqVg8+Mm/hOfE5VAJP+Lpw9kA5cDG wpcarro@gmail.com"; + iphone = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEU1tsRQ/cMxi9Hd7Xo+YpiWB5i6qx24EJLCEFBK4q4W wpcarro@iphone"; marcus = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJkNQJBXekuSzZJ8+gxT+V1+eXTm3hYsfigllr/ARXkf wpcarro@gmail.com"; nathan = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP2NjuP722VUgpSu5bVUPTfdVNPO8fSW0Jlas8L4up13 bill@nathan"; tarasco = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOh+wG4f7tI0IwGyF2sLi5mPlh3JKE7KqV2ab0tlcL36 wpcarro@tarasco"; @@ -11,6 +12,7 @@ rec { all = [ ava diogenes + iphone marcus nathan tarasco diff --git a/users/wpcarro/nixos/ava/default.nix b/users/wpcarro/nixos/ava/default.nix index 29849878f..280b9f45e 100644 --- a/users/wpcarro/nixos/ava/default.nix +++ b/users/wpcarro/nixos/ava/default.nix @@ -81,9 +81,10 @@ in hardware.pulseaudio.enable = true; users.mutableUsers = true; - users.users.root.openssh.authorizedKeys.keys = [ - wpcarro.keys.nathan - wpcarro.keys.tarasco + users.users.root.openssh.authorizedKeys.keys = with wpcarro.keys; [ + iphone + nathan + tarasco ]; users.users.wpcarro = { isNormalUser = true; @@ -93,9 +94,10 @@ in "docker" ]; shell = pkgs.fish; - openssh.authorizedKeys.keys = [ - wpcarro.keys.nathan - wpcarro.keys.tarasco + openssh.authorizedKeys.keys = with wpcarro.keys; [ + iphone + nathan + tarasco ]; }; users.extraGroups.vboxusers.members = [ "wpcarro" ]; diff --git a/users/wpcarro/nixos/tarasco/default.nix b/users/wpcarro/nixos/tarasco/default.nix index bd7f2515f..a888ab6b4 100644 --- a/users/wpcarro/nixos/tarasco/default.nix +++ b/users/wpcarro/nixos/tarasco/default.nix @@ -77,9 +77,10 @@ in hardware.pulseaudio.enable = true; users.mutableUsers = true; - users.users.root.openssh.authorizedKeys.keys = [ - wpcarro.keys.nathan - wpcarro.keys.ava + users.users.root.openssh.authorizedKeys.keys = with wpcarro.keys; [ + ava + iphone + nathan ]; users.users.wpcarro = { isNormalUser = true; @@ -89,9 +90,10 @@ in "docker" ]; shell = pkgs.fish; - openssh.authorizedKeys.keys = [ - wpcarro.keys.nathan - wpcarro.keys.ava + openssh.authorizedKeys.keys = with wpcarro.keys; [ + ava + iphone + nathan ]; }; users.extraGroups.vboxusers.members = [ "wpcarro" ];