From 27a254a27df47cac88ce8053b4efe575cf9c481e Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 21 Oct 2023 22:30:59 +0200 Subject: feat(hm/conf/firefox): Use the policy.json file for configs --- .../firefox/functions/extensions/video-pauser.nix | 30 ---------------------- 1 file changed, 30 deletions(-) delete mode 100644 hm/soispha/conf/firefox/functions/extensions/video-pauser.nix (limited to 'hm/soispha/conf/firefox/functions/extensions/video-pauser.nix') diff --git a/hm/soispha/conf/firefox/functions/extensions/video-pauser.nix b/hm/soispha/conf/firefox/functions/extensions/video-pauser.nix deleted file mode 100644 index c4c5238f..00000000 --- a/hm/soispha/conf/firefox/functions/extensions/video-pauser.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ - pkgs, - video_pause, - ... -}: -pkgs.runCommand "video_pause_native_messaging" {} '' - install -d $out/share/ - cat << EOF > $out/share/video_pauser.json - { - "name": "video_pauser", - "description": "Pause your Videos with a single key stroke!", - "path": "${video_pause}/bin/video_pause", - "type": "stdio", - "allowed_extensions": ["video-pauser@addons.vhack.eu"] - } - EOF - - nativeMessagingPaths=( - /lib/mozilla/native-messaging-hosts - /etc/opt/chrome/native-messaging-hosts - /etc/chromium/native-messaging-hosts - /etc/vivaldi/native-messaging-hosts - /lib/librewolf/native-messaging-hosts - ) - - for manifestDir in "''${nativeMessagingPaths[@]}"; do - install -d $out$manifestDir - ln -s $out/share/video_pauser.json $out$manifestDir/ - done -'' -- cgit 1.4.1