summaryrefslogtreecommitdiff
path: root/custom/uucp.nix
diff options
context:
space:
mode:
Diffstat (limited to 'custom/uucp.nix')
-rw-r--r--custom/uucp.nix25
1 files changed, 9 insertions, 16 deletions
diff --git a/custom/uucp.nix b/custom/uucp.nix
index 1ef86e8a..2b43d207 100644
--- a/custom/uucp.nix
+++ b/custom/uucp.nix
@@ -296,28 +296,21 @@ in {
296 security.wrappers = let 296 security.wrappers = let
297 wrapper = p: { name = p; 297 wrapper = p: { name = p;
298 value = { 298 value = {
299 source = "${pkgs.uucp}/bin/${p}"; 299 source = pkgs.writeScript ''${p}-nice'' ''
300 #!${pkgs.stdenv.shell}
301
302 ${pkgs.utillinux}/bin/renice -n 15 -p $$
303 ${pkgs.utillinux}/bin/ionice -c 3 -p $$
304
305 exec ${pkgs.uucp}/bin/${p} $@
306 '';
300 owner = "root"; 307 owner = "root";
301 group = "root"; 308 group = "root";
302 setuid = true; 309 setuid = true;
303 setgid = false; 310 setgid = false;
304 }; 311 };
305 }; 312 };
306 uucico = { 313 in listToAttrs (map wrapper ["uucico" "uuxqt" "cu" "uucp" "uuname" "uustat" "uux"]);
307 source = pkgs.writeScript "uucico-nice" ''
308 #!${pkgs.stdenv.shell}
309
310 ${pkgs.utillinux}/bin/renice -n 15 -p $$
311 ${pkgs.utillinux}/bin/ionice -c 3 -p $$
312
313 exec ${pkgs.uucp}/bin/uucico $@
314 '';
315 owner = "root";
316 group = "root";
317 setuid = true;
318 setgid = false;
319 };
320 in listToAttrs (map wrapper ["uuxqt" "cu" "uucp" "uuname" "uustat" "uux"]) // { inherit uucico; };
321 314
322 nixpkgs.overlays = [(self: super: { 315 nixpkgs.overlays = [(self: super: {
323 uucp = super.stdenv.lib.overrideDerivation super.uucp (oldAttrs: { 316 uucp = super.stdenv.lib.overrideDerivation super.uucp (oldAttrs: {