summary refs log tree commit diff
path: root/modules/work
diff options
context:
space:
mode:
Diffstat (limited to 'modules/work')
-rw-r--r--modules/work/default.nix7
-rw-r--r--modules/work/wireguard.nix12
2 files changed, 19 insertions, 0 deletions
diff --git a/modules/work/default.nix b/modules/work/default.nix
new file mode 100644
index 0000000..d617bc4
--- /dev/null
+++ b/modules/work/default.nix
@@ -0,0 +1,7 @@
+{ ... }:
+
+{
+  imports = [
+    ./wireguard.nix
+  ];
+}
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;
+  };
+}