mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
hosts/plover: update Wezterm mux server config
It's not fully working but we'll get there.
This commit is contained in:
parent
97916aaa05
commit
a6fcc6eec6
@ -1,10 +1,12 @@
|
||||
return {
|
||||
tls_servers = {
|
||||
-- These are expected to be imported through systemd LoadCredentials
|
||||
-- directive.
|
||||
{
|
||||
pem_private_key = os.getenv("CREDENTIALS_DIRECTORY") .. "/key.pem",
|
||||
pem_cert = os.getenv("CREDENTIALS_DIRECTORY") .. "/cert.pem",
|
||||
pem_ca = os.getenv("CREDENTIALS_DIRECTORY") .. "/fullchain.pem",
|
||||
bind_address = "@domain@:@port@",
|
||||
bind_address = "@listen_address@",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
@ -3,21 +3,22 @@
|
||||
# We're setting up Wezterm mux server with TLS domains.
|
||||
let
|
||||
weztermDomain = "mux.${config.networking.domain}";
|
||||
port = 9801;
|
||||
listenAddress = "127.0.0.1:${builtins.toString port}";
|
||||
|
||||
configFile = pkgs.substituteAll {
|
||||
src = ../../config/wezterm/config.lua;
|
||||
domain = weztermDomain;
|
||||
port = 9801;
|
||||
listen_address = listenAddress;
|
||||
};
|
||||
in
|
||||
{
|
||||
services.wezterm-mux-server = {
|
||||
enable = true;
|
||||
inherit configFile;
|
||||
user = "plover";
|
||||
group = "users";
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ port ];
|
||||
|
||||
systemd.services.wezterm-mux-server = {
|
||||
requires = [ "acme-finished-${weztermDomain}.target" ];
|
||||
environment.WEZTERM_LOG = "info";
|
||||
|
Loading…
Reference in New Issue
Block a user