This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

add firefox tool with tridactyl config

- wrap firefox with native messaging hosts (tridactyl-native)
- add tridactylrc with superignore for my.sevdesk.de
- update browsers.nix to use the new firefox package

+59 -9
+5 -9
2configs/browsers.nix
··· 1 - { pkgs, ... }: 1 + { pkgs, self, ... }: 2 2 { 3 - programs.firefox = { 4 - enable = true; 5 - nativeMessagingHosts.packages = [ 6 - pkgs.tridactyl-native 7 - ]; 8 - package = pkgs.firefox; 9 - }; 10 - environment.variables.BROWSER = "${pkgs.firefox-devedition}/bin/firefox-devedition"; 3 + environment.systemPackages = [ 4 + self.packages.${pkgs.system}.firefox 5 + ]; 6 + environment.variables.BROWSER = "${self.packages.${pkgs.system}.firefox}/bin/firefox"; 11 7 }
+41
tools/firefox/flake-module.nix
··· 1 + { 2 + perSystem = 3 + { pkgs, lib, ... }: 4 + let 5 + tridactylrc = ./tridactylrc; 6 + 7 + firefoxBase = pkgs.wrapFirefox pkgs.firefox-unwrapped { 8 + nativeMessagingHosts = [ 9 + pkgs.tridactyl-native 10 + ]; 11 + }; 12 + 13 + # Wrapper that sets up tridactylrc symlink before starting Firefox 14 + firefox = pkgs.writeShellScriptBin "firefox" '' 15 + # Tridactyl config setup 16 + config_dir="$HOME/.config/tridactyl" 17 + config_file="$config_dir/tridactylrc" 18 + repo_config="$HOME/src/superconfig/tools/firefox/tridactylrc" 19 + store_config="${tridactylrc}" 20 + 21 + mkdir -p "$config_dir" 22 + 23 + # Prefer repo version if it exists, otherwise use store version 24 + if [[ -f "$repo_config" ]]; then 25 + target="$repo_config" 26 + else 27 + target="$store_config" 28 + fi 29 + 30 + # Update symlink if needed 31 + if [[ ! -L "$config_file" ]] || [[ "$(readlink "$config_file")" != "$target" ]]; then 32 + ln -sf "$target" "$config_file" 33 + fi 34 + 35 + exec ${firefoxBase}/bin/firefox "$@" 36 + ''; 37 + in 38 + { 39 + packages.firefox = firefox; 40 + }; 41 + }
+13
tools/firefox/tridactylrc
··· 1 + " Tridactyl configuration 2 + " Source this file from ~/.config/tridactyl/tridactylrc with: 3 + " source /path/to/this/tridactylrc 4 + 5 + " Disable Tridactyl completely on sites that break with it 6 + " Uses seturl with regex pattern - prevents Tridactyl from injecting anything 7 + seturl my\.sevdesk\.de superignore true 8 + 9 + " Smooth scrolling 10 + set smoothscroll true 11 + 12 + " Don't focus input fields automatically 13 + set allowautofocus false