summaryrefslogtreecommitdiff
path: root/hel/recv-media.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-05-30 14:09:34 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2017-05-30 14:09:34 +0200
commit54029fae7a31fe4fdc31fa149e8786cb2db1d411 (patch)
tree961a254977ce4ba8ad18a61e369f3d829b982467 /hel/recv-media.nix
parent968d71bbfdbe02b3d68979f980404e0c77b05c22 (diff)
downloadnixos-54029fae7a31fe4fdc31fa149e8786cb2db1d411.tar
nixos-54029fae7a31fe4fdc31fa149e8786cb2db1d411.tar.gz
nixos-54029fae7a31fe4fdc31fa149e8786cb2db1d411.tar.bz2
nixos-54029fae7a31fe4fdc31fa149e8786cb2db1d411.tar.xz
nixos-54029fae7a31fe4fdc31fa149e8786cb2db1d411.zip
Use wrapped sg
Diffstat (limited to 'hel/recv-media.nix')
-rw-r--r--hel/recv-media.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/hel/recv-media.nix b/hel/recv-media.nix
index d30da5eb..78d78121 100644
--- a/hel/recv-media.nix
+++ b/hel/recv-media.nix
@@ -2,7 +2,6 @@
2, coreutils 2, coreutils
3, writeScriptBin 3, writeScriptBin
4, eject 4, eject
5, shadow
6, notifyUser ? "gkleen" 5, notifyUser ? "gkleen"
7, showTitle ? true 6, showTitle ? true
8, ffmpeg ? null 7, ffmpeg ? null
@@ -19,7 +18,7 @@ writeScriptBin "recv-media" ''
19 notify=${if notifyUser == null then "false" else "true"} 18 notify=${if notifyUser == null then "false" else "true"}
20 notifyUser=${if notifyUser == null then "" else notifyUser} 19 notifyUser=${if notifyUser == null then "" else notifyUser}
21 20
22 PATH=${eject}/bin:${coreutils}/bin:${shadow}/bin:${if showTitle then ''${ffmpeg}/bin:${gnused}/bin:'' else ""}${wrapperDir} 21 PATH=${wrapperDir}:${eject}/bin:${coreutils}/bin${if showTitle then '':${ffmpeg}/bin:${gnused}/bin'' else ""}
23 22
24 exec 1> >(logger --id=$pid -t recv-media -p user.notice) 23 exec 1> >(logger --id=$pid -t recv-media -p user.notice)
25 exec 2> >(logger --id=$pid -t recv-media -p user.error) 24 exec 2> >(logger --id=$pid -t recv-media -p user.error)