From b9fcdef11892349ea66df70dace84e3e84a2f376 Mon Sep 17 00:00:00 2001 From: caley <195605706+cqley@users.noreply.github.com> Date: Sat, 25 Jul 2026 03:05:28 +0200 Subject: Update configuration.nix --- nixos/hosts/bed/configuration.nix | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'nixos/hosts/bed/configuration.nix') diff --git a/nixos/hosts/bed/configuration.nix b/nixos/hosts/bed/configuration.nix index b6e55ee..461ff7c 100644 --- a/nixos/hosts/bed/configuration.nix +++ b/nixos/hosts/bed/configuration.nix @@ -2,7 +2,8 @@ { imports = [ - ./hardware-configuration.nix + ./hardware-configuration.nix + components/wireguard.nix ]; nix.settings.experimental-features = [ "nix-command" "flakes" ]; @@ -29,21 +30,6 @@ networking.hostName = "bed"; networking.networkmanager.enable = true; - networking.firewall.allowedUDPPorts = [ 51820 ]; - - networking.wireguard.interfaces.wg0 = { - ips = [ "10.0.0.3/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"; -- cgit v1.3.1