diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2019-12-23 17:26:25 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2019-12-23 17:26:25 +0100 |
commit | 03b984ffa4f9fc5850ed513d390b465b33609f27 (patch) | |
tree | 371b407639b7f542be943e8d1a4a36f10c9103be /custom | |
parent | 3be977cad79abe0d0ca62067b1869ca78d57d1b3 (diff) | |
download | nixos-03b984ffa4f9fc5850ed513d390b465b33609f27.tar nixos-03b984ffa4f9fc5850ed513d390b465b33609f27.tar.gz nixos-03b984ffa4f9fc5850ed513d390b465b33609f27.tar.bz2 nixos-03b984ffa4f9fc5850ed513d390b465b33609f27.tar.xz nixos-03b984ffa4f9fc5850ed513d390b465b33609f27.zip |
...
Diffstat (limited to 'custom')
-rw-r--r-- | custom/uucp.nix | 10 |
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: { |