From 40e6133451785fed08d1ae65c5a92130b1ac1b9e Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 15 May 2016 23:30:56 +0200 Subject: uucp extraSys --- custom/uucp.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'custom') diff --git a/custom/uucp.nix b/custom/uucp.nix index 57a5c23e..ef0d98e7 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix @@ -139,6 +139,14 @@ in { default = ""; description = "Extra configuration to append verbatim to `/etc/uucp/config'"; }; + + extraSys = mkOption { + type = types.string; + default = '' + protocol-parameter g packet-size 4096 + ''; + description = "Extra configuration to prepend verbatim to `/etc/uucp/sys`"; + }; }; }; @@ -195,7 +203,7 @@ in { '' + concatStringsSep "\n" (map portSpec config.services.uucp.remoteNodes); }; environment.etc."uucp/sys" = { - text = concatStringsSep "\n" (map sysSpec config.services.uucp.remoteNodes); + text = config.services.uucp.extraSys + "\n" + 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"]; -- cgit v1.2.3