summaryrefslogtreecommitdiffstats
path: root/pkgs/simple/cr.nix
blob: 11d263e17c63eccdd9cfc74fea3934b101c4b7f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ 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.ungoogled-chromium}/bin/chromium \
      --ssl-version-min=tls1 \
      --disk-cache-dir="$cache_dir" \
      --disk-cache-size=50000000 \
      "$@"
''