summaryrefslogtreecommitdiffstats
path: root/mv
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-11-20 16:59:15 +0100
committertv <tv@krebsco.de>2015-11-20 16:59:15 +0100
commit3bc83b484ca797c48007fa37d5598f3c59c7da19 (patch)
tree4cd2303687199d96477d51d466b16f9a7aa2c5e3 /mv
parent46c4d6989b0d11bc38a62217d29283f2305ee4f1 (diff)
mv pkgs ff: don't sudo
Diffstat (limited to 'mv')
-rw-r--r--mv/5pkgs/default.nix6
-rw-r--r--mv/5pkgs/ff/default.nix8
2 files changed, 5 insertions, 9 deletions
diff --git a/mv/5pkgs/default.nix b/mv/5pkgs/default.nix
index a852c24..0c72c45 100644
--- a/mv/5pkgs/default.nix
+++ b/mv/5pkgs/default.nix
@@ -12,7 +12,11 @@
--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 =
let src = pkgs.writeNixFromCabal "xmonad-tv.nix" ./xmonad-tv; in
pkgs.haskellPackages.callPackage src {};
diff --git a/mv/5pkgs/ff/default.nix b/mv/5pkgs/ff/default.nix
deleted file mode 100644
index 2db4040..0000000
--- a/mv/5pkgs/ff/default.nix
+++ /dev/null
@@ -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
-''