feat: add git server to tailnet
This commit is contained in:
		
							parent
							
								
									48c04a94fa
								
							
						
					
					
						commit
						01409f7ecb
					
				
					 3 changed files with 21 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -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 = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue