stockholm/tv/5pkgs/simple/cr.nix
2022-03-05 11:09:30 +01:00

17 lines
387 B
Nix

{ pkgs }:
pkgs.writeDashBin "cr" ''
set -efu
if test -n "''${XDG_RUNTIME_DIR-}"; then
cache_dir=$XDG_RUNTIME_DIR/chromium-disk-cache
else
cache_dir=/tmp/chromium-disk-cache_$LOGNAME
fi
export LC_TIME=de_DE.utf8
exec ${pkgs.chromium}/bin/chromium \
--ssl-version-min=tls1 \
--disk-cache-dir="$cache_dir" \
--disk-cache-size=50000000 \
"$@"
''