cluster/services/irc: specify ircOpers globally

This commit is contained in:
Max Headroom 2022-10-22 14:13:59 +02:00
parent 1def40063d
commit 0af4177b2a
2 changed files with 2 additions and 1 deletions

View file

@ -14,6 +14,7 @@ in
owner = "ngircd";
group = "ngircd";
};
ircOpers = [ "max" "num" "ark" ];
};
hostLinks = lib.genAttrs config.services.irc.nodes.host (name: {
irc = {

View file

@ -9,7 +9,7 @@ let
linkSecure = cluster.config.hostLinks.${vars.hostName}.ircSecure;
otherServers = map mkServer cluster.config.services.irc.otherNodes.host;
otherServerFiles = map (builtins.toFile "ngircd-peer.conf") otherServers;
opers = map mkOper [ "max" "num" "ark" ];
opers = map mkOper vars.ircOpers;
mkServer = name: let
peerLink = cluster.config.hostLinks.${name}.ircSecure;