home/programs: put browsers in its own directory, switch to librefox
This commit is contained in:
parent
4a64321697
commit
3243537284
3 changed files with 34 additions and 12 deletions
3
home/programs/browsers/default.nix
Normal file
3
home/programs/browsers/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
imports = [./firefox.nix];
|
||||
}
|
|
@ -1,6 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
programs.chromium.enable = true;
|
||||
programs.firefox = let
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
betterfox = pkgs.fetchFromGitHub {
|
||||
owner = "yokoffing";
|
||||
repo = "betterfox";
|
||||
|
@ -8,11 +10,28 @@
|
|||
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;
|
||||
};
|
||||
};
|
||||
};
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue