Compare commits
No commits in common. "710de6ac83fe6716677b10c02f74561551828a5b" and "bef5b3f86d4eacef0f24c15d88a9068c2e4227df" have entirely different histories.
710de6ac83
...
bef5b3f86d
11
flake.lock
11
flake.lock
|
@ -150,16 +150,15 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1707204789,
|
"lastModified": 1706473109,
|
||||||
"narHash": "sha256-S3QVfyUPa7zzeyk0TAqr9i9FLwnaO/6zPx4DVCNEeqA=",
|
"narHash": "sha256-iyuAvpKTsq2u23Cr07RcV5XlfKExrG8gRpF75hf1uVc=",
|
||||||
"owner": "chayleaf",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "8abb90abf382972e8cd2f3c3b3cdc93c1502b067",
|
"rev": "d634c3abafa454551f2083b054cd95c3f287be61",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "chayleaf",
|
"owner": "nix-community",
|
||||||
"ref": "librewolf",
|
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:chayleaf/home-manager/librewolf";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nix-gaming = {
|
nix-gaming = {
|
||||||
|
@ -65,7 +65,6 @@
|
||||||
# it takes the paths for modules from filesystem as opposed to flake inputs
|
# it takes the paths for modules from filesystem as opposed to flake inputs
|
||||||
dev = {
|
dev = {
|
||||||
# coop-ofd = true;
|
# coop-ofd = true;
|
||||||
# home-manager = true;
|
|
||||||
# mobile-nixos = true;
|
# mobile-nixos = true;
|
||||||
# nixos-router = true;
|
# nixos-router = true;
|
||||||
# notnft = true;
|
# notnft = true;
|
||||||
|
@ -83,8 +82,7 @@
|
||||||
(name: input:
|
(name: input:
|
||||||
if dev.${name} or false then
|
if dev.${name} or false then
|
||||||
(if input._type or null == "flake"
|
(if input._type or null == "flake"
|
||||||
then let inputs = input.inputs // { self = (import /${devPath}/${name}/flake.nix).outputs inputs; };
|
then (import base-inputs.flake-compat { src = /${devPath}/${name}; }).defaultNix
|
||||||
in inputs.self
|
|
||||||
else /${devPath}/${name})
|
else /${devPath}/${name})
|
||||||
else input)
|
else input)
|
||||||
base-inputs;
|
base-inputs;
|
||||||
|
|
|
@ -5,8 +5,10 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./gui.nix ];
|
imports = [
|
||||||
|
./gui.nix
|
||||||
|
];
|
||||||
|
home.file.".mozilla/firefox/profiles.ini".target = ".librewolf/profiles.ini";
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.wrapFirefox pkgs.librewolf-unwrapped {
|
package = pkgs.wrapFirefox pkgs.librewolf-unwrapped {
|
||||||
|
@ -38,96 +40,20 @@
|
||||||
youtube-shorts-block
|
youtube-shorts-block
|
||||||
]) ++ (with pkgs.firefoxAddons; [
|
]) ++ (with pkgs.firefoxAddons; [
|
||||||
fastforwardteam
|
fastforwardteam
|
||||||
|
middle-mouse-button-scroll
|
||||||
rikaitan
|
rikaitan
|
||||||
youtube-nonstop
|
youtube-nonstop
|
||||||
]);
|
]);
|
||||||
search.default = "search.pavluk.org";
|
settings = lib.mkIf config.phone.enable {
|
||||||
search.privateDefault = "search.pavluk.org";
|
"dom.w3c.touch_events.enabled" = true;
|
||||||
search.force = true;
|
"apz.allow_zooming" = true;
|
||||||
search.engines."search.pavluk.org" = {
|
"apz.allow_double_tap_zooming" = true;
|
||||||
name = "search.pavluk.org";
|
"dom.w3c_touch_events.legacy_apis.enabled" = true;
|
||||||
description = "SearXNG is a metasearch engine that respects your privacy.";
|
"browser.tabs.inTitlebar" = 1;
|
||||||
queryCharset = "UTF-8";
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||||
searchForm = "https://search.pavluk.org/search";
|
"browser.urlbar.clickSelectsAll" = true;
|
||||||
iconURL = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5Mm1tIiBoZWlnaHQ9IjkybW0iIHZpZXdCb3g9IjAgMCA5MiA5MiI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTQwLjkyMSAtMTcuNDE3KSI+PGNpcmNsZSBjeD0iNzUuOTIxIiBjeT0iNTMuOTAzIiByPSIzMCIgc3R5bGU9ImZpbGw6bm9uZTtmaWxsLW9wYWNpdHk6MTtzdHJva2U6IzMwNTBmZjtzdHJva2Utd2lkdGg6MTA7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIvPjxwYXRoIGQ9Ik02Ny41MTUgMzcuOTE1YTE4IDE4IDAgMCAxIDIxLjA1MSAzLjMxMyAxOCAxOCAwIDAgMSAzLjEzOCAyMS4wNzgiIHN0eWxlPSJmaWxsOm5vbmU7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOiMzMDUwZmY7c3Ryb2tlLXdpZHRoOjU7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIvPjxyZWN0IHdpZHRoPSIxOC44NDYiIGhlaWdodD0iMzkuOTYzIiB4PSIzLjcwNiIgeT0iMTIyLjA5IiByeT0iMCIgc3R5bGU9Im9wYWNpdHk6MTtmaWxsOiMzMDUwZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjg7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgdHJhbnNmb3JtPSJyb3RhdGUoLTQ2LjIzNSkiLz48L2c+PC9zdmc+";
|
"toolkit.cosmeticAnimations.enabled" = false;
|
||||||
urls = [
|
"browser.download.animateNotifications" = false;
|
||||||
{ "params" = [ { "name" = "q"; "value" = "{searchTerms}"; } ];
|
|
||||||
"rels" = [ "results" ];
|
|
||||||
"template" = "https://search.pavluk.org/search";
|
|
||||||
"method" = "POST"; }
|
|
||||||
{ "params" = [ ];
|
|
||||||
"rels" = [ "suggestions" ];
|
|
||||||
"template" = "https://search.pavluk.org/autocompleter?q={searchTerms}";
|
|
||||||
"type" = "application/x-suggestions+json";
|
|
||||||
"method" = "POST"; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
settings = let
|
|
||||||
langs = [ "ar" "el" "he" "ja" "ko" "th" "x-armn" "x-beng" "x-cans" "x-cyrillic" "x-devanagari"
|
|
||||||
"x-ethi" "x-geor" "x-gujr" "x-guru" "x-khmr" "x-knda" "x-math" "x-mlym" "x-orya"
|
|
||||||
"x-sinh" "x-tamil" "x-telu" "x-tibt" "x-unicode" "x-western" "zh-CN" "zh-HK" "zh-TW" ];
|
|
||||||
genFonts = prefix: func:
|
|
||||||
lib.genAttrs
|
|
||||||
(map (lang: "font.name.${prefix}.${lang}") langs)
|
|
||||||
(s: func (lib.removePrefix "font.name.${prefix}." s));
|
|
||||||
notoFamilies = {
|
|
||||||
ar = "Arabic"; x-armn = "Armenian"; x-beng = "Bengali"; x-cans = "Canadian Aboriginal";
|
|
||||||
ja = "CJK JP"; ko = "CJK KR"; zh-CN = "CJK SC"; zh-HK = "CJK HK"; zh-TW = "CJK TC";
|
|
||||||
/* cyrillic = "Cyrillic"; */ x-devanagari = "Devanagari"; /* el = "Greek"; */
|
|
||||||
x-ethi = "Ethiopic"; x-geor = "Georgian"; x-gujr = "Gujarati"; x-guru = "Gurmukhi";
|
|
||||||
he = "Hebrew"; x-khmr = "Khmer"; x-knda = "Kannada"; x-math = "Math"; x-mlym = "Malayalam";
|
|
||||||
x-orya = "Oriya"; x-sinh = "Sinhala"; x-tamil = "Tamil"; x-telu = "Telugu"; th = "Thai";
|
|
||||||
x-tibt = "Tibetan"; /* x-unicode = "Other Writing Systems"; x-western = "Latin"; */
|
|
||||||
};
|
|
||||||
in genFonts "monospace" (_: "Noto Sans Mono")
|
|
||||||
// genFonts "sans-serif" (lang: if notoFamilies?${lang} then "Noto Sans ${notoFamilies.${lang}}" else "Noto Sans")
|
|
||||||
// genFonts "serif" (lang: if notoFamilies?${lang} then "Noto Serif ${notoFamilies.${lang}}" else "Noto Serif")
|
|
||||||
// {
|
|
||||||
"font.name.monospace.ja" = "Noto Sans Mono CJK JP";
|
|
||||||
"font.name.monospace.ko" = "Noto Sans Mono CJK KR";
|
|
||||||
"font.name.monospace.zh-CN" = "Noto Sans Mono CJK SC";
|
|
||||||
"font.name.monospace.zh-HK" = "Noto Sans Mono CJK HK";
|
|
||||||
"font.name.monospace.zh-TW" = "Noto Sans Mono CJK TC";
|
|
||||||
"font.name.serif.ar" = "Noto Sans Arabic";
|
|
||||||
"font.name.serif.x-cans" = "Noto Sans Canadian Aboriginal";
|
|
||||||
"font.name.serif.x-math" = "Noto Sans Math";
|
|
||||||
"font.name.serif.x-orya" = "Noto Sans Oriya";
|
|
||||||
|
|
||||||
# user-facing tweaks
|
|
||||||
"browser.quitShortcut.disabled" = true;
|
|
||||||
"browser.search.suggest.enabled" = true;
|
|
||||||
"general.autoScroll" = true;
|
|
||||||
"middlemouse.paste" = false;
|
|
||||||
"spellchecker.dictionary_path" = pkgs.symlinkJoin {
|
|
||||||
name = "firefox-hunspell-dicts";
|
|
||||||
paths = with pkgs.hunspellDicts; [ en-us-large ru-ru ];
|
|
||||||
};
|
|
||||||
"widget.content.allow-gtk-dark-theme" = true;
|
|
||||||
|
|
||||||
# user agent and overall behavioral tweaks
|
|
||||||
"gfx.webrender.all" = true;
|
|
||||||
"general.useragent.compatMode.firefox" = true;
|
|
||||||
"image.jxl.enabled" = true;
|
|
||||||
"noscript.sync.enabled" = true;
|
|
||||||
"privacy.donottrackheader.enabled" = true;
|
|
||||||
"webgl.disabled" = false;
|
|
||||||
"xpinstall.signatures.required" = false;
|
|
||||||
|
|
||||||
# privacy tweaks
|
|
||||||
"browser.contentblocking.category" = "strict";
|
|
||||||
"intl.accept_languages" = "en-US, en";
|
|
||||||
"javascript.use_us_english_locale" = true;
|
|
||||||
"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;
|
|
||||||
"privacy.fingerprintingProtection" = true;
|
|
||||||
"privacy.trackingprotection.enabled" = true;
|
|
||||||
"privacy.trackingprotection.emailtracking.enabled" = true;
|
|
||||||
"privacy.trackingprotection.socialtracking.enabled" = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
(let
|
(let
|
||||||
|
@ -143,18 +69,6 @@
|
||||||
userContent =
|
userContent =
|
||||||
concatFiles "${pkgs.mobile-config-firefox}/etc/mobile-config-firefox/common"
|
concatFiles "${pkgs.mobile-config-firefox}/etc/mobile-config-firefox/common"
|
||||||
+ concatFiles "${pkgs.mobile-config-firefox}/etc/mobile-config-firefox/userContent";
|
+ concatFiles "${pkgs.mobile-config-firefox}/etc/mobile-config-firefox/userContent";
|
||||||
|
|
||||||
settings = {
|
|
||||||
"dom.w3c.touch_events.enabled" = true;
|
|
||||||
"apz.allow_zooming" = true;
|
|
||||||
"apz.allow_double_tap_zooming" = true;
|
|
||||||
"dom.w3c_touch_events.legacy_apis.enabled" = true;
|
|
||||||
"browser.tabs.inTitlebar" = 1;
|
|
||||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
|
||||||
"browser.urlbar.clickSelectsAll" = true;
|
|
||||||
"toolkit.cosmeticAnimations.enabled" = false;
|
|
||||||
"browser.download.animateNotifications" = false;
|
|
||||||
};
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
enableSshSupport = true;
|
enableSshSupport = true;
|
||||||
maxCacheTtl = 72000;
|
maxCacheTtl = 72000;
|
||||||
maxCacheTtlSsh = 72000;
|
maxCacheTtlSsh = 72000;
|
||||||
pinentryFlavor = "tty";
|
|
||||||
};
|
};
|
||||||
home.shellAliases = {
|
home.shellAliases = {
|
||||||
s = "sudo -A";
|
s = "sudo -A";
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
[
|
[
|
||||||
{ "slug": "fastforwardteam" },
|
{ "slug": "fastforwardteam" },
|
||||||
|
{ "slug": "middle-mouse-button-scroll" },
|
||||||
{ "slug": "rikaitan" },
|
{ "slug": "rikaitan" },
|
||||||
{ "slug": "youtube-nonstop" }
|
{ "slug": "youtube-nonstop" }
|
||||||
]
|
]
|
||||||
|
|
|
@ -21,6 +21,20 @@
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
"middle-mouse-button-scroll" = buildFirefoxXpiAddon {
|
||||||
|
pname = "middle-mouse-button-scroll";
|
||||||
|
version = "0.3.2";
|
||||||
|
addonId = "{b687f6ef-3299-4a75-8279-8b1c30dfcc9d}";
|
||||||
|
url = "https://addons.mozilla.org/firefox/downloads/file/3505309/middle_mouse_button_scroll-0.3.2.xpi";
|
||||||
|
sha256 = "d21d29b29a7bd3fae5407d995737c4c41d66daf73729b88ad39d149223362412";
|
||||||
|
meta = with lib;
|
||||||
|
{
|
||||||
|
homepage = "https://github.com/StoyanDimitrov/middle-mouse-button-scroll";
|
||||||
|
description = "Scroll fast or precise through long documents with pressed middle mouse button";
|
||||||
|
mozPermissions = [ "*://*/*" ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
};
|
||||||
"rikaitan" = buildFirefoxXpiAddon {
|
"rikaitan" = buildFirefoxXpiAddon {
|
||||||
pname = "rikaitan";
|
pname = "rikaitan";
|
||||||
version = "24.1.22.0";
|
version = "24.1.22.0";
|
||||||
|
|
Loading…
Reference in a new issue