From 7b57f336fdf057a74324cc329067300c8e52c600 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 27 Apr 2016 12:17:34 +0200 Subject: system specifications --- custom/uucp.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/custom/uucp.nix b/custom/uucp.nix index b46ecedf..c1f148a3 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix @@ -10,6 +10,11 @@ let reliable true command ${pkgs.openssh}/bin/ssh -x -o batchmode=yes ${name} ''; + sysSpec = name: '' + system ${name} + time Any + port ${name} + ''; in { options = { services.uucp = { @@ -114,5 +119,12 @@ in { environment.etc."uucp/port" = { text = concatStringsSep "\n" (map portSpec config.services.uucp.remoteNodes); }; + environment.etc."uucp/sys" = { + text = concatStringsSep "\n" (map sysSpec config.services.uucp.remoteNodes); + }; + + security.setuidOwners = map (p: {program = p; owner = "root"; group = "root"; setuid = true; setgid = false;}) ["uucico" "uuxqt" "cu" "uucp" "uuname" "uustat" "uux"]; + + environment.systemPackages = with pkgs; [uucp]; }; } -- cgit v1.2.3