Add syncthing key to agenix

This commit is contained in:
coolneng 2021-08-13 10:00:13 +01:00
parent fcc7e151f4
commit 0ff6f77fe5
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
4 changed files with 7 additions and 2 deletions

View File

@ -100,6 +100,7 @@
# Specify secrets # Specify secrets
age = { age = {
secrets.wireguard.file = secrets/wireguard.age; secrets.wireguard.file = secrets/wireguard.age;
secrets.syncthing.file = secrets/syncthing.age;
sshKeyPaths = [ "/home/coolneng/.ssh/id_ed25519" ]; sshKeyPaths = [ "/home/coolneng/.ssh/id_ed25519" ];
}; };

View File

@ -16,6 +16,7 @@
enable = true; enable = true;
user = "coolneng"; user = "coolneng";
dataDir = "/home/coolneng"; dataDir = "/home/coolneng";
key = config.age.secrets.syncthing.path;
devices.zion = { devices.zion = {
id = "FLI2RS7-GNI5PDM-SQRNF7P-YJIOXJ7-46FRPEI-NRLQGBC-HXRWG7O-RKOVLAF"; id = "FLI2RS7-GNI5PDM-SQRNF7P-YJIOXJ7-46FRPEI-NRLQGBC-HXRWG7O-RKOVLAF";
addresses = [ "tcp://192.168.13.2:22000" ]; addresses = [ "tcp://192.168.13.2:22000" ];

View File

@ -1,4 +1,7 @@
let let
coolneng = coolneng =
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC57m1j/G6iQyi2EpU3nj3+df5Z4PL/XbiOmDcqA7ODg"; "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC57m1j/G6iQyi2EpU3nj3+df5Z4PL/XbiOmDcqA7ODg";
in { "wireguard.age".publicKeys = [ coolneng ]; } in {
"wireguard.age".publicKeys = [ coolneng ];
"syncthing.age".publicKeys = [ coolneng ];
}

BIN
secrets/syncthing.age Normal file

Binary file not shown.