From 7fd3937726bb4826ce90874fb92ec5ba78f8e472 Mon Sep 17 00:00:00 2001 From: Sky Hearn Date: Fri, 8 Mar 2024 04:47:08 +0000 Subject: [PATCH] wireguard public key --- configuration.nix | 3 ++- services/gitea.nix | 4 ++-- wg-publickey | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 wg-publickey diff --git a/configuration.nix b/configuration.nix index baa9f35..06ddd82 100644 --- a/configuration.nix +++ b/configuration.nix @@ -56,7 +56,7 @@ # This allows the wireguard server to route your traffic to the internet and hence be like a VPN # For this to work you have to set the dnsserver IP of your router (or dnsserver of choice) in your clients postSetup = '' - ${pkgs.iptables}/bin/iptables -t nat -I POSTROUTING -s 10.100.0.0/24 -o eno4 -j MASQUERADE + ${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.100.0.0/24 -o eno4 -j MASQUERADE ''; # This undoes the above command @@ -101,6 +101,7 @@ virtualisation.podman.defaultNetwork.settings.dns_enabled = true; environment.systemPackages = [ + pkgs.git pkgs.bash pkgs.wget pkgs.curl diff --git a/services/gitea.nix b/services/gitea.nix index 0653a15..39b27b7 100755 --- a/services/gitea.nix +++ b/services/gitea.nix @@ -31,8 +31,8 @@ passwordFile = "/run/keys/gitea-dbpassword"; # config.sops.secrets."postgres/gitea_dbpass".path }; settings.server = { - DOMAIN = "git.fallingsky.love"; - ROOT_URL = "https://git.fallingsky.love/"; + DOMAIN = "git.skymath.duckdns.org"; + ROOT_URL = "https://git.skymath.duckdns.org/"; HTTP_PORT = 3001; }; }; diff --git a/wg-publickey b/wg-publickey new file mode 100644 index 0000000..99baf47 --- /dev/null +++ b/wg-publickey @@ -0,0 +1 @@ +M9QXz6kgLejkhi2mcxxdWhTmGWkbhgblQnA3KfyHqlo=