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,18 +1,37 @@
|
||||||
{pkgs, ...}: {
|
{
|
||||||
programs.chromium.enable = true;
|
config,
|
||||||
programs.firefox = let
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
betterfox = pkgs.fetchFromGitHub {
|
betterfox = pkgs.fetchFromGitHub {
|
||||||
owner = "yokoffing";
|
owner = "yokoffing";
|
||||||
repo = "betterfox";
|
repo = "betterfox";
|
||||||
rev = "e026ed7d3a763c5d3f96c2680d7bc3340831af4f";
|
rev = "e026ed7d3a763c5d3f96c2680d7bc3340831af4f";
|
||||||
hash = "sha256-hpkEO5BhMVtINQG8HN4xqfas/R6q5pYPZiFK8bilIDs=";
|
hash = "sha256-hpkEO5BhMVtINQG8HN4xqfas/R6q5pYPZiFK8bilIDs=";
|
||||||
};
|
};
|
||||||
in {
|
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;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue