From 47a2a43ad79edea3465f97e6bf307871e1fc5e23 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 20 Feb 2017 01:47:15 +0100 Subject: Syntax --- custom/uucp.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom/uucp.nix b/custom/uucp.nix index 2fbba8f9..0e38f4d2 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix @@ -208,7 +208,9 @@ in { text = config.services.uucp.extraSys + "\n" + concatStringsSep "\n" (map sysSpec config.services.uucp.remoteNodes); }; - security.wrappers = listToAttrs (map (p: {source = "${pkgs.uucp}/bin/${p}"; owner = "root"; group = "root"; setuid = true; setgid = false;}) ["uucico" "uuxqt" "cu" "uucp" "uuname" "uustat" "uux"]); + security.wrappers = let + wrapper = p: { name = p; source = "${pkgs.uucp}/bin/${p}"; owner = "root"; group = "root"; setuid = true; setgid = false; }; + in listToAttrs (map wrapper ["uucico" "uuxqt" "cu" "uucp" "uuname" "uustat" "uux"]); nixpkgs.config.packageOverrides = pkgs: with pkgs; { uucp = stdenv.lib.overrideDerivation uucp (oldAttrs: { -- cgit v1.2.3