From 358c68416a14d1abb62f5b0f5745d1781a5fcf83 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Tue, 9 Jan 2024 15:48:49 +0100 Subject: [PATCH] Add openvscode to queen --- .../vscode-server/configuration.nix | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 nixos/server/package-configs/vscode-server/configuration.nix diff --git a/nixos/server/package-configs/vscode-server/configuration.nix b/nixos/server/package-configs/vscode-server/configuration.nix new file mode 100644 index 0000000..944108e --- /dev/null +++ b/nixos/server/package-configs/vscode-server/configuration.nix @@ -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"; + }; + }; + }; + }; +}