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
commit82a8e7eca896c94e35de22a734d538f25e028faf (patch)
treea0a961df4ca57d0529d31833b325e5f68ae518c1
parent5903c47cffee90824256994470e92d2956185e8c (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 e85c07fad..a6a820507 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