summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGrigory Shipunov2022-05-29 14:33:39 +0200
committerGrigory Shipunov2022-05-29 14:33:39 +0200
commitb8608870c9774d49ed62f398751fda8b49ed0c8d (patch)
treef66a1e015e3e16c9c294fc90a674362dca3ea4b1 /modules
parent903ad983139229ea5abb69fd73c137ff46fee7df (diff)
sops: init
Diffstat (limited to 'modules')
-rw-r--r--modules/wireguard.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/wireguard.nix b/modules/wireguard.nix
index 9a01f74..d989570 100644
--- a/modules/wireguard.nix
+++ b/modules/wireguard.nix
@@ -3,7 +3,7 @@
{
networking.wg-quick.interfaces = {
wg-zw = {
- privateKeyFile="/etc/wg/zw-wg-key";
+ privateKeyFile=config.sops.secrets."wg/wg-zw-seckey".path;
address = ["172.20.76.226" ];
dns = [ "172.20.73.8" ];
peers = [
@@ -15,7 +15,7 @@
];
};
wg-dvb = {
- privateKeyFile="/etc/wg/wg-dvb";
+ privateKeyFile=config.sops.secrets."wg/wg-dvb-seckey".path;
address = [ "10.13.37.3/32" ];
peers = [
@@ -29,7 +29,7 @@
};
mlwd-nl = {
- privateKeyFile = "/etc/wg/mlvd";
+ privateKeyFile=config.sops.secrets."wg/mlwd-nl-seckey".path;
address = [ "10.65.79.164/32" "fc00:bbbb:bbbb:bb01::2:4fa3/128" ];
dns = [ "193.138.218.74" ];