💻 code server

This commit is contained in:
2021-07-27 19:42:11 -04:00
parent fb662e3628
commit dfc41ece1e
4 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,5 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [ code-server ];
}

View File

@ -0,0 +1,17 @@
{ config, lib, pkgs, ... }:
{
services.nginx = {
enable = true;
virtualHosts = {
"walkah.codes" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://plato:8080";
proxyWebsockets = true;
};
};
};
};
}