home/{firefox,thunderbird}: remove ifd

This commit is contained in:
Guanran Wang 2024-06-21 10:58:52 +08:00
parent c77d4acafc
commit 05b41c3c75
2 changed files with 13 additions and 21 deletions

View file

@ -1,19 +1,12 @@
{pkgs, ...}: { {pkgs, ...}: {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
profiles."default" = { package = pkgs.firefox.overrides {
extraConfig = '' extraPrefsFiles = [
${builtins.readFile (pkgs.fetchurl { "${pkgs.arkenfox-userjs}/user.cfg"
# FIXME: IFD ./user-overrides.js
url = "https://raw.githubusercontent.com/arkenfox/user.js/126.1/user.js"; ];
hash = "sha256-XRtG0iLKh8uqbeX7Rc2H6VJwZYJoNZPBlAfZEfrSCP4=";
})}
${builtins.readFile ./user-overrides.js}
'';
}; };
}; profiles."default" = {};
home.sessionVariables = {
MOZ_USE_XINPUT2 = "1";
}; };
} }

View file

@ -1,16 +1,15 @@
{pkgs, ...}: { {pkgs, ...}: {
programs.thunderbird = { programs.thunderbird = {
enable = true; enable = true;
profiles.default = { package = pkgs.thunderbird.override {
isDefault = true; extraPerfFiles = [
extraConfig = '' (pkgs.fetchurl {
${builtins.readFile (pkgs.fetchurl {
# FIXME: IFD
url = "https://raw.githubusercontent.com/HorlogeSkynet/thunderbird-user.js/d6b18302e46349d9924c8a76951bae6efca51501/user.js"; url = "https://raw.githubusercontent.com/HorlogeSkynet/thunderbird-user.js/d6b18302e46349d9924c8a76951bae6efca51501/user.js";
hash = "sha256-66B1yLQkQnydAUXD7KGt32OhWSYcdWX+BUozrgW9uAg="; hash = "sha256-66B1yLQkQnydAUXD7KGt32OhWSYcdWX+BUozrgW9uAg=";
})} })
${builtins.readFile ./user-overrides.js} ./user-overrides.js
''; ];
}; };
profiles.default.isDefault = true;
}; };
} }