summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-05-25 02:41:55 +0200
committertv <tv@krebsco.de>2016-05-25 02:41:55 +0200
commit4cc0217943787f7cd4d07f945ab084face42e8d1 (patch)
treee3e99c76f6523931746aa4a7993a86a6ecbc7ba5
parent55e5a539e48e0656664e6b210620087fd73967e1 (diff)
tv xserver: compress need-reload
-rw-r--r--tv/2configs/xserver/default.nix10
1 files changed, 4 insertions, 6 deletions
diff --git a/tv/2configs/xserver/default.nix b/tv/2configs/xserver/default.nix
index e85c07f..a6a8205 100644
--- a/tv/2configs/xserver/default.nix
+++ b/tv/2configs/xserver/default.nix
@@ -121,11 +121,9 @@ let
++ concatLists (catAttrs "libPath" config.services.xserver.drivers));
};
- need-reload = s: let
- pkg = pkgs.writeScriptBin "need-reload" ''
- #! /bin/sh
- echo "$*"
- '';
- in "${pkg}/bin/need-reload ${s}";
+ need-reload = s: toString [
+ "${pkgs.writeDashBin "need-reload" ''echo "$*"''}/bin/need-reload"
+ (shell.escape s)
+ ];
in out