Add ZNC IRC bouncer service

This commit is contained in:
Evie Litherland-Smith 2024-05-19 11:07:30 +01:00
parent bee9468fdc
commit 149a583cd6
2 changed files with 32 additions and 0 deletions

View file

@ -8,6 +8,7 @@
../services/radicale.nix ../services/radicale.nix
../services/sshd.nix ../services/sshd.nix
../services/syncthing.nix ../services/syncthing.nix
../services/znc.nix
]; ];
boot.loader = { boot.loader = {
systemd-boot.enable = true; systemd-boot.enable = true;

31
services/znc.nix Normal file
View file

@ -0,0 +1,31 @@
{...}: {
imports = [./caddy.nix];
services.znc = {
enable = true;
mutable = false;
useLegacyConfig = false;
openFirewall = true;
config = {
LoadModule = ["adminlog"];
User.pixelifytica = {
Admin = true;
Pass.password = {
Method = "sha256";
Hash = "9a7b4015ad167675613a26426942ede48a8f6a771d2ca546cf72a328abdea7e0";
Salt = "0vgs)x4KcEmGMK;56QVm";
};
Network = {
liberachat = {
Server = "irc.libera.chat +6697";
Chan = {
"#nixos" = {};
"#nixos-wiki" = {};
};
JoinDelay = 2;
};
};
};
};
};
services.caddy.virtualHosts."znc.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:6697";
}