summaryrefslogtreecommitdiff
path: root/modules/hosts/T495/wg.nix
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2024-10-30 22:56:33 -0500
committerTim Keller <tjkeller.xyz>2024-10-30 22:56:33 -0500
commit9675b81889f3e5b9a6b839eb91a4d0dafa528b43 (patch)
tree89776bc275376cce314279b1fd208c2cbc40a098 /modules/hosts/T495/wg.nix
parent33251a24e11c385ba23c0394bb0c637538542cfd (diff)
downloadnixos-9675b81889f3e5b9a6b839eb91a4d0dafa528b43.tar.xz
nixos-9675b81889f3e5b9a6b839eb91a4d0dafa528b43.zip
add wireguard config for T495
Diffstat (limited to 'modules/hosts/T495/wg.nix')
-rw-r--r--modules/hosts/T495/wg.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/hosts/T495/wg.nix b/modules/hosts/T495/wg.nix
new file mode 100644
index 0000000..3881b63
--- /dev/null
+++ b/modules/hosts/T495/wg.nix
@@ -0,0 +1,7 @@
+{ config, pkgs, inputs, ... }: {
+ sops.secrets.wg0.sopsFile = ./resources/secrets/wg0.yaml;
+
+ networking.wg-quick.interfaces = {
+ wg0.configFile = config.sops.secrets.wg0.path;
+ };
+}