summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--custom/uucp.nix10
1 files changed, 3 insertions, 7 deletions
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 {
294 }; 294 };
295 295
296 security.wrappers = let 296 security.wrappers = let
297 niceWrapper = p: { 297 wrapper = p: {
298 name = p; 298 name = p;
299 value = { 299 value = {
300 source = pkgs.writeScript "${p}-nice" '' 300 source = "${pkgs.uucp}/bin/${p}";
301 #!${pkgs.stdenv.shell}
302
303 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} $@
304 '';
305 owner = "root"; 301 owner = "root";
306 group = "root"; 302 group = "root";
307 setuid = true; 303 setuid = true;
308 setgid = false; 304 setgid = false;
309 }; 305 };
310 }; 306 };
311 in listToAttrs (map niceWrapper ["uucico" "cu" "uucp" "uuname" "uustat" "uux" "uuxqt"]); 307 in listToAttrs (map wrapper ["uucico" "cu" "uucp" "uuname" "uustat" "uux" "uuxqt"]);
312 308
313 nixpkgs.overlays = [(self: super: { 309 nixpkgs.overlays = [(self: super: {
314 uucp = super.stdenv.lib.overrideDerivation super.uucp (oldAttrs: { 310 uucp = super.stdenv.lib.overrideDerivation super.uucp (oldAttrs: {