services.znc.config
Configuration for ZNC, see
https://wiki.znc.in/Configuration for details. The
Nix value declared here will be translated directly to the xml-like
format ZNC expects. This is much more flexible than the legacy options
under services.znc.confOptions.*, but also can't do
any type checking.
You can use nix-instantiate --eval --strict '
to view the current value. By default it contains a listener for port
5000 with SSL enabled.
Nix attributes called extraConfig will be inserted
verbatim into the resulting config file.
If services.znc.useLegacyConfig is turned on, the
option values in services.znc.confOptions.* will be
gracefully be applied to this option.
If you intend to update the configuration through this option, be sure
to disable services.znc.mutable, otherwise none of the
changes here will be applied after the initial deploy.
- Type
attribute set of (znc values (null, atoms (str, int, bool), list of atoms, or attrsets of znc values))- Default
{ }- Example
{ LoadModule = [ "webadmin" "adminlog" ]; User.paul = { Admin = true; Nick = "paul"; AltNick = "paul1"; LoadModule = [ "chansaver" "controlpanel" ]; Network.libera = { Server = "irc.libera.chat +6697"; LoadModule = [ "simple_away" ]; Chan = { "#nixos" = { Detached = false; }; "##linux" = { Disabled = true; }; }; }; Pass.password = { Method = "sha256"; Hash = "e2ce303c7ea75c571d80d8540a8699b46535be6a085be3414947d638e48d9e93"; Salt = "l5Xryew4g*!oa(ECfX2o"; }; }; }- Declared
- <nixpkgs/nixos/modules/services/networking/znc/default.nix>