From b41ebb78b6949d8cba0f2b63a0599daab5730a78 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 2 Jun 2018 18:00:09 +0200 Subject: ... --- custom/uucp-mediaclient.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom/uucp-mediaclient.nix b/custom/uucp-mediaclient.nix index 07afeda4..aa53987c 100644 --- a/custom/uucp-mediaclient.nix +++ b/custom/uucp-mediaclient.nix @@ -77,13 +77,13 @@ in { }; }; - config = mkIf (cfg.remoteNodes != []) { - imports = [ ./custom/notify-users.nix ]; + imports = mkIf (cfg.notify.users != []) [ ./custom/notify-users.nix ]; + config = mkIf (cfg.remoteNodes != []) { services.uucp.commandPath = [ "${recv-media}/bin" ]; services.uucp.remoteNodes = genAttrs cfg.remoteNodes (name: { commands = ["recv-media"]; } ); - services.notify-users = notify.users; + services.notify-users = mkIf (cfg.notify.users != []) notify.users; }; } -- cgit v1.2.3