From 77fabf7098d19abe878f0e8caa887fd38aaaad7d Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 25 Jul 2025 16:01:48 +0200 Subject: Add GDA wireguard interface Signed-off-by: Mel --- modules/work/default.nix | 7 +++++++ modules/work/wireguard.nix | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 modules/work/default.nix create mode 100644 modules/work/wireguard.nix (limited to 'modules/work') 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; + }; +} -- cgit 1.4.1