move vscode server to pc2

This commit is contained in:
Vinzenz Schroeter 2024-03-09 13:36:43 +01:00
parent d17023aa89
commit 91f5f886d7
2 changed files with 14 additions and 15 deletions

View file

@ -42,19 +42,5 @@
users.users.ronja.openssh.authorizedKeys.keys = [
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIALWKm+d6KL6Vl3grPOcGouiNTkvdhXuWJmcrdEBY2nw ssh-host-key''
];
services.openvscode-server = {
enable = true;
telemetryLevel = "off";
port = 8542;
host = "100.103.93.126"; # tailscale
withoutConnectionToken = true;
extraPackages = with pkgs; [nodejs];
};
networking.firewall = {
checkReversePath = "loose";
allowedTCPPorts = [8542 8543 8544];
};
};
}

View file

@ -1,4 +1,4 @@
{...}: {
{pkgs, ...}: {
imports = [
(import ./modules {
hostName = "vinzenz-pc2";
@ -28,5 +28,18 @@
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFCJUpbpB3KEKVoKWsKoar9J4RNah8gmQoSH6jQEw5dY vinzenz-pixel-JuiceSSH''
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPDNpLDmctyqGpow/ElQvdhY4BLBPS/sigDJ1QEcC7wC vinzenz-lpt2-roaming''
];
services.openvscode-server = {
enable = true;
telemetryLevel = "off";
port = 8542;
host = "100.125.93.127"; # tailscale
withoutConnectionToken = true;
extraPackages = with pkgs; [nodejs gitFull gh];
};
networking.firewall = {
allowedTCPPorts = [8542 8543 8544];
};
};
}