diff options
| author | caley <u65487754@gmail.com> | 2026-06-26 09:39:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-26 09:39:52 +0200 |
| commit | 257ed5badb19ad82a001cc8411860d0133c184c6 (patch) | |
| tree | 6164b06ffbab2af1c7fb3840a8cc2cc01e546907 /nixos/hosts/box | |
| parent | 1aaa5da406c7be84af69bfad5f9b9bef925a8c1d (diff) | |
Update configuration.nix
Diffstat (limited to 'nixos/hosts/box')
| -rw-r--r-- | nixos/hosts/box/configuration.nix | 16 |
1 files changed, 16 insertions, 0 deletions
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 |
