summary refs log tree commit diff
path: root/modules/work/wireguard.nix
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-07-25 16:01:48 +0200
committerMel <mel@rnrd.eu>2025-07-25 16:02:02 +0200
commit77fabf7098d19abe878f0e8caa887fd38aaaad7d (patch)
tree6c33289c5552d585507dbc6249d31faf4297ff9a /modules/work/wireguard.nix
parent8572f3b4db7e26d7e2751f03873069943fca3fe8 (diff)
downloadminerals-77fabf7098d19abe878f0e8caa887fd38aaaad7d.tar.zst
minerals-77fabf7098d19abe878f0e8caa887fd38aaaad7d.zip
Add GDA wireguard interface
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'modules/work/wireguard.nix')
-rw-r--r--modules/work/wireguard.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/work/wireguard.nix b/modules/work/wireguard.nix
new file mode 100644
index 0000000..bfcf8dd
--- /dev/null
+++ b/modules/work/wireguard.nix
@@ -0,0 +1,12 @@
+{ config, ... }:
+
+{
+  age.secrets."wg-gda.conf" = {
+    file = ../../secrets/wg-gda.conf.age;
+  };
+
+  networking.wg-quick.interfaces."wg-gda" = {
+    autostart = false; # no need to start the interface during boot.
+    configFile = config.age.secrets."wg-gda.conf".path;
+  };
+}