From 257ed5badb19ad82a001cc8411860d0133c184c6 Mon Sep 17 00:00:00 2001 From: caley Date: Fri, 26 Jun 2026 09:39:52 +0200 Subject: Update configuration.nix --- nixos/hosts/box/configuration.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/nixos/hosts/box/configuration.nix b/nixos/hosts/box/configuration.nix index 841b1df..44e26ac 100644 --- a/nixos/hosts/box/configuration.nix +++ b/nixos/hosts/box/configuration.nix @@ -31,6 +31,21 @@ networking.hostName = "box"; networking.networkmanager.enable = true; + networking.firewall.allowedUDPPorts = [ 51820 ]; + + networking.wireguard.interfaces.wg0 = { + ips = [ "10.0.0.2/24" ]; + privateKeyFile = "/var/lib/wireguard/privatekey"; + + peers = [ + { + publicKey = "P2LPLBq/6qXE5Mmv8DJUviU89Yu5s7vysbyWncnZchY="; + allowedIPs = [ "10.0.0.0/24" ]; + endpoint = "5.231.118.254:51820"; + persistentKeepalive = 25; + } + ]; + }; time.timeZone = "Europe/Berlin"; i18n.defaultLocale = "en_US.UTF-8"; @@ -101,6 +116,7 @@ environment.systemPackages = with pkgs; [ quickshell hyprshot hyprpolkitagent + wireguard-tools kdePackages.dolphin kdePackages.ark kdePackages.breeze -- cgit v1.3.1