Add openvscode to queen
This commit is contained in:
		
							parent
							
								
									42582b9231
								
							
						
					
					
						commit
						dda5588f17
					
				
					 1 changed files with 24 additions and 0 deletions
				
			
		
							
								
								
									
										24
									
								
								nixos/server/package-configs/vscode-server/configuration.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								nixos/server/package-configs/vscode-server/configuration.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,24 @@
 | 
			
		|||
{
 | 
			
		||||
  config,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  services.openvscode = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    port = 7773;
 | 
			
		||||
    telemetryLevel = "off";
 | 
			
		||||
    withoutConnectionToken = true;
 | 
			
		||||
  };
 | 
			
		||||
  services.nginx = {
 | 
			
		||||
    virtualHosts = {
 | 
			
		||||
      "code.lillianviolet.dev" = {
 | 
			
		||||
        forceSSL = true;
 | 
			
		||||
        enableACME = true;
 | 
			
		||||
        locations."/" = {
 | 
			
		||||
          proxyPass = "http://localhost:7773";
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue