Commit 265bbfaaa072

Vincent Demeester <vincent@sbr.pm>
2025-11-06 11:26:29
systems/rhea: add wireguard configuration
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent c0709b5
Changed files (1)
systems
systems/rhea/extra.nix
@@ -1,7 +1,20 @@
-{ lib, pkgs, ... }:
+{
+  libx,
+  globals,
+  lib,
+  pkgs,
+  ...
+}:
 {
   users.users.vincent.linger = true;
 
+  wireguard = {
+    enable = true;
+    ips = libx.wg-ips globals.machines.rhea.net.vpn.ips;
+    endpoint = "${globals.net.vpn.endpoint}";
+    endpointPublicKey = "${globals.machines.kerkouane.net.vpn.pubkey}";
+  };
+
   services.openssh.enable = true;
   services.openssh.settings = {
     PermitRootLogin = "yes";