nix/modules/home-manager/firefox.nix

53 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2023-10-05 13:43:28 -05:00
{pkgs, ...}: {
programs.firefox = {
# TODO: this should be able to work on macos, no?
# TODO: enable dark theme by default
enable = true;
# TODO: uses nixpkgs.pass so pass otp doesn't work
package = pkgs.firefox.override {nativeMessagingHosts = [pkgs.passff-host];};
2023-10-05 13:43:28 -05:00
# extensions = with pkgs.nur.repos.rycee.firefox-addons; [
# ublock-origin
# ]; # TODO: would be nice to have _all_ my firefox stuff managed here instead of Firefox Sync maybe?
profiles = {
daniel = {
id = 0;
settings = {
"general.smoothScroll" = true;
};
extraConfig = ''
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
// user_pref("full-screen-api.ignore-widgets", true);
user_pref("media.ffmpeg.vaapi.enabled", true);
user_pref("media.rdd-vpx.enabled", true);
'';
userChrome = ''
#TabsToolbar {
visibility: collapse;
}
#webrtcIndicator {
display: none;
}
2023-10-16 16:50:55 -05:00
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar>.toolbar-items {
2023-10-05 13:43:28 -05:00
opacity: 0;
pointer-events: none;
}
2023-10-16 16:50:55 -05:00
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
2023-10-05 13:43:28 -05:00
visibility: collapse !important;
}
'';
# userContent = ''
# '';
};
};
};
}