diff options
author | tv <tv@krebsco.de> | 2016-05-25 02:41:55 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-05-25 02:41:55 +0200 |
commit | 82a8e7eca896c94e35de22a734d538f25e028faf (patch) | |
tree | a0a961df4ca57d0529d31833b325e5f68ae518c1 /tv/2configs | |
parent | 5903c47cffee90824256994470e92d2956185e8c (diff) |
tv xserver: compress need-reload
Diffstat (limited to 'tv/2configs')
-rw-r--r-- | tv/2configs/xserver/default.nix | 10 |
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 |