{ config, lib, pkgs, ... }: let sources = import ../../../../nix/sources.nix; commonSettings = { "app.update.auto" = false; "identity.fxaccounts.account.device.name" = config.networking.hostName; "signon.rememberSignons" = false; "browser.urlbar.placeholderName" = "DuckDuckGo"; "toolkit.legacyUserProfileCustomizations.stylesheets" = true; "identity.sync.tokenserver.uri" = "https://sync.kittywit.ch/token/1.0/sync/1.5"; }; in { home-manager.users.kat = { programs.fish.shellAliases = { ff-pm = "firefox --ProfileManager"; ff-main = "firefox -P main"; ff-work = "firefox -P work"; ff-lewd = "firefox -P lewd"; }; programs.firefox = { enable = true; extensions = with pkgs.nur.repos.rycee.firefox-addons; [ auto-tab-discard bitwarden darkreader decentraleyes foxyproxy-standard google-search-link-fix https-everywhere #old-reddit-redirect # made unnecessary due to tridactylrc privacy-badger reddit-enhancement-suite refined-github stylus terms-of-service-didnt-read tabcenter-reborn tridactyl ublock-origin violentmonkey ]; profiles = { main = { id = 0; isDefault = true; settings = commonSettings // { }; userChrome = import ./userChrome.css.nix { profile = "main"; }; }; work = { id = 1; settings = commonSettings // { }; userChrome = import ./userChrome.css.nix { profile = "work"; }; }; lewd = { id = 2; settings = commonSettings // { }; userChrome = import ./userChrome.css.nix { profile = "lewd"; }; }; }; package = pkgs.wrapFirefox pkgs.firefox-unwrapped { forceWayland = true; }; }; home.file.".config/tridactyl/tridactylrc".source = ./tridactylrc; }; }