summaryrefslogtreecommitdiff
path: root/nixos/hosts/bed/components
diff options
context:
space:
mode:
authorcaley <195605706+cqley@users.noreply.github.com>2026-07-25 03:04:49 +0200
committerGitHub <noreply@github.com>2026-07-25 03:04:49 +0200
commitb2812c877c7b95c7663f6335226a808e822f70c3 (patch)
treea444f0006a7cd9a54cf4beb9c6340fea4a506c51 /nixos/hosts/bed/components
parent65794e385667d394fd126e3bc1de30a9874b66d6 (diff)
Create wireguard.nix
Diffstat (limited to 'nixos/hosts/bed/components')
-rw-r--r--nixos/hosts/bed/components/wireguard.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/nixos/hosts/bed/components/wireguard.nix b/nixos/hosts/bed/components/wireguard.nix
new file mode 100644
index 0000000..b4f64ec
--- /dev/null
+++ b/nixos/hosts/bed/components/wireguard.nix
@@ -0,0 +1,15 @@
+{
+ networking.wireguard.interfaces.wg0 = {
+ ips = [ "10.0.0.3/24" ];
+ privateKeyFile = "/var/lib/wireguard/privatekey";
+
+ peers = [
+ {
+ publicKey = " ";
+ endpoint = "5.231.118.254:51820";
+ allowedIPs = [ "10.0.0.0/24" ];
+ persistentKeepalive = 25;
+ }
+ ];
+ };
+}