mv pkgs ff: don't sudo

This commit is contained in:
tv 2015-11-20 16:59:15 +01:00
parent 817a78c711
commit 2650803ff6
2 changed files with 5 additions and 9 deletions

View File

@ -12,7 +12,11 @@
--disk-cache-size=50000000 \ --disk-cache-size=50000000 \
"%@" "%@"
''; '';
ff = pkgs.callPackage ./ff {}; ff = pkgs.writeScriptBin "ff" ''
#! /bin/sh
set -efu
exec ${pkgs.firefoxWrapper}/bin/firefox $(printf " %q" "$@")
'';
xmonad-tv = xmonad-tv =
let src = pkgs.writeNixFromCabal "xmonad-tv.nix" ./xmonad-tv; in let src = pkgs.writeNixFromCabal "xmonad-tv.nix" ./xmonad-tv; in
pkgs.haskellPackages.callPackage src {}; pkgs.haskellPackages.callPackage src {};

View File

@ -1,8 +0,0 @@
{ pkgs, ... }:
pkgs.writeScriptBin "ff" ''
#! ${pkgs.bash}/bin/bash
exec sudo -u ff -i <<EOF
exec ${pkgs.firefoxWrapper}/bin/firefox $(printf " %q" "$@")
EOF
''