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; config,
programs.firefox = let pkgs,
betterfox = pkgs.fetchFromGitHub { ...
owner = "yokoffing"; }: let
repo = "betterfox"; betterfox = pkgs.fetchFromGitHub {
rev = "e026ed7d3a763c5d3f96c2680d7bc3340831af4f"; owner = "yokoffing";
hash = "sha256-hpkEO5BhMVtINQG8HN4xqfas/R6q5pYPZiFK8bilIDs="; repo = "betterfox";
}; rev = "e026ed7d3a763c5d3f96c2680d7bc3340831af4f";
in { 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; 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 = { profiles = {
nezia = { nezia = {
settings = { settings = {
"ui.key.menuAccessKeyFocuses" = false; "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 # https://git.jacekpoz.pl/poz/niksos/src/commit/a48647a1c5bc6877a1100a65f4dc169b2fc11ed7/hosts/hape/firefox.nix
search = { search = {
@ -62,7 +81,6 @@
(builtins.readFile "${betterfox}/Peskyfox.js") (builtins.readFile "${betterfox}/Peskyfox.js")
(builtins.readFile "${betterfox}/Smoothfox.js") (builtins.readFile "${betterfox}/Smoothfox.js")
]; ];
isDefault = true;
}; };
}; };
}; };

View file

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