From 9e8b1443806cf8e9eb004853b1547a5cc0c0d316 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 2 Jun 2018 18:44:59 +0200 Subject: ... --- custom/uucp-notifyclient.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'custom') diff --git a/custom/uucp-notifyclient.nix b/custom/uucp-notifyclient.nix index be6284b1..4cc51b9c 100644 --- a/custom/uucp-notifyclient.nix +++ b/custom/uucp-notifyclient.nix @@ -18,7 +18,7 @@ in { services.uucp.notify-client = { remoteNodes = mkOption { type = with types; attrsOf (submodule nodeConfig); - default = []; + default = {}; description = '' Servers to receive notifications from ''; @@ -29,7 +29,7 @@ in { imports = [ ./notify-users.nix ]; config = mkIf (cfg.remoteNodes != {}) { - services.notify-users = concatMap ({ allowedUsers }: allowedUsers) cfg.remoteNodes; + services.notify-users = concat (mapAttrsToList ({ allowedUsers, ... }: allowedUsers) cfg.remoteNodes); services.uucp.remoteNodes = mapAttrs (name: { allowedUsers, ... }: { commands = map (user: "notify-${user}") allowedUsers; }) cfg.remoteNodes; services.uucp.commandPath = [ config.security.wrapperDir ]; -- cgit v1.2.3