From 0af4177b2a8f2051846c10dd607e1edff7c70618 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 22 Oct 2022 14:13:59 +0200 Subject: [PATCH] cluster/services/irc: specify ircOpers globally --- cluster/services/irc/default.nix | 1 + cluster/services/irc/irc-host.nix | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cluster/services/irc/default.nix b/cluster/services/irc/default.nix index e83f8e9..a27b314 100644 --- a/cluster/services/irc/default.nix +++ b/cluster/services/irc/default.nix @@ -14,6 +14,7 @@ in owner = "ngircd"; group = "ngircd"; }; + ircOpers = [ "max" "num" "ark" ]; }; hostLinks = lib.genAttrs config.services.irc.nodes.host (name: { irc = { diff --git a/cluster/services/irc/irc-host.nix b/cluster/services/irc/irc-host.nix index 2982c52..cb727ba 100644 --- a/cluster/services/irc/irc-host.nix +++ b/cluster/services/irc/irc-host.nix @@ -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;