summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2019-12-23 16:44:52 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2019-12-23 16:44:52 +0100
commit3946f8b248d9235d9a4379e9889cd5b0ed464156 (patch)
treef3d26c946e3171720c16aeb09383492569a8c43e /custom
parent8833c72c7beadd8a7bef8e185a196ab9de098019 (diff)
downloadnixos-3946f8b248d9235d9a4379e9889cd5b0ed464156.tar
nixos-3946f8b248d9235d9a4379e9889cd5b0ed464156.tar.gz
nixos-3946f8b248d9235d9a4379e9889cd5b0ed464156.tar.bz2
nixos-3946f8b248d9235d9a4379e9889cd5b0ed464156.tar.xz
nixos-3946f8b248d9235d9a4379e9889cd5b0ed464156.zip
...
Diffstat (limited to 'custom')
-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: {