summaryrefslogtreecommitdiff
path: root/hosts/T430/wg.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/T430/wg.nix')
-rw-r--r--hosts/T430/wg.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/hosts/T430/wg.nix b/hosts/T430/wg.nix
new file mode 100644
index 0000000..7b98ad8
--- /dev/null
+++ b/hosts/T430/wg.nix
@@ -0,0 +1,9 @@
+{ config, pkgs, inputs, ... }: {
+ sops.secrets.wg0 = { sopsFile = ./resources/secrets/wg.yaml; key = "wg0"; }; # Office
+ sops.secrets.wg1 = { sopsFile = ./resources/secrets/wg.yaml; key = "wg1"; }; # Home
+
+ networking.wg-quick.interfaces = {
+ wg0.configFile = config.sops.secrets.wg0.path;
+ wg1.configFile = config.sops.secrets.wg1.path;
+ };
+}