c31a5e22ca
This is currently versioned by my dotfiles. Since this is used in both Mac(Work) & Linux machines I can't just keep this in nix-land so it will likely need to be managed either like below or via the dotfiles `make up` command.
62 lines
2.0 KiB
Nix
62 lines
2.0 KiB
Nix
{ config, pkgs, ... }: {
|
|
|
|
home-manager.users.james = {
|
|
|
|
# Enable touch controls.
|
|
home.sessionVariables = { MOZ_USE_XINPUT2 = 1; };
|
|
|
|
programs.firefox = {
|
|
enable = true;
|
|
|
|
package = pkgs.firefox.override {
|
|
cfg = {
|
|
enableTridactylNative = true;
|
|
# TODO make this general based on the whether sway is being used.
|
|
forceWayland = true;
|
|
};
|
|
};
|
|
|
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
|
onepassword-password-manager
|
|
https-everywhere
|
|
ublock-origin
|
|
tridactyl
|
|
];
|
|
|
|
profiles = {
|
|
default = {
|
|
name = "primary";
|
|
id = 0;
|
|
|
|
settings = {
|
|
"browser.download.useDownloadDir" =
|
|
false; # Ask for download location
|
|
"browser.in-content.dark-mode" = true; # Dark mode
|
|
"browser.newtabpage.activity-stream.feeds.section.topstories" =
|
|
false; # Disable top stories
|
|
"browser.newtabpage.activity-stream.feeds.sections" = false;
|
|
"browser.newtabpage.activity-stream.feeds.system.topstories" =
|
|
false; # Disable top stories
|
|
"browser.newtabpage.activity-stream.section.highlights.includePocket" =
|
|
false; # Disable pocket
|
|
"media.eme.enabled" = true; # Enable DRM
|
|
"media.gmp-widevinecdm.visible" = true; # Enable DRM
|
|
"media.gmp-widevinecdm.enabled" = true; # Enable DRM
|
|
"signon.autofillForms" = false; # Disable built-in form-filling
|
|
"signon.rememberSignons" =
|
|
false; # Disable built-in password manager
|
|
"ui.systemUsesDarkTheme" = true; # Dark mode
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
# This is a bit silly as this is currently managed by my make dot config.
|
|
xdg.configFile."tridactyl/tridactylrc".source = pkgs.fetchurl {
|
|
url =
|
|
"https://git.jpatrick.io/james/dotfiles/raw/branch/master/tridactyl/tridactylrc";
|
|
sha256 = "sha256-iOBd/yEvQP/Gn3+lS2Ztu9oslllZU4G7VnM4pTck+Tg=";
|
|
};
|
|
};
|
|
}
|