summaryrefslogtreecommitdiff
path: root/hosts/sweetiepc/wg.nix
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-06-22 15:11:39 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-06-22 15:11:39 -0500
commit671ba3d42f6c9017fc57876f3c26d22227b1ffef (patch)
tree1801d2944cffd4d575855203b3707707fb0776f4 /hosts/sweetiepc/wg.nix
parent5585329eb48316b34f12a2b94c0cebf65e47398b (diff)
downloadnixos-671ba3d42f6c9017fc57876f3c26d22227b1ffef.tar.xz
nixos-671ba3d42f6c9017fc57876f3c26d22227b1ffef.zip
add wireguard support for remote backup pc and enhance rebuild script to show pubkey gen cmdHEADmaster
Diffstat (limited to 'hosts/sweetiepc/wg.nix')
-rw-r--r--hosts/sweetiepc/wg.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/hosts/sweetiepc/wg.nix b/hosts/sweetiepc/wg.nix
new file mode 100644
index 0000000..bf459d9
--- /dev/null
+++ b/hosts/sweetiepc/wg.nix
@@ -0,0 +1,7 @@
+{ config, pkgs, inputs, ... }: {
+ sops.secrets.wg0 = { sopsFile = ./resources/secrets/wg.yaml; key = "wg0"; };
+
+ networking.wg-quick.interfaces = {
+ wg0.configFile = config.sops.secrets.wg0.path;
+ };
+}