diff --git a/hosts/hydrogen/configuration.nix b/hosts/hydrogen/configuration.nix index eae35bd..b884e8d 100644 --- a/hosts/hydrogen/configuration.nix +++ b/hosts/hydrogen/configuration.nix @@ -23,8 +23,6 @@ maxretry = 5; }; - networking.nat.enable = true; - users.mutableUsers = false; users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINTvwXCT99s1EwOCeGQ28jyCAH/RBoLZza9k5I7wWdEu" diff --git a/hosts/hydrogen/services/wireguard/default.nix b/hosts/hydrogen/services/wireguard/default.nix index 37d9bf9..90a68ea 100644 --- a/hosts/hydrogen/services/wireguard/default.nix +++ b/hosts/hydrogen/services/wireguard/default.nix @@ -6,7 +6,12 @@ ]; }; - nat.internalInterfaces = [ "wg0" ]; + nat = { + enable = true; + enableIPv6 = true; + externalInterface = "ens3"; + internalInterfaces = [ "wg0" ]; + }; wireguard.interfaces = { wg0 = {