From 2c1547893438427ce9932055421b172faed55890 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Sat, 12 Aug 2023 20:37:56 +0200 Subject: [PATCH] pinwheel: Add `alex.pinwheel-github` ssh key --- hosts/pinwheel/configuration.nix | 12 ++++++++++++ hosts/pinwheel/home.nix | 11 +++++++++++ secrets/pinwheel/alex.pinwheel-github.com.age | 11 +++++++++++ secrets/pinwheel/alex.pinwheel-github.com.pub.age | Bin 0 -> 470 bytes secrets/secrets.nix | 2 ++ 5 files changed, 36 insertions(+) create mode 100644 secrets/pinwheel/alex.pinwheel-github.com.age create mode 100644 secrets/pinwheel/alex.pinwheel-github.com.pub.age diff --git a/hosts/pinwheel/configuration.nix b/hosts/pinwheel/configuration.nix index b8e4795..bbd7e0b 100644 --- a/hosts/pinwheel/configuration.nix +++ b/hosts/pinwheel/configuration.nix @@ -203,6 +203,18 @@ secrets = { "syncthing-cert".file = ../../secrets/pinwheel/syncthing-cert.age; "syncthing-key".file = ../../secrets/pinwheel/syncthing-key.age; + "alex.pinwheel-github.com" = { + file = ../../secrets/pinwheel/alex.pinwheel-github.com.age; + path = "/home/alex/.ssh/alex.pinwheel-github.com"; + owner = "alex"; + group = "users"; + }; + "alex.pinwheel-github.com.pub" = { + file = ../../secrets/pinwheel/alex.pinwheel-github.com.pub.age; + path = "/home/alex/.ssh/alex.pinwheel-github.com.pub"; + owner = "alex"; + group = "users"; + }; }; }; diff --git a/hosts/pinwheel/home.nix b/hosts/pinwheel/home.nix index 3f11ea3..20f0065 100644 --- a/hosts/pinwheel/home.nix +++ b/hosts/pinwheel/home.nix @@ -13,6 +13,17 @@ bemenu ]; + programs.ssh = { + enable = true; + + matchBlocks = { + "github.com" = { + hostname = "github.com"; + identityFile = "/home/alex/.ssh/alex.pinwheel-github.com"; + }; + }; + }; + programs.git = { enable = true; includes = [ diff --git a/secrets/pinwheel/alex.pinwheel-github.com.age b/secrets/pinwheel/alex.pinwheel-github.com.age new file mode 100644 index 0000000..9934a9a --- /dev/null +++ b/secrets/pinwheel/alex.pinwheel-github.com.age @@ -0,0 +1,11 @@ +age-encryption.org/v1 +-> ssh-ed25519 vxPbZg g13GqplvgepGcVTDjmJ+94qYLGP15rszwFONudrnn0I +qwGum5j7mh+bRl4Znj6w/cDzlx2rEodLkAiUb6wb+AE +-> ssh-ed25519 ek+b7Q ByAJqVEcaNbvRqVBaTJQCVKLKWfQqgp9UwTd1mALkj4 +DnVPUdU0BK8gX56IGSuTg93Ar2eNoLtpDqlJCfYcBZ0 +-> d$5j-grease @fXJjF41 DnacW/ë?j 8q `{$+n!FOg 3{,Nvy۲,azidydD/$*ÿe{TJ`BT `&9G<{H]~zvY[F4_loll^_&QQKF* 'k*ޒy[>^Pp_gsA\" 9]6ty" š:HU8i հtAˆ)Ls~̸u)a.R01|Rƛn %0EFטuաg|(7s_5{UK"8rؖE8gzX {^DEĴa%Ǭ W6oL*^ȦIwT>\6 A"U \ No newline at end of file diff --git a/secrets/pinwheel/alex.pinwheel-github.com.pub.age b/secrets/pinwheel/alex.pinwheel-github.com.pub.age new file mode 100644 index 0000000000000000000000000000000000000000..6135a41c3ff26389918bc6d13c99a42a430aa6e8 GIT binary patch literal 470 zcmYdHPt{G$OD?J`D9Oyv)5|YP*Do{V(zR14F3!+RO))YxHMCSHs|ZMnN>>Q<^$K!~ zvdD0Y3ULWF$}kT#E%L0$3r%t}C@gh~v`o#dD2(#d_ek@}@#HFV)ORYZOft``@{hiIIk$gv&hsq$t26y zCokQ%O5f1fDL3Ce$SAO?ygV}BucX*GUE4L)HJ{7ZtI)$DDL6Yj*fbzKE2pX`qoB~w z%{1JpQrpkbOFuPLztA$vDI&M9(h+1^l|hDKQmCJ9dQoa(ajJrMoSnOlLZzCst3ooD zt4B~krni|#k|UR{uC79vmqoaDK~PyhWw>`%Sz^9(fmya=R;5dMsZWlver8!>L2-(o zaZ*@iVm?>L;r_x*z3{HvJog{$W?@p8?YH1k`C;Q7e#e4$OIXjC^3LT$7;hzendAQ{ zJd^9zG|4)5?VWxma8tw#-gz&MEzG#|hHWE*?H`Go+G}3!$#1T{w$A?Gk>AaWCxoTE zIpVy_#AQ13nPZ