mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
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
|
||
|
'';
|
||
|
};
|
||
|
}
|