From cb3ebc4ce8aa370b5d463afc0dc69f4821dd064f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 27 Apr 2016 11:52:08 +0200 Subject: portSpecs --- custom/uucp.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'custom') diff --git a/custom/uucp.nix b/custom/uucp.nix index 5b6d32b3..a457cca7 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix @@ -2,7 +2,15 @@ with lib; -{ +let + portSpec = name: '' + port ${name} + type pipe + protocol e + reliable true + command ${pkgs.openssh}/bin/ssh -x -o batchmode=yes ${name} + ''; +in { options = { services.uucp = { enable = mkOption { @@ -102,5 +110,9 @@ with lib; mkdir -p ${config.users.users."uucp".home}/.ssh cp ${builtins.toFile "ssh-config" config.services.uucp.sshConfig} ${config.users.users."uucp".home}/.ssh/config ''; + + environment.etc."uucp/port" = { + text = concatStringsSep "\n" portSpec config.services.uucp.remoteNodes; + }; }; } -- cgit v1.2.3