summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--custom/uucp-mediaclient.nix6
1 files 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 {
77 }; 77 };
78 }; 78 };
79 79
80 config = mkIf (cfg.remoteNodes != []) { 80 imports = mkIf (cfg.notify.users != []) [ ./custom/notify-users.nix ];
81 imports = [ ./custom/notify-users.nix ];
82 81
82 config = mkIf (cfg.remoteNodes != []) {
83 services.uucp.commandPath = [ "${recv-media}/bin" ]; 83 services.uucp.commandPath = [ "${recv-media}/bin" ];
84 services.uucp.remoteNodes = genAttrs cfg.remoteNodes (name: { commands = ["recv-media"]; } ); 84 services.uucp.remoteNodes = genAttrs cfg.remoteNodes (name: { commands = ["recv-media"]; } );
85 85
86 services.notify-users = notify.users; 86 services.notify-users = mkIf (cfg.notify.users != []) notify.users;
87 }; 87 };
88} 88}
89 89