mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-01 04:57:55 +00:00
Gabriel Arazas
b1072a437b
Not yet fully configured though so we'll have to update the Wezterm server configuration.
24 lines
537 B
Nix
24 lines
537 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
# We're setting up Wezterm mux server with TLS domains.
|
|
let
|
|
weztermDomain = "mux.${config.networking.domain}";
|
|
configFile = pkgs.substituteAll {
|
|
src = ../../config/wezterm/config.lua;
|
|
CERT_DIR = config.security.acme.certs."${weztermDomain}".directory;
|
|
};
|
|
in
|
|
{
|
|
services.wezterm-mux-server = {
|
|
inherit configFile;
|
|
enable = true;
|
|
};
|
|
|
|
security.acme.certs."${weztermDomain}" = {
|
|
group = "wezterm";
|
|
postRun = ''
|
|
systemctl restart wezterm-mux-server.service
|
|
'';
|
|
};
|
|
}
|