2024-05-19 11:17:21 +01:00
|
|
|
{config, ...}: {
|
2024-05-19 11:38:41 +01:00
|
|
|
imports = [./caddy.nix];
|
2024-05-19 11:07:30 +01:00
|
|
|
services.znc = {
|
|
|
|
enable = true;
|
|
|
|
mutable = false;
|
|
|
|
useLegacyConfig = false;
|
|
|
|
openFirewall = true;
|
|
|
|
config = {
|
|
|
|
LoadModule = ["adminlog"];
|
2024-05-19 11:17:21 +01:00
|
|
|
Listener.l = {Port = 6697;};
|
2024-05-19 11:07:30 +01:00
|
|
|
User.pixelifytica = {
|
|
|
|
Admin = true;
|
|
|
|
Pass.password = {
|
|
|
|
Method = "sha256";
|
|
|
|
Hash = "9a7b4015ad167675613a26426942ede48a8f6a771d2ca546cf72a328abdea7e0";
|
|
|
|
Salt = "0vgs)x4KcEmGMK;56QVm";
|
|
|
|
};
|
|
|
|
Network = {
|
2024-05-19 11:38:41 +01:00
|
|
|
liberachat = {
|
|
|
|
Server = "irc.libera.chat +6697";
|
|
|
|
Chan = {
|
|
|
|
"#nixos" = {};
|
|
|
|
"#nixos-wiki" = {};
|
|
|
|
};
|
|
|
|
JoinDelay = 2;
|
|
|
|
};
|
2024-05-19 11:07:30 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-05-19 11:38:41 +01:00
|
|
|
services.caddy.virtualHosts."znc.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:${toString config.services.znc.config.Listener.l.Port}";
|
2024-05-19 11:07:30 +01:00
|
|
|
}
|