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
age = {
secrets.wireguard.file = secrets/wireguard.age;
secrets.syncthing.file = secrets/syncthing.age;
sshKeyPaths = [ "/home/coolneng/.ssh/id_ed25519" ];
};

View File

@ -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" ];

View File

@ -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 ];
}

BIN
secrets/syncthing.age Normal file

Binary file not shown.