From 03b984ffa4f9fc5850ed513d390b465b33609f27 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 23 Dec 2019 17:26:25 +0100 Subject: ... --- custom/uucp.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'custom') diff --git a/custom/uucp.nix b/custom/uucp.nix index 8c986937..3ee52269 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix @@ -294,21 +294,17 @@ in { }; security.wrappers = let - niceWrapper = p: { + wrapper = p: { name = p; value = { - source = pkgs.writeScript "${p}-nice" '' - #!${pkgs.stdenv.shell} - - exec ${pkgs.systemd}/bin/systemd-run --service-type=exec --no-ask-password --same-dir --pty --pipe --wait --property=IOSchedulingClass=idle --property=Nice=10 ${pkgs.uucp}/bin/${p} $@ - ''; + source = "${pkgs.uucp}/bin/${p}"; owner = "root"; group = "root"; setuid = true; setgid = false; }; }; - in listToAttrs (map niceWrapper ["uucico" "cu" "uucp" "uuname" "uustat" "uux" "uuxqt"]); + in listToAttrs (map wrapper ["uucico" "cu" "uucp" "uuname" "uustat" "uux" "uuxqt"]); nixpkgs.overlays = [(self: super: { uucp = super.stdenv.lib.overrideDerivation super.uucp (oldAttrs: { -- cgit v1.2.3