feat: add git server to tailnet

This commit is contained in:
alejandro-angulo 2024-10-30 23:05:34 -07:00
parent 48c04a94fa
commit 01409f7ecb
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
3 changed files with 21 additions and 7 deletions

View file

@ -4,9 +4,12 @@
...
}: let
domain = "git.alejandr0angul0.dev";
secrets = config.age.secrets;
in {
imports = ["${inputs.nixpkgs}/nixos/modules/virtualisation/digital-ocean-config.nix"];
age.secrets.authKeyFile.file = ../../../secrets/tailscale_git_server.age;
aa = {
nix.enable = true;
@ -17,6 +20,10 @@ in {
services = {
openssh.enable = true;
tailscale = {
enable = true;
configureClientRouting = true;
};
};
};
@ -25,6 +32,11 @@ in {
enableACME = true;
};
services.tailscale = {
authKeyFile = secrets.authKeyFile.path;
extraUpFlags = ["--ssh"];
};
security.acme = {
acceptTerms = true;
defaults = {