home/programs: put browsers in its own directory, switch to librefox

This commit is contained in:
Anthony Rodriguez 2024-10-20 15:36:05 +02:00
parent 4a64321697
commit 3243537284
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
3 changed files with 34 additions and 12 deletions

View file

@ -0,0 +1,3 @@
{
imports = [./firefox.nix];
}

View file

@ -1,18 +1,37 @@
{pkgs, ...}: {
programs.chromium.enable = true;
programs.firefox = let
betterfox = pkgs.fetchFromGitHub {
owner = "yokoffing";
repo = "betterfox";
rev = "e026ed7d3a763c5d3f96c2680d7bc3340831af4f";
hash = "sha256-hpkEO5BhMVtINQG8HN4xqfas/R6q5pYPZiFK8bilIDs=";
};
in {
{
config,
pkgs,
...
}: let
betterfox = pkgs.fetchFromGitHub {
owner = "yokoffing";
repo = "betterfox";
rev = "e026ed7d3a763c5d3f96c2680d7bc3340831af4f";
hash = "sha256-hpkEO5BhMVtINQG8HN4xqfas/R6q5pYPZiFK8bilIDs=";
};
in {
# https://github.com/jchv/nixos-config/blob/402c2e612529870544e3a96d5d0cc1a239d003a5/modules/users/john/librewolf.nix#L14-L15
home.file.".mozilla/firefox/profiles.ini".target = ".librewolf/profiles.ini";
home.file.".librewolf/nezia".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.mozilla/firefox/nezia";
programs.firefox = {
enable = true;
# https://github.com/jchv/nixos-config/blob/402c2e612529870544e3a96d5d0cc1a239d003a5/modules/users/john/librewolf.nix#L18-L23
package = pkgs.wrapFirefox pkgs.librewolf-unwrapped {
inherit (pkgs.librewolf-unwrapped) extraPrefsFiles extraPoliciesFiles;
wmClass = "LibreWolf";
libName = "librewolf";
};
profiles = {
nezia = {
settings = {
"ui.key.menuAccessKeyFocuses" = false;
"privacy.clearOnShutdown.cache" = false;
"privacy.clearOnShutdown.cookies" = false;
"privacy.clearOnShutdown.downloads" = false;
"privacy.clearOnShutdown.formdata" = false;
"privacy.clearOnShutdown.history" = false;
"privacy.clearOnShutdown.offlineApps" = false;
"privacy.clearOnShutdown.sessions" = false;
};
# https://git.jacekpoz.pl/poz/niksos/src/commit/a48647a1c5bc6877a1100a65f4dc169b2fc11ed7/hosts/hape/firefox.nix
search = {
@ -62,7 +81,6 @@
(builtins.readFile "${betterfox}/Peskyfox.js")
(builtins.readFile "${betterfox}/Smoothfox.js")
];
isDefault = true;
};
};
};

View file

@ -1,6 +1,6 @@
{pkgs, ...}: {
imports = [
./browsers.nix
./browsers
./media
./xdg.nix
./gtk.nix
@ -16,6 +16,7 @@
};
home.packages = with pkgs; [
geary
imhex
logisim-evolution
obsidian