diff options
| author | Mel <mel@rnrd.eu> | 2025-07-25 16:01:48 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-07-25 16:02:02 +0200 |
| commit | 77fabf7098d19abe878f0e8caa887fd38aaaad7d (patch) | |
| tree | 6c33289c5552d585507dbc6249d31faf4297ff9a /modules | |
| parent | 8572f3b4db7e26d7e2751f03873069943fca3fe8 (diff) | |
| download | minerals-77fabf7098d19abe878f0e8caa887fd38aaaad7d.tar.zst minerals-77fabf7098d19abe878f0e8caa887fd38aaaad7d.zip | |
Add GDA wireguard interface
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/work/default.nix | 7 | ||||
| -rw-r--r-- | modules/work/wireguard.nix | 12 |
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; + }; +} |
