Add tailscale

This commit is contained in:
Thomas Avé 2026-05-14 00:41:22 +07:00
parent 03488fd503
commit 03bc10d603
Signed by: thomasave
SSH Key Fingerprint: SHA256:bvIbWy6TO9+PdMTPzWy6dqkRlVQ3eSky+vQcc9aRIiE
2 changed files with 8 additions and 15 deletions

View File

@ -61,6 +61,7 @@
editPreset = "nvim"; editPreset = "nvim";
autoStageResolvedConflicts = false; autoStageResolvedConflicts = false;
}; };
git.overrideGpg = true;
git.pagers = [ git.pagers = [
{ {
colorArg = "always"; colorArg = "always";

View File

@ -150,21 +150,6 @@ in {
} }
]; ];
}; };
GCP = {
address = ["10.5.0.5/24"];
privateKeyFile = "/home/user/.secrets/Wireguard/GCP.key";
listenPort = 51820;
autostart = false;
postUp = "resolvectl dns GCP 1.1.1.1;resolvectl dns wlan0 1.1.1.1;";
peers = [
{
publicKey = "NEBNE4Czf2MkZF2X5aVhmofENH1uXjDpvXjIMJvfMFA=";
allowedIPs = ["0.0.0.0/0"];
endpoint = "35.201.231.151:443";
persistentKeepalive = 25;
}
];
};
}; };
systemd.services."wg-quick-OPNsense" = { systemd.services."wg-quick-OPNsense" = {
serviceConfig = { serviceConfig = {
@ -173,6 +158,13 @@ in {
}; };
unitConfig.StartLimitIntervalSec = 0; unitConfig.StartLimitIntervalSec = 0;
}; };
services.tailscale = {
enable = true;
extraUpFlags = [
"--login-server=https://headscale.thomasave.be"
];
authKeyFile = "/home/user/.secrets/Tailscale/Aloria/authkey";
};
services.usbmuxd.enable = true; services.usbmuxd.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
libcamera libcamera