diff options
| author | caley <195605706+cqley@users.noreply.github.com> | 2026-07-25 03:05:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-25 03:05:28 +0200 |
| commit | b9fcdef11892349ea66df70dace84e3e84a2f376 (patch) | |
| tree | 7f279a6a2539394dccadf172dad919500e891317 | |
| parent | b2812c877c7b95c7663f6335226a808e822f70c3 (diff) | |
Update configuration.nix
| -rw-r--r-- | nixos/hosts/bed/configuration.nix | 18 |
1 files changed, 2 insertions, 16 deletions
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"; |
