Handle secrets using agenix

This commit is contained in:
2021-08-09 01:10:51 +01:00
parent 88a7394651
commit f5b58f97ca
6 changed files with 30 additions and 3 deletions

View File

@@ -19,7 +19,7 @@
networking.wg-quick.interfaces = {
home = {
address = [ "10.8.0.2/32" ];
privateKeyFile = "/home/coolneng/.wg/keys/privatekey";
privateKeyFile = config.age.secrets.wireguard.path;
dns = [ "10.8.0.1" ];
peers = [
# zion
@@ -32,7 +32,7 @@
};
coace = {
address = [ "10.9.0.2/32" ];
privateKeyFile = "/home/coolneng/.wg/keys/privatekey";
privateKeyFile = config.age.secrets.wireguard.path;
peers = [
# unit
{