summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-06-02 18:00:09 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-06-02 18:00:09 +0200
commitb41ebb78b6949d8cba0f2b63a0599daab5730a78 (patch)
tree858ef5a75608127cee6ef2ccb2490529f7ba025a
parentd49dd672463aff72bd754d657abbd11cf8a0d8e0 (diff)
downloadnixos-b41ebb78b6949d8cba0f2b63a0599daab5730a78.tar
nixos-b41ebb78b6949d8cba0f2b63a0599daab5730a78.tar.gz
nixos-b41ebb78b6949d8cba0f2b63a0599daab5730a78.tar.bz2
nixos-b41ebb78b6949d8cba0f2b63a0599daab5730a78.tar.xz
nixos-b41ebb78b6949d8cba0f2b63a0599daab5730a78.zip
...
-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