From 0ff6f77fe572a77c22c0e1609f14f40b15c20b48 Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 13 Aug 2021 10:00:13 +0100 Subject: [PATCH] Add syncthing key to agenix --- configuration.nix | 3 ++- modules/datasync.nix | 1 + secrets/secrets.nix | 5 ++++- secrets/syncthing.age | Bin 0 -> 524 bytes 4 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 secrets/syncthing.age diff --git a/configuration.nix b/configuration.nix index fd3955f..3a6f0e4 100644 --- a/configuration.nix +++ b/configuration.nix @@ -100,7 +100,8 @@ # Specify secrets age = { secrets.wireguard.file = secrets/wireguard.age; - sshKeyPaths = ["/home/coolneng/.ssh/id_ed25519"]; + secrets.syncthing.file = secrets/syncthing.age; + sshKeyPaths = [ "/home/coolneng/.ssh/id_ed25519" ]; }; # Import other configuration modules diff --git a/modules/datasync.nix b/modules/datasync.nix index d533f16..6ab5127 100644 --- a/modules/datasync.nix +++ b/modules/datasync.nix @@ -16,6 +16,7 @@ enable = true; user = "coolneng"; dataDir = "/home/coolneng"; + key = config.age.secrets.syncthing.path; devices.zion = { id = "FLI2RS7-GNI5PDM-SQRNF7P-YJIOXJ7-46FRPEI-NRLQGBC-HXRWG7O-RKOVLAF"; addresses = [ "tcp://192.168.13.2:22000" ]; diff --git a/secrets/secrets.nix b/secrets/secrets.nix index 7e3d289..29cb5d7 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -1,4 +1,7 @@ let coolneng = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC57m1j/G6iQyi2EpU3nj3+df5Z4PL/XbiOmDcqA7ODg"; -in { "wireguard.age".publicKeys = [ coolneng ]; } +in { + "wireguard.age".publicKeys = [ coolneng ]; + "syncthing.age".publicKeys = [ coolneng ]; +} diff --git a/secrets/syncthing.age b/secrets/syncthing.age new file mode 100644 index 0000000000000000000000000000000000000000..199800e3c5d1274d81032cbd190e16e999a8cbf8 GIT binary patch literal 524 zcmV+n0`vW0XJsvAZewzJaCB*JZZ2SPdXm=nu zNij`qO-@gGMR7JzP;@zGOm|ssd2vQVHAZD}Hf~L3D@b7cxv zdNg5hQB?{pEiE8RPHsaqPGmAkG(tp4Sxa$Ab!am%XJd6oN=HL?Z8COaQZq&?Zdq4u zZZHZqKlxICJ_`B&E*N++Zr^{BAHHAG&?$F|HG(~*!e)gpx)bf~%~JxY6XXbM`Xmq! zdxUKhmlqGP(*AWBW<*A#+$bh`lEPB402XWIXISfA7bL8LPZHXmRQ`*AaCq*9vkM(@ zCUYI3jUVS2h9aPM^n?Q4bmPp}M@^~SH77X|qBZK`R5!?1m#9ycq}y%DVuj%rNb1P| zhSF-Fhr_S3Z(>gxii{g9VLd1xC`{j2X>rU%a2yr8g&-Nn%1+xy9pxR(1AZ&;uH;9s zqQ^4#*MCbi=NkYe%{&vIyRxb~%8%I{EOZyvrMjv#7(J